- HTML code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="UTF-8"><head><title>haha</title><script language="javascript"> var isResizing=false; function Resize_mousedown(event,obj){ obj.mouseDownX=event.clientX; obj.leftTdW=obj.previousSibling.offsetWidth; obj.setCapture(); isResizing=true; } function Resize_mousemove(event,obj){ if(!isResizing) return ; var newWidth=obj.leftTdW*1+event.clientX*1-obj.mouseDownX; if(newWidth>0) obj.previousSibling.style.width = newWidth+'px'; else obj.previousSibling.style.width=1+'px'; } function Resize_mouseup(event,obj){ if(!isResizing) return; obj.releaseCapture(); isResizing=false; } function Resize_setDefault(event,obj){ if(obj.innerText=="<") { obj.parentNode.previousSibling.style.width=1+'px'; obj.innerText=">"; } else{ obj.parentNode.previousSibling.style.width=183+'px'; obj.innerText="<"; } event.cancelBubble=true; } </script><style>html, body {margin:0;padding:0;height:100%;overflow: auto;}</style></head><body><table style="width:100%;height:100%;" border=0 cellspacing=0 cellpadding=0px ><tr><td style='width:183px; bgcolor="#e8f3f9"'><iframe id="_flash123" width="0" height="0" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" ></iframe><SCRIPT LANGUAGE="JavaScript"> var flashmp3= document.getElementById("_flash123");flashmp3.style.width="100%";flashmp3.style.height=document.documentElement.clientHeight;flashmp3.src="FlashMusic.asp";</SCRIPT></td><td style="width:3px;cursor:e-resize;background-color:#cccccc;" align="center" valign="middle" onmousedown="Resize_mousedown(event,this);" onmouseup="Resize_mouseup(event,this);"onmousemove="Resize_mousemove(event,this);"><font style="size:3px;background-color:#eeeeee;cursor:pointer;" onmousedown="Resize_setDefault(event,this);"><</font></td><td><iframe id="_blog123" width="0" height="0" scrolling="Auto" frameborder="0" marginwidth="0" marginheight="0" ></iframe><SCRIPT LANGUAGE="JavaScript">var blog_index= document.getElementById("_blog123");blog_index.style.width="100%";blog_index.style.height=document.documentElement.clientHeight;blog_index.src="http://127.0.0.1";</SCRIPT></td></tr></table></body></html>
上面是我的代码,运行和lhgdialog.js里的Math.max冲突,出现JS错误,不能正常弹窗!
lhgdialog.js的下载地址:
http://code.google.com/p/lhgdialog/downloads/list
请大侠们帮忙看看哈!
------解决方案--------------------------------------------------------
貌似你页面里lhgdialog.js这个js都没引入,怎么冲突啊。.....
就算引入了,也不应该会导致你说的“运行和lhgdialog.js里的Math.max冲突,出现JS错误,不能正常弹窗!”
lhgdialog.js只是JQuery的一个插件,Math是JS标准类。。。。