加上<from>应该怎么修改了?? document.getELementById("wo").style.display=="none"document.getELementsByNamw("textfield2")[0].style.display=="none"都 写成这种形式 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 document.getELementsByName("textfield2")[0].style.display=="none" <script language="javascript"> function shenchang(){ if(form1.textfield2.style.display=="none") {form1.textfield2.style.display=""; form1.textfield2.style.display=""; form1.bbb.src="img/bg_fen_right.gif"; } else {form1.textfield2.style.display="none"; form1.bbb.style.display="none"; form1.tupian.src="img/bg_fen_right1.gif"; } } </script> <body> <form method="post" name='form1' action="qwe.asp"> 文章类别: <select name="fenlei" class="biaoge2"> <option value="1">我的文章 </option> <option value="2">我的笑话 </option> </select> <input id="wo" type="text" name="textfield2" style="display:none;" /> <img id="ta" name="bbb" src="http://list.mp3.baidu.com/list/images/tupic/funny_egaosucai07.jpg" style="display:none;margin-top:1px;"/> <img id="tupian" name="tupian" height="20" src="http://list.mp3.baidu.com/list/images/tupic/funny_egaosucai04.jpg" align="top" onClick="shenchang()" style="cursor:hand; margin-top:1px; "/> </form > </body> 两为朋友写的我都看了一下 好象还是不行了 ! 在帮帮忙这是1楼朋友的function shenchang(){if(document.getELementById("wo").=="none"){document.getELementById("wo").style.display="";document.getELementById("ta").style.display="";document.getELementById("tupian").src="img/bg_fen_right.gif";}else{document.getELementById("wo").style.display="none";document.getELementById("ta").style.display="none";document.getELementById("tupian").src="img/bg_fen_right1.gif";}}</script><body><form id="form1" method="post" action="qwe.asp"><input id="wo" type="text" name="wo" style="display:none;" /><img id="ta" name="ta" src="img/bg_fen_bon.gif" style="display:none;margin-top:1px;"/><img id="tupian" height="20" name="tupian" src="img/bg_fen_right1.gif" align="top" onClick="shenchang()" style="cursor:hand; margin-top:1px; "/></form></body>哪里写错了请指教! 这是3楼朋友的方法<script language="javascript">function shenchang(){if(form1.wo.style.display=="none"){form1.wo.style.display="";form1.ta.style.display="";form1.tupian.src="img/bg_fen_right.gif";}else{form1.wo.style.display="none";form1.ta.style.display="none";form1.tupian.src="img/bg_fen_right1.gif";}}</script><body> <form id="form1" method="post" action="qwe.asp"><input id="wo" type="text" name="wo" style="display:none;" /><img id="ta" name="ta" src="img/bg_fen_bon.gif" style="display:none;margin-top:1px;"/><img id="tupian" height="20" name="tupian" src="img/bg_fen_right1.gif" align="top" onClick="shenchang()" style="cursor:hand; margin-top:1px; "/></form></body> 我没看出我那得错 但您现在这样document.getElementById//注意大小L 这不是我的方法 你没看 我的form1 不是定义id 而是name么?? 如果在超链接<a ..></a>中加js事件,定焦点! 请问如何取得select值? 刚学EXT,求登录页面,带验证码的那种 求助各位,我這段代碼在IE6.0下沒有任何問題。但是在IE7.0下面卻執行不了。 java如何表示每周的一、三、五? 关于input hidden隐藏域事件监听问题 晕,浮动图片运行到页面上的flash上就让flash给挡住了,怎么办???????????? FireFox和IE中的JS问题! 新手提问:有没有JavaScript编译器? javascript的调试过程 求一个可拖DIV的类,最后兼容FF 关于window.print函数实现
<script language="javascript">
function shenchang(){
if(form1.textfield2.style.display=="none")
{
form1.textfield2.style.display="";
form1.textfield2.style.display="";
form1.bbb.src="img/bg_fen_right.gif";
}
else
{
form1.textfield2.style.display="none";
form1.bbb.style.display="none";
form1.tupian.src="img/bg_fen_right1.gif";
}
}
</script>
<body>
<form method="post" name='form1' action="qwe.asp"> 文章类别:
<select name="fenlei" class="biaoge2">
<option value="1">我的文章 </option>
<option value="2">我的笑话 </option>
</select>
<input id="wo" type="text" name="textfield2" style="display:none;" />
<img id="ta" name="bbb" src="http://list.mp3.baidu.com/list/images/tupic/funny_egaosucai07.jpg" style="display:none;margin-top:1px;"/>
<img id="tupian" name="tupian" height="20" src="http://list.mp3.baidu.com/list/images/tupic/funny_egaosucai04.jpg" align="top" onClick="shenchang()" style="cursor:hand; margin-top:1px; "/>
</form > </body>
这是1楼朋友的
function shenchang(){
if(document.getELementById("wo").=="none")
{document.getELementById("wo").style.display="";
document.getELementById("ta").style.display="";
document.getELementById("tupian").src="img/bg_fen_right.gif";
}
else
{document.getELementById("wo").style.display="none";
document.getELementById("ta").style.display="none";
document.getELementById("tupian").src="img/bg_fen_right1.gif";
}
}
</script>
<body>
<form id="form1" method="post" action="qwe.asp">
<input id="wo" type="text" name="wo" style="display:none;" />
<img id="ta" name="ta" src="img/bg_fen_bon.gif" style="display:none;margin-top:1px;"/>
<img id="tupian" height="20" name="tupian" src="img/bg_fen_right1.gif" align="top" onClick="shenchang()"
style="cursor:hand; margin-top:1px; "/>
</form>
</body>哪里写错了请指教!
<script language="javascript">
function shenchang(){
if(form1.wo.style.display=="none")
{form1.wo.style.display="";
form1.ta.style.display="";
form1.tupian.src="img/bg_fen_right.gif";
}
else
{form1.wo.style.display="none";
form1.ta.style.display="none";
form1.tupian.src="img/bg_fen_right1.gif";
}
}
</script>
<body>
<form id="form1" method="post" action="qwe.asp">
<input id="wo" type="text" name="wo" style="display:none;" />
<img id="ta" name="ta" src="img/bg_fen_bon.gif" style="display:none;margin-top:1px;"/>
<img id="tupian" height="20" name="tupian" src="img/bg_fen_right1.gif" align="top" onClick="shenchang()"
style="cursor:hand; margin-top:1px; "/>
</form>
</body>
document.getElementById//注意大小L
这不是我的方法 你没看 我的form1 不是定义id 而是name么??