<style>
.tableBorder7{width:800;solid; background-color: #000000;}
TD{font-family: 宋体;font-size: 12px;line-height : 15px ;}
th{background-color: #f7f7f7;color: #000000;font-size: 12px;font-weight:bold;}
th.th1{background-color: #333333;}
td.TableBody7{background-color: #B1EA45;}
</style>
<script language="JavaScript">
//more javascript from http://www.webjx.com
<!--
var pltsPop=null;
var pltsoffsetX = 10; // 弹出窗口位于鼠标左侧或者右侧的距离;3-12 合适
var pltsoffsetY = 15; // 弹出窗口位于鼠标下方的距离;3-12 合适
var pltsPopbg="#FFFFEE"; //背景色
var pltsPopfg="#111111"; //前景色
var pltsTitle="";
document.write('<div id=pltsTipLayer style="display: none;position: absolute; z-index:10001"></div>');
function pltsinits()
{
document.onmouseover = plts;
document.onmousemove = moveToMouseLoc;
}
function plts()
{ var o=event.srcElement;
if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
pltsPop=o.dypop;
if(pltsPop!=null&&pltsPop!=""&&typeof(pltsPop)!="undefined")
{
pltsTipLayer.style.left=-1000;
pltsTipLayer.style.display='';
var Msg=pltsPop.replace(/ /g,"<br>");
Msg=Msg.replace(/ x13/g,"<br>");
var re=/{(.[^{]*)}/ig;
if(!re.test(Msg))pltsTitle="<font color=#ffffff>简介</font>";
else{
re=/{(.[^{]*)}(.*)/ig;
pltsTitle=Msg.replace(re,"$1")+" ";
re=/{(.[^{]*)}/ig;
Msg=Msg.replace(re,"");
Msg=Msg.replace("<br>","");}
//var attr=(document.location.toString().toLowerCase().indexOf("list.asp")>0?"nowrap":"");
var content =
'<table style="FILTER:alpha(opacity=90) shadow(color=#bbbbbb,direction=135);" id=toolTipTalbe border=0><tr><td width="100%"><table class=tableBorder7 cellspacing="1" cellpadding="0" style="width:100%">'+
'<tr id=pltsPoptop ><th height=18 valign=bottom class=th1 ><b><p id=topleft align=left><font color=#ffffff>↖</font>'+pltsTitle+'</p><p id=topright align=right style="display:none">'+pltsTitle+'<font color=#ffffff>↗</font></b></th></tr>'+
'<tr><td "+attr+" class=tablebody7 style="padding-left:14px;padding-right:14px;padding-top: 6px;padding-bottom:6px;line-height:135%">'+Msg+'</td></tr>'+
'<tr id=pltsPopbot style="display:none"><th height=18 valign=bottom class=th1><b><p id=botleft align=left><font color=#ffffff>↙</font>'+pltsTitle+'</p><p id=botright align=right style="display:none">'+pltsTitle+'<font color=#ffffff>↘</font></b></th></tr>'+
'</table></td></tr></table>';
pltsTipLayer.innerHTML=content;
toolTipTalbe.style.width=Math.min(pltsTipLayer.clientWidth,document.body.clientWidth/2.2);
moveToMouseLoc();
return true;
}
else
{
pltsTipLayer.innerHTML='';
pltsTipLayer.style.display='none';
return true;
}
}
function moveToMouseLoc()
{
if(pltsTipLayer.innerHTML=='')return true;
var MouseX=event.x;
var MouseY=event.y;
//window.status=event.y;
var popHeight=pltsTipLayer.clientHeight;
var popWidth=pltsTipLayer.clientWidth;
if(MouseY+pltsoffsetY+popHeight>document.body.clientHeight)
{
popTopAdjust=-popHeight-pltsoffsetY*1.5;
pltsPoptop.style.display="none";
pltsPopbot.style.display="";
}
else
{
popTopAdjust=0;
pltsPoptop.style.display="";
pltsPopbot.style.display="none";
}
if(MouseX+pltsoffsetX+popWidth>document.body.clientWidth)
{
popLeftAdjust=-popWidth-pltsoffsetX*2;
topleft.style.display="none";
botleft.style.display="none";
topright.style.display="";
botright.style.display="";
}
else
{
popLeftAdjust=0;
topleft.style.display="";
botleft.style.display="";
topright.style.display="none";
botright.style.display="none";
}
pltsTipLayer.style.left=MouseX+pltsoffsetX+document.body.scrollLeft+popLeftAdjust;
pltsTipLayer.style.top=MouseY+pltsoffsetY+document.body.scrollTop+popTopAdjust;
return true;
}
pltsinits();
//-->
</script>
</HEAD>
<BODY>
<div title="醉别西楼醒不记,春梦秋云,聚散真容易。<br>斜月半窗还少睡。画屏闲展吴山翠。<br>衣上酒痕诗里字,点点行行,总是凄凉意。<br>红烛自怜无好计,夜寒空替人垂泪。">指导这里来网页教学网</div>
</BODY>
</HTML>
分享到:
相关推荐
avascript内容提示框tooltips轻量级鼠标滑过显示描述内容,内容只能写在A标签的title里面并且光标不能定位内容区域。
鼠标滑过出现提示层效果js代码 javascript
CSS3鼠标滑过tip提示框动画特效是一款纯CSS3实现的鼠标经过提示特效。
大家一般认为MFC的按钮控件的使用很普通很简单,无非就是个单击事件。我不否认这个事实,我想说的是能否在这个普通简单上稍微有点创意呢?...这个程序的特点就是在普通之上,添加了自绘变色,提示,鼠标滑过变色等。
鼠标滑过图片出现大图片提示层效果js代码
jquery制作侧栏与工具提示信息鼠标滑过图片或文字提示详细内容.rarjquery制作侧栏与工具提示信息鼠标滑过图片或文字提示详细内容.rarjquery制作侧栏与工具提示信息鼠标滑过图片或文字提示详细内容.rarjquery制作侧栏...
鼠标滑过时图片放大并且蒙上一层透明黑色,上面显示您想展示的文字
jquery提示框鼠标滑过图片提示框 jquery提示框鼠标滑过图片提示框 jquery提示框鼠标滑过图片提示框 jquery提示框鼠标滑过图片提示框 jquery提示框鼠标滑过图片提示框
jquery左侧导航条鼠标滑过导航菜单详细内容提示框说明
鼠标滑过图片出现大图片提示层效果js代码
鼠标滑过小图看大图的素材及效果鼠标滑过图片出现大图片提示层效果js代码
鼠标滑过图片放大,并提示文字仿百度图片放大,分享一下。
本文实例讲述了jquery实现鼠标滑过显示提示框的方法。分享给大家供大家参考。具体如下: 一、jquery鼠标滑过显示提示框实例 1、效果图 2、实现代码 ( 需要自行添加 jquery.js、按钮图片、提示框图片 ) HTML 代码 ...
NULL 博文链接:https://xjwolaile.iteye.com/blog/1900313
jQuery qtip提示框插件制作5种常用的页面浮动提示框,通过鼠标滑过或点击触发浮动提示框,类似新浪微波滑过图片异步加载ajax提示框详细信息,等多种文字和图片提示框效果。
鼠标滑过图片显示详情,代码简单易懂,效果漂亮自然美观。
jQuery提示信息插件tooltip实现图片多点鼠标滑过信息提示效果.zip