博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
添加到收藏夹js(兼容ie/ff/op)不兼容chrome求解决
阅读量:7210 次
发布时间:2019-06-29

本文共 1009 字,大约阅读时间需要 3 分钟。

hot3.png

var www_yibo_com = function (obj, url, title) {    var e = window.event || arguments.callee.caller.arguments[0];    var B = {        IE : /MSIE/.test(window.navigator.userAgent) && !window.opera        , FF : /Firefox/.test(window.navigator.userAgent)        , OP : !!window.opera    };    obj.onmousedown = null;    if (B.IE) {        obj.attachEvent("onmouseup", function () {            try {                window.external.AddFavorite(url, title);                window.event.returnValue = false;            } catch (exp) {}        });    } else {        if (B.FF || obj.nodeName.toLowerCase() == "a") {            obj.setAttribute("rel", "sidebar"), obj.title = title, obj.href = url;        } else if (B.OP) {            var a = document.createElement("a");            a.rel = "sidebar", a.title = title, a.href = url;            obj.parentNode.insertBefore(a, obj);            a.appendChild(obj);            a = null;        }    }};
收藏一博购

转载于:https://my.oschina.net/jiangchike/blog/265362

你可能感兴趣的文章
Spring源码剖析2:Spring IOC容器的加载过程
查看>>
Throttle, more throttle
查看>>
部分手机Toast不显示的解决办法
查看>>
解决win10系统下,git Bash闪退的问题
查看>>
NG-ZORRO 7.3.1 发布,Ant Design 的 Angular 实现
查看>>
Mininet学习教程——测量路径的损耗率
查看>>
Linux权限和归属用法
查看>>
深度学习入门笔记系列 ( 七 ) ——循环神经网络(RNN)学习笔记
查看>>
原生开发移动web单页面(step by step)1——传统页面的开发
查看>>
数据库中char、varchar、varchar2、nvarchar之间的关系
查看>>
干货 | 加速AI发展!一文了解GPU Computing
查看>>
Nginx中文域名配置
查看>>
AliOS Things标准输入输出端口对接以及修改方法
查看>>
用户的注册登陆流程及代码实现
查看>>
第十三章:位图(十)
查看>>
springboot项目打包&ngrok的使用
查看>>
互联网诞生前,苏联最流行的11台个人电脑
查看>>
Git常见错误整理
查看>>
Bytom交易说明(账户管理模式)
查看>>
分享一款在线调试的贝塞尔曲线
查看>>