A cool text prompt effect demonstration

Source: Internet
Author: User

<HTML>
<HEAD>
<Title> A cool text display </title>
<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; // The distance between the left and right of the mouse in the pop-up window; 3-12 is suitable.
Var pltsoffsetY = 15; // The distance of the pop-up window below the mouse; 3-12 is suitable
Var pltsPopbg = "# FFFFEE"; // background color
Var pltsPopfg = "#111111"; // foreground color
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 (/\ n/g, "<br> ");
Msg = Msg. replace (/\ 0x13/g, "<br> ");
Var re =/\ {(. [^ \ {] *) \}/ig;
If (! Re. test (Msg) pltsTitle = "<font color = # ffffff> introduction </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>

Related Article

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.