|
<a href="http://www.creatsoon.com" target="_blank" pop=’http://www.creatsoon.com’>www.creatsoon.com</a><br> www.creatsoon.com <script> var div=document.createElement(’div’); //全局变量 var tmp=0; //全局变量 document.onclick=function() { HideMenu(); } document.onmouseover=function() { var Obj=event.srcElement; div.style.position=’absolute’; div.style.backgroundColor=’#ccccff’; div.style.display=’none’; div.style.width=’320px’; div.style.height=’240px’; div.style.left=window.event.x + 5 + document.body.scrollLeft; div.style.top=window.event.y + document.body.scrollTop; div.style.filter="Alpha(Opacity=92)"; div.style.border="3px solid #ccccce";
var sPop=Obj.pop; if(sPop==null||sPop=="") {HideMenu();return;}
if(Obj.tagName=="IMG" && Obj.pop!=undefined && Obj.pop!="") { if(Obj.alt!=null&&Obj.alt!="") {Obj.alt=""} if(Obj.title!=null&&Obj.title!="") {Obj.title=""} } div.innerHTML="<iframe width=’100%’ height=’100%’ border=’0’ scrolling=’no’ src=’" + sPop + "’ style=’zoom:0.5;’></iframe>";
//========================== if((window.event.x + document.body.scrollLeft+320)>document.body.clientWidth) {div.style.pixelLeft = window.event.x + document.body.scrollLeft - 100;} if((window.event.y + document.body.scrollTop+240)>document.body.clientHeight+document.body.scrollTop) {div.style.pixelTop = window.event.y + document.body.scrollTop - 180;} //========================== //div.sytle.zIndex=’10’; div.style.display=’’; document.body.appendChild(div); event.returnValue=false; event.calcelBubble=true; } window.onscroll=function() { HideMenu(); } function HideMenu() { div.style.display=’none’; div.innerHTML=’’; }
//if (ie) //{document.onmouseover=showPopupText;}
var divM=document.getElementById("rl");
var arrA=divM.getElementsByTagName("a"); //childNodes; for(var i=0;i<arrA.length;i++) {arrA[i].setAttribute("href","http://" + arrA[i].innerHTML);} --> </script>
【2010-11-14】 【浏览72次】
上一篇:网站制作如何提高ASP执行效率
下一篇:同时传递搜索框和Tags列出的关键词进行搜索的方法
|