惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

博客园 - ttyp

火苗-批量改名最新V1.0.5 喂来猫-超强工具集最新版 V1.0.9.0 使用MemberShip时,用HttpWebRequest抓数据 ASP.NET图形化的曲线图类 JS写的一个功能齐备的treeview控件 输入自动完成类 定时检查网站是否掉线的批处理 code collection 0.44版 发布 JS代码的格式化和压缩 JS代码混淆初步 OUTLOOK菜单类 WEB打印分页类(JS) - ttyp - 博客园 自动配置IE代理脚本 XP下IIS不能添加扩展名映射的BUG js编写的语法高亮引擎 js写的Hashtable类 INF文件格式小结 超强的WEB表格组件 关于设置WebControls里的treeview控件的图片路径
自动提示效果
ttyp · 2005-06-15 · via 博客园 - ttyp

前阵子,IE的title提示突然罢工了,找了很多原因就是没找到,一次实验popup.show后,它居然会出来,可是要让title出来前每次都必须调用popup.show方法,这怎么行呢,估计还是注册表的问题吧,终于放弃,于是制作了这个简单的自动提示js文件。支持firefox&ie,也不会有自带的提示那种过一段时间消失的问题了。

<html>
<head>

<title>tip</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

</head>

<body>
<script>



if(!document.attachEvent)
{
    document.attachEvent 
= function(){document.addEventListener(arguments[0].substr(2),arguments[1],arguments[2])}
}


document.attachEvent(
"onmouseover",function(e)
{
    
var tip = "";

    
if(typeof(event)=="undefined"){
        tip 
= e.target.getAttribute("tips")
    }
else{
        e    
= event;
        tip 
= e.srcElement.tips;
    }


    
    
if(typeof(tip)!="undefined"&&tip.length>0)
    
{
        
var _tips = document.getElementById("myTip");
        
        
if(typeof(_tips)=="undefined"||_tips == null)
        
{
            _tips        
= document.createElement("div");
            _tips.id    
= "myTip";
            _tips.style.position        
= "absolute";
            _tips.style.width            
= "150px";
            _tips.style.borderWidth        
= "1px";
            _tips.style.borderStyle        
= "solid";
            _tips.style.borderColor        
= "gray";
            _tips.style.fontSize        
= "9pt";
            _tips.style.backgroundColor    
= "#ffffff";
            _tips.style.color            
= "#349045";

            
            _tips.style.filter            
= "progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=135,strength=3)";
            _tips.style.padding            
= "5px 8px 3px 8px";
            

            document.body.appendChild(_tips);            
            _tips.style.display            
= "none";
        }


            _tips.style.display    
= "";
            
            _tips.innerHTML        
= tip;
            _tips.style.left 
= document.body.scrollLeft+e.clientX+10
            _tips.style.top 
= document.body.scrollTop+e.clientY+10
    }

}

);

document.attachEvent('onmouseout',
function(e)
{   
    
var _tips = document.getElementById("myTip");
    
if(_tips!=null)
    
{
        _tips.style.display
="none";
    }

}

)
</script>

<href="#" tips="自定义提示" >测试链接</a>
<href="#" >测试链接</a>   
<href="#" tips="中华人民共和国中华人民共和国自中华人民共和国中华人民共和国自定义提示中华人民共和国中华人民共和国自定义提示中华人民共和国中华人民共和国自定义提示定义提示">测试链接</a>   

</body>
</html>