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

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

博客园 - 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>