javascript中的从netscape移植到ie中出现的问题。急 do you name those DIVs properly with "HOST_IMAGE1" and "LINK_MSG..."? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是的定义如下<%if BrowserType="MSIE" then%> <DIV ID="HOST_IMAGE1" style="POSITION: absolute;visibility=hidden;"></DIV><%else%> <LAYER name="HOST_IMAGE1" visibility="hide"></LAYER><%end if%>取得时的代码 if(navigator.appVersion.charAt(0) >=4 && navigator.appName.charAt(0)=="N") { document.layers["HOST_IMAGE1"].moveTo(x+0, y+0); document.layers["HOST_IMAGE1"].visibility = "SHOW"; document.layers["LINK_MSG"+num].moveTo(x-80, y+20); document.layers["LINK_MSG"+num].visibility = "SHOW"; } 这里的Javascript编码只适用于NETSCAPE,IE的呢? take a look here:Cross-Browser Dynamic HTML Resources http://www.wdvl.com/Authoring/DHTML/CB/Resources.htmland the following two articleshttp://www.wdvl.com/Authoring/DHTML/CB/Objects/http://www.wdvl.com/Authoring/DHTML/CB/Cards/ else{document.all("HOST_IMAGE1").style.posLeft = x;document.all("HOST_IMAGE1").style.posTop = y;document.all("HOST_IMAGE1").style.visibility = "visible";var sID = "LINK_MSG"+num;document.all(sID).style.posLeft = x-80;document.all(sID).style.posTop = y+20;document.all(sID).style.visibility = "visible";} 编码问题,请高手指点 javascript如何取单元表格的值 onmousevoer在IE和FF下的实现问题 怎样做出百度经验网页上的步骤摞叠效果 如何判断输入文本框的内容是不是汉字、数字,或只允许文本框输入字母汉字,高手解答哈,偶很菜的 高分求助 VBScript和JavaScript中从一个站点下载文件并执行的语句是什么? title里面的文字如何控制换行或者控制显示格式 用javascript怎么样判断一个对象是否存在 谁知道vbscript中整数转换成浮点数是什么机制? 请教一个页面外观的问题!!----谢谢你了! 一个复杂的分页问题 紧急求助!!关于iframe链接src问题?
<%if BrowserType="MSIE" then%>
<DIV ID="HOST_IMAGE1" style="POSITION: absolute;visibility=hidden;"></DIV>
<%else%>
<LAYER name="HOST_IMAGE1" visibility="hide"></LAYER>
<%end if%>
取得时的代码
if(navigator.appVersion.charAt(0) >=4 && navigator.appName.charAt(0)=="N") {
document.layers["HOST_IMAGE1"].moveTo(x+0, y+0);
document.layers["HOST_IMAGE1"].visibility = "SHOW";
document.layers["LINK_MSG"+num].moveTo(x-80, y+20);
document.layers["LINK_MSG"+num].visibility = "SHOW";
}
Cross-Browser Dynamic HTML Resources
http://www.wdvl.com/Authoring/DHTML/CB/Resources.htmland the following two articles
http://www.wdvl.com/Authoring/DHTML/CB/Objects/
http://www.wdvl.com/Authoring/DHTML/CB/Cards/
{
document.all("HOST_IMAGE1").style.posLeft = x;
document.all("HOST_IMAGE1").style.posTop = y;
document.all("HOST_IMAGE1").style.visibility = "visible";var sID = "LINK_MSG"+num;document.all(sID).style.posLeft = x-80;
document.all(sID).style.posTop = y+20;
document.all(sID).style.visibility = "visible";}