网页图片代码加入
- 提问者网友:活着好累
- 2021-05-02 13:43
- 五星知识达人网友:北方的南先生
- 2021-05-02 14:41
<a href="javascript:;" class="top" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('要被人设为首页的地址');return false;"><img src="图片或图标地址" /> 设为首页</a>
- 1楼网友:荒野風
- 2021-05-02 17:15
一楼回答很正确
<a href="javascript:;" class="top" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('要被人设为首页的url地址');return false;"><img src="图片或图标地址" alt="设为首页" /></a>
- 2楼网友:琴狂剑也妄
- 2021-05-02 16:31
- 3楼网友:污到你湿
- 2021-05-02 14:57
关闭网页时弹出设为主页对话框代码: <BODY id=iehomepage onunload="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.isHomePage(' http://www.xxxxx.com')))iehomepage.setHomePage(' http://www.baxun.com');">
打开网页弹出设为主页对话框代码: <BODY id=iehomepage onload="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.isHomePage(' http://www.xxxxx.com')))iehomepage.setHomePage(' http://www.xxxxx.com');">
单击链接设为主页 <a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage(' http://www.xxxxx.comt');">设为主页</a>
鼠标滑过设定为主页 <a href=# onMouseOver="this.style.behavior='url(#default#homepage)';this.setHomePage(' http://www.xxxxx.com');">设为主页</a>
单击图片设为主页
<a href="javascript:;" class="top" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage(' http://www.xxxxx.com');return false;"><img src="图片或图标地址" /> 设为首页</a>