netscape的层的用法 layer 本身就不是标准和东东,现在的层都是使用样式表里的定位方式设置而成的。style="position: absolute" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 layer是netscape6.0以前的版本用的,6.0以后不用了。层统一用div http://www.csdn.net/Develop/Read_Article.asp?Id=5361Netscape 6 支持的对象和属性列表 那么,谁能改改下面的网页和脚本,使它可以netscape上能有效运行。<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>div polit</title><script language="JavaScript" ><!--function moveUp(){ document.all.redBox.style.pixelTop+=(-20);}function moveDown(){ document.all.redBox.style.pixelTop+=20;}function moveLeft(){ document.all.redBox.style.pixelLeft+=(-20);}function moveRight(){ document.all.redBox.style.pixelLeft+=20;}function showHide(){ if(document.all.yellowBox.style.visibility=="hidden") document.all.yellowBox.style.visibility="visible"; else document.all.yellowBox.style.visibility="hidden";}//--></script></head><body><div id="redBox" style="position:absolute; left:150px; top:150px; background-color:red"><form><input type="button" value="UP" onClick="moveUp()" ><input type="button" value="DOWN" onClick="moveDown()"><input type="button" value="LEFT" onClick="moveLeft()"><input type="button" value="RIGHT" onClick="moveRight()"><input type="button" value="SHOW/HIDE Yellow Box" onClick="showHide()"></form></div><div id="yellowBox" style="background-color:yellow">这里放一些文本</div></body></html> 那么,谁能改改下面的网页和脚本,使它可以netscape上能有效运行。<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>div polit</title><script language="JavaScript" ><!--function moveUp(){ document.all.redBox.style.pixelTop+=(-20);}function moveDown(){ document.all.redBox.style.pixelTop+=20;}function moveLeft(){ document.all.redBox.style.pixelLeft+=(-20);}function moveRight(){ document.all.redBox.style.pixelLeft+=20;}function showHide(){ if(document.all.yellowBox.style.visibility=="hidden") document.all.yellowBox.style.visibility="visible"; else document.all.yellowBox.style.visibility="hidden";}//--></script></head><body><div id="redBox" style="position:absolute; left:150px; top:150px; background-color:red"><form><input type="button" value="UP" onClick="moveUp()" ><input type="button" value="DOWN" onClick="moveDown()"><input type="button" value="LEFT" onClick="moveLeft()"><input type="button" value="RIGHT" onClick="moveRight()"><input type="button" value="SHOW/HIDE Yellow Box" onClick="showHide()"></form></div><div id="yellowBox" style="background-color:yellow">这里放一些文本</div></body></html> 求 悬浮式菜单 js代码 如何通过jquery查出ID以jq_开头,以2、4结束的元素? onbeforeunload事件 如何只监听指定事件 ASP批量删除复选框选中后为什么不能取消选择 求助 初学JavaScript,这里自己写了一段代码 问题很多,请大家帮忙解决一下! 请教DIV移动的特殊问题 怎么屏蔽鼠标右键 如何限制文本框输入字符的长度? 如何获得HTML输入域中光标位置? 如何截取字符串 www.qdjhu.com 中的 qdjhu ? 如何在光标位置插入数据? javascript语法提示
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>div polit</title>
<script language="JavaScript" >
<!--
function moveUp()
{
document.all.redBox.style.pixelTop+=(-20);
}
function moveDown()
{
document.all.redBox.style.pixelTop+=20;
}
function moveLeft()
{
document.all.redBox.style.pixelLeft+=(-20);
}
function moveRight()
{
document.all.redBox.style.pixelLeft+=20;
}
function showHide()
{
if(document.all.yellowBox.style.visibility=="hidden")
document.all.yellowBox.style.visibility="visible";
else
document.all.yellowBox.style.visibility="hidden";
}
//-->
</script>
</head><body><div id="redBox" style="position:absolute; left:150px; top:150px; background-color:red">
<form>
<input type="button" value="UP" onClick="moveUp()" >
<input type="button" value="DOWN" onClick="moveDown()">
<input type="button" value="LEFT" onClick="moveLeft()">
<input type="button" value="RIGHT" onClick="moveRight()">
<input type="button" value="SHOW/HIDE Yellow Box" onClick="showHide()">
</form>
</div><div id="yellowBox" style="background-color:yellow">
这里放一些文本
</div>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>div polit</title>
<script language="JavaScript" >
<!--
function moveUp()
{
document.all.redBox.style.pixelTop+=(-20);
}
function moveDown()
{
document.all.redBox.style.pixelTop+=20;
}
function moveLeft()
{
document.all.redBox.style.pixelLeft+=(-20);
}
function moveRight()
{
document.all.redBox.style.pixelLeft+=20;
}
function showHide()
{
if(document.all.yellowBox.style.visibility=="hidden")
document.all.yellowBox.style.visibility="visible";
else
document.all.yellowBox.style.visibility="hidden";
}
//-->
</script>
</head><body><div id="redBox" style="position:absolute; left:150px; top:150px; background-color:red">
<form>
<input type="button" value="UP" onClick="moveUp()" >
<input type="button" value="DOWN" onClick="moveDown()">
<input type="button" value="LEFT" onClick="moveLeft()">
<input type="button" value="RIGHT" onClick="moveRight()">
<input type="button" value="SHOW/HIDE Yellow Box" onClick="showHide()">
</form>
</div><div id="yellowBox" style="background-color:yellow">
这里放一些文本
</div>
</body>
</html>