又一个类似TIPS效果,很pl的,看截图吧
来源:互联网 发布:c类网络 编辑:程序博客网 时间:2024/05/21 10:43
<script type="text/javascript"><!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript">
function enableTooltips(id){
var links,i,h;
if(!document.getElementById || !document.getElementsByTagName) return;
AddCss();
h=document.createElement("span");
h.id="btc";
h.setAttribute("id","btc");
h.style.position="absolute";
document.getElementsByTagName("body")[0].appendChild(h);
if(id==null) links=document.getElementsByTagName("a");
else links=document.getElementById(id).getElementsByTagName("a");
for(i=0;i<links.length;i++){
Prepare(links[i]);
}
}
function Prepare(el){
var tooltip,t,b,s,l;
t=el.getAttribute("title");
if(t==null || t.length==0) t="link:";
el.removeAttribute("title");
tooltip=CreateEl("span","tooltip");
s=CreateEl("span","top");
s.appendChild(document.createTextNode(t));
tooltip.appendChild(s);
b=CreateEl("b","bottom");
l=el.getAttribute("href");
if(l.length>30) l=l.substr(0,27)+"...";
b.appendChild(document.createTextNode(l));
tooltip.appendChild(b);
setOpacity(tooltip);
el.tooltip=tooltip;
el.onmouseover=showTooltip;
el.onmouseout=hideTooltip;
el.onmousemove=Locate;
}
function showTooltip(e){
document.getElementById("btc").appendChild(this.tooltip);
Locate(e);
}
function hideTooltip(e){
var d=document.getElementById("btc");
if(d.childNodes.length>0) d.removeChild(d.firstChild);
}
function setOpacity(el){
el.style.filter="alpha(opacity:95)";
el.style.KHTMLOpacity="0.95";
el.style.MozOpacity="0.95";
el.style.opacity="0.95";
}
function CreateEl(t,c){
var x=document.createElement(t);
x.className=c;
x.style.display="block";
return(x);
}
function AddCss(){
var l=CreateEl("link");
l.setAttribute("type","text/css");
l.setAttribute("rel","stylesheet");
l.setAttribute("href","http://web-graphics.com/mtarchive/bt.css");
l.setAttribute("media","screen");
document.getElementsByTagName("head")[0].appendChild(l);
}
function Locate(e){
var posx=0,posy=0;
if(e==null) e=window.event;
if(e.pageX || e.pageY){
posx=e.pageX; posy=e.pageY;
}
else if(e.clientX || e.clientY){
if(document.documentElement.scrollTop){
posx=e.clientX+document.documentElement.scrollLeft;
posy=e.clientY+document.documentElement.scrollTop;
}
else{
posx=e.clientX+document.body.scrollLeft;
posy=e.clientY+document.body.scrollTop;
}
}
document.getElementById("btc").style.top=(posy+10)+"px";
document.getElementById("btc").style.left=(posx-20)+"px";
}
</script>
<script type="text/javascript">
window.onload=function(){enableTooltips()};
</script>
<style type="text/css">
body{font: 76%/1.5 Arial,sans-serif;background: #FFF;color: #333}
div#container{width: 500px;margin:0 auto}
h1{color: #3CA3FF;margin: 1em 0 0;letter-spacing: -2px}
p{margin: 0 0 1.7em}
a{color: #F60;font-weight:bold}
a:hover{color: #F00}
</style>
<center>
<div id="container">
<br><br><br>
<a href="222222222222" title="ASP,PHP,JSP,JS,ASP.NET,DIV,CSS等网站建设相关技术">corange.cn</a><br><br><br>
<a href="555555555555" title="ASP,PHP,JSP,JS,ASP.NET,DIV,CSS等网站建设相关技术corange.cn" >ASP,PHP,JSP</a><br><br><br>
<a href="" title="ASP,PHP,JSP,JS,ASP.NET,DIV,CSS等网站建设相关技术">ASP,PHP,JSP,JS,ASP.NET,DIV,CSS等网站建设相关技术</a>
</div>
- 又一个类似TIPS效果,很pl的,看截图吧
- 又一个类似QQ的效果(JS)
- 用java的JTable实现类似Excel的报表控件(附三张效果截图)
- 又一个大神写的下载效果
- 类似google日历的表现方式截图
- 利用DrawDragRect画出类似截图的功能
- 类似QQ截图的抓取图片代码
- 利用DrawDragRect画出类似截图的功能
- Linux下好用的类似QQ截图工具
- QT实现类似QQ的截图功能
- 仿淘宝的tips效果
- PL/SQL实现类似spider的功能
- javascript实现的又一个不错的滑动导航效果
- 类似QQ相册的效果
- 一个类似Listview的效果
- 一个类似Listview的效果
- 类似NumberPicker的效果实现
- cxGrid类似pagecontrol的效果
- 网页脚本运行代码功能特效
- Tooltips效果,鼠标经过显示提示
- ASP.NET与SQL2005环境connectionStrings报错解决方法
- Array Arraylist List Hashtable Dictionary Stack Queue的区别
- (转贴)Windows CE 5.0下串口驱动硬件FIFO控制Bug分析及修正方法
- 又一个类似TIPS效果,很pl的,看截图吧
- 之前在DW中进行文件包括的操作后,其生成的默认代码是
- Delphi中ListBox控件的六种特效
- Windows Mobile的猴子测试工具--Hopper
- DV学习网站
- 类文件中的stage初始化问题
- Direct Show: Grabbing Media Samples
- 用ndiswrapper 将windows下驱动安装到linux
- 一个简单的java处理json的方法