gpt4 book ai didi

javascript - 谷歌 "change background image"链接如何工作?

转载 作者:行者123 更新时间:2023-11-28 14:03:53 25 4
gpt4 key购买 nike

当我查看这个链接的来源时,只有这个函数

javascript:void(0)

没有别的了,我寻找了 javascript:void(0) 的用法,但单独使用它的地方并不多。那么 secret 是什么?

最佳答案

来源:

<div id=cpf style="display: none; margin: 0 8px; position: relative;"class=fade><a href="javascript:void(0)" style="bottom: 0;display:inline;font-family:arial, san-serif;font-size:small;left:0;position:absolute;">Change background image</a></div>
.....
var a=document.getElementById("cpf");
.....
var c=a.getElementsByTagName("a")[0];
if(!c.onclick)c.onclick=function(){
var d="https://www.google.com/accounts/ServiceLogin?continue\x3dhttp://www.google.com/webhp%3Fhl%3Den%26cplp%3D\x26hl\x3den\x26service\x3dig\x26ltmpl\x3daddphoto";
.....

关于javascript - 谷歌 "change background image"链接如何工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3210749/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com