Js tip effect code

Source: Internet
Author: User
Tip: you can modify some code before running

Js tip effect code<style type="text/css">Body {font-size: 12px; color: #000000} td {font-size: 12px; color: #000000} a: link {font-size: 12px; color: #000000}</style><script language="javascript">Var pltsPop = null; var pltsoffsetX = 12; // The distance between the left and right of the mouse in the pop-up window; 3-12 is suitable for var pltsoffsetY = 15; // the distance below the mouse in the pop-up window; 3-12 is suitable for 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 ,"<br>"); Msg = Msg. replace (/\ 0x13/g ,"<br>"); Var re =/\ {(. [^ \ {] *) \}/ig; if (! Re. test (Msg) pltsTitle = "" Shui Mu Design Alliance "; else {re = /\{(. [^ \ {] *) \} (. *)/ig; pltsTitle = Msg. replace (re, "$1") + ""; re = /\{(. [^ \ {] *) \}/ig; Msg = Msg. replace (re, ""); Msg = Msg. replace ("<br>"," ");} Var content ='<table id="toolTipTalbe" cellspacing="1" cellpadding="0"><tr><td width="100%"><table bgcolor="#ffffff" cellspacing="0" cellpadding="0">'+'<tr id="pltsPoptop"><td height="20" bgcolor="#0094bb"><font color="#ffffff"><b><p id="topleft" align="left">
Tip: you can modify some code before running

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.