Image effect demonstration <br>/*<br>Shunzi Production<br>Made by PuterJam<br>*/<br>//--Initialize variables--<br>var rT=true;//Allow image transition <br>var bT=true;//Allow images to fade in and out<br>var tw=150;//Prompt box width<br>var endaction=false;//End animation<br>var ns4 = document.layers;<br>var ns6 = document.getElementById && !document.all;<br>var ie4 = document.all;<br>offsetX = 0;<br>offsetY = 20;<br>var toolTip;<br> function initToolTips()<br>{<br> if(ns4||ns6||ie4)<br> {<br> if(ns4) toolTipSTYLE = document.toolTipLayer;<br> else if(ns6) toolTipSTYLE = document. getElementById("toolTipLayer").style;<br> else if(ie4) toolTipSTYLE = document.all.toolTipLayer.style;<br> if(ns4) document.captureEvents(Event.MOUSEMOVE);<br> else<br> {<br> toolTipSTYLE.visibility = "visible";<br> toolTipSTYLE.display = "none";<br> }<br> document.onmousemove = moveToMouseLoc;<br> }<br>}<br>function toolTip( msg, fg, bg)<br>{<br> if(toolTip.arguments.length < 1) // hide<br> {<br> if(ns4) <br> {<br> toolTipSTYLE.visibility = " hidden";<br> }<br> else <br> {<br> //--Image transition, fade-out processing--<br> if (!endaction) {toolTipSTYLE.display = "none";}<br> if (rT) document.all("msg1").filters[1].Apply();<br> if (bT) document.all("msg1").filters[2].Apply();<br></p> <p align="left"></p> <div style="display:none;"> <span id="url" itemprop="url">http://www.bkjia.com/PHPjc/631770.html</span><span id="indexUrl" itemprop="indexUrl">www.bkjia.com</span><span id="isOriginal" itemprop="isOriginal">true</span><span id="isBasedOnUrl" itemprop="isBasedOnUrl">http: //www.bkjia.com/PHPjc/631770.html</span><span id="genre" itemprop="genre">TechArticle</span><span id="description" itemprop="description">head title image effect demonstration/title meta http-equiv="Content-Type" content="text/html; charset=gb2312" script /* Made by PuterJam */ //--Initialize variables-- var rT=true;//Allow...</span> </div> <div class="art_confoot"></div>