漂亮的提示資訊(帶箭頭)_連結特效

來源:互聯網
上載者:User
<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.jb51.net <!-- 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 ></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(/\n/g,""); Msg=Msg.replace(/\0x13/g,""); 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("","");} //var attr=(document.location.toString().toLowerCase().indexOf("list.asp")>0?"nowrap":""); var content = '<table id=toolTipTalbe border=0><tr><td width="100%"><table class=tableBorder7 cellspacing="1" cellpadding="0" >'+ '<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 >'+pltsTitle+'<font color=#ffffff></font></b></th></tr>'+ '<tr><td "+attr+" class=tablebody7 >'+Msg+'</td></tr>'+ '<tr id=pltsPopbot ><th height=18 valign=bottom class=th1><b><p id=botleft align=left><font color=#ffffff></font>'+pltsTitle+'</p><p id=botright align=right >'+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="醉別西樓醒不記,春夢秋雲,聚散真容易。斜月半窗還少睡。畫屏閑展吳山翠。衣上酒痕詩裡字,點點行行,總是淒涼意。紅燭自憐無好計,夜寒空替人垂淚。">蝶戀花</div> </BODY> </HTML>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.