求以下功能的javascript 分不够再加 1.<tr onmouseover="this.style.background='BDDFFF'" onmouseout="this.style.background='#FFFFFF'" > 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script>function over(){ var o = event.srcElement; if(o.tagName == "TD"){ o.bgColor = "red"; }}function out(){ var o = event.srcElement; if(o.tagName == "TD"){ o.bgColor = "#eeeeee"; }}document.onmouseover = over;document.onmouseout = out;</script><table> <tr> <td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="1"></td> <td bgcolor="#EEEEEE">方法法方法法方法法法</td> <td bgcolor="#EEEEEE">方法法方法</td> </tr> <tr> <td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="2"></td> <td bgcolor="#EEEEEE">方法法方法法方法法法</td> <td bgcolor="#EEEEEE">方法法方法</td> </tr> <tr> <td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="3"></td> <td bgcolor="#EEEEEE">方法法方法法方法法法</td> <td bgcolor="#EEEEEE">方法法方法</td> </tr></table> <script>function over(){ var o = event.srcElement; if(o.tagName == "TD"){ for(i=0;i<o.parentNode.childNodes.length;i++){ o.parentNode.childNodes.item(i).bgColor = "red"; } }}function out(){ var o = event.srcElement; if(o.tagName == "TD"){ if(!o.parentNode.childNodes.item(0).childNodes.item(0).checked){ for(i=0;i<o.parentNode.childNodes.length;i++){ o.parentNode.childNodes.item(i).bgColor = "#eeeeee"; } } }}function check(){ var o =event.srcElement; if(o.tagName == "INPUT"){ for(i=0;i<document.getElementsByTagName("TD").length;i++){ document.getElementsByTagName("TD")[i].bgColor = "#eeeeee"; } if(o.checked){ for(i=0;i<o.parentNode.parentNode.childNodes.length;i++){ o.parentNode.parentNode.childNodes.item(i).bgColor = "red"; } } }}document.onmouseover = over;document.onmouseout = out;document.onclick = check;</script><table> <tr bgcolor="red"> <td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="1"></td> <td bgcolor="#EEEEEE">方法法方法法方法法法</td> <td bgcolor="#EEEEEE">方法法方法</td> </tr> <tr> <td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="2"></td> <td bgcolor="#EEEEEE">方法法方法法方法法法</td> <td bgcolor="#EEEEEE">方法法方法</td> </tr> <tr> <td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="3"></td> <td bgcolor="#EEEEEE">方法法方法法方法法法</td> <td bgcolor="#EEEEEE">方法法方法</td> </tr></table> <P><IMG src="/upload/200503041000564211.gif" id ="woyingjie1"></P><input type="hidden" name="image" id="woyingjie2">iframe中window.top.document.getElementById("woyingjie1").src = imageSrc;window.top.document.getElementById("woyingjie2").value = imageSrc; <style>tr{ over:expression(this.onmouseover=function(){this.style.backgroundColor='lightblue'}); out:expression(this.onmouseout=function(){this.style.backgroundColor='white'}); click:expression(this.onclick=function(){this.childNodes[0].childNodes[0].checked=true});}</style><body><table> <tr> <td><input type="radio" name="radiobutton" value="1"></td> <td>方法法方法法方法法法</td> <td>方法法方法</td> </tr> <tr> <td><input type="radio" name="radiobutton" value="2"></td> <td>方法法方法法方法法法</td> <td>方法法方法</td> </tr> <tr> <td><input type="radio" name="radiobutton" value="3"></td> <td>方法法方法法方法法法</td> <td>方法法方法</td> </tr></table></body> 自己看看 MSDN 中的例子就能解决的呢~~ 你用的是eWebEditor的在线编辑器要是还没解决的话MSN中给你讲现在想睡觉了MSN已发给你的短信中 gzty(风逍遥) 我加了你了 请教下怎么解决 我用的是 飞鱼修改的jsp半的eWebEditorwoyingjie(沃英杰) 图片那里是没id的 只有<IMG src="/upload/200503041000564211.gif"> window.top.document.getElementsByTagName("woyingjie1")[0].src = imageSrc;window.top.document.getElementByTagName("woyingjie2")[0].value = imageSrc; window.top.document.getElementsByTagName("woyingjie2")[0].value = imageSrc; 表格TR变色就不说了上面都说尽了2。<input type="hidden" name="content"><input type="hidden" name="image">//以下iframe加了参数&savepathfilename=image<iframe id="eWebEditor1" src="../editor/eWebEditor.jsp?id=content&style=standard&savepathfilename=image" frameborder="0" scrolling="no" width="650" height="350"></iframe>//ps,如果上传了多个文件,这个image的内容以|格开,自己处理一下 scoutlin(梅川库子) 你这个方法不行 我用的是修改过的jsp版本 不是官方的asp版本 我在官方网站上看到过这个方法 采用了 却不行 怎么可以在 提交时用js 得到content里的图片名 附给 一个隐藏域 象这里的http://community.csdn.net/Expert/topic/3837/3837779.xml?temp=3.289431E-02 在IE 6 IE7 IE8显示flash 在平板电脑显示 在DW中,我想实现跟QQ聊天窗口的表情功能一样 JS属性怎么用 求助 Extjs Gird的问题 JS超难题 JavaScript 的 window.history.go(1) 如何在页面中对分区进行动态定位 为什么RadioButton变量的checked属性在IE中不显示 高分结贴了,救命了呀,javascript 怎么验证 "yyyy/MM/dd" 的日期格式阿,怎么check 呀?其他格式不要 Extjs 4.2 rowEditing plugin buttons显示位置错误 文本框 一个送分的问题~~~~~~~~在线等待
function over(){
var o = event.srcElement;
if(o.tagName == "TD"){
o.bgColor = "red";
}
}
function out(){
var o = event.srcElement;
if(o.tagName == "TD"){
o.bgColor = "#eeeeee";
}
}
document.onmouseover = over;
document.onmouseout = out;
</script>
<table>
<tr>
<td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="1"></td>
<td bgcolor="#EEEEEE">方法法方法法方法法法</td>
<td bgcolor="#EEEEEE">方法法方法</td>
</tr>
<tr>
<td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="2"></td>
<td bgcolor="#EEEEEE">方法法方法法方法法法</td>
<td bgcolor="#EEEEEE">方法法方法</td>
</tr>
<tr>
<td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="3"></td>
<td bgcolor="#EEEEEE">方法法方法法方法法法</td>
<td bgcolor="#EEEEEE">方法法方法</td>
</tr>
</table>
function over(){
var o = event.srcElement;
if(o.tagName == "TD"){
for(i=0;i<o.parentNode.childNodes.length;i++){
o.parentNode.childNodes.item(i).bgColor = "red";
}
}
}
function out(){
var o = event.srcElement;
if(o.tagName == "TD"){
if(!o.parentNode.childNodes.item(0).childNodes.item(0).checked){
for(i=0;i<o.parentNode.childNodes.length;i++){
o.parentNode.childNodes.item(i).bgColor = "#eeeeee";
}
}
}
}
function check(){
var o =event.srcElement;
if(o.tagName == "INPUT"){
for(i=0;i<document.getElementsByTagName("TD").length;i++){
document.getElementsByTagName("TD")[i].bgColor = "#eeeeee";
}
if(o.checked){
for(i=0;i<o.parentNode.parentNode.childNodes.length;i++){
o.parentNode.parentNode.childNodes.item(i).bgColor = "red";
}
}
}
}
document.onmouseover = over;
document.onmouseout = out;
document.onclick = check;
</script>
<table>
<tr bgcolor="red">
<td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="1"></td>
<td bgcolor="#EEEEEE">方法法方法法方法法法</td>
<td bgcolor="#EEEEEE">方法法方法</td>
</tr>
<tr>
<td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="2"></td>
<td bgcolor="#EEEEEE">方法法方法法方法法法</td>
<td bgcolor="#EEEEEE">方法法方法</td>
</tr>
<tr>
<td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="3"></td>
<td bgcolor="#EEEEEE">方法法方法法方法法法</td>
<td bgcolor="#EEEEEE">方法法方法</td>
</tr>
</table>
<input type="hidden" name="image" id="woyingjie2">iframe中
window.top.document.getElementById("woyingjie1").src = imageSrc;
window.top.document.getElementById("woyingjie2").value = imageSrc;
tr
{
over:expression(this.onmouseover=function(){this.style.backgroundColor='lightblue'});
out:expression(this.onmouseout=function(){this.style.backgroundColor='white'});
click:expression(this.onclick=function(){this.childNodes[0].childNodes[0].checked=true});
}</style><body>
<table>
<tr>
<td><input type="radio" name="radiobutton" value="1"></td>
<td>方法法方法法方法法法</td>
<td>方法法方法</td>
</tr>
<tr>
<td><input type="radio" name="radiobutton" value="2"></td>
<td>方法法方法法方法法法</td>
<td>方法法方法</td>
</tr>
<tr>
<td><input type="radio" name="radiobutton" value="3"></td>
<td>方法法方法法方法法法</td>
<td>方法法方法</td>
</tr>
</table>
</body>
要是还没解决的话MSN中给你讲现在想睡觉了
MSN已发给你的短信中
<IMG src="/upload/200503041000564211.gif">
window.top.document.getElementByTagName("woyingjie2")[0].value = imageSrc;
上面都说尽了2。
<input type="hidden" name="content">
<input type="hidden" name="image">
//以下iframe加了参数&savepathfilename=image
<iframe id="eWebEditor1" src="../editor/eWebEditor.jsp?id=content&style=standard&savepathfilename=image" frameborder="0" scrolling="no" width="650" height="350"></iframe>
//ps,如果上传了多个文件,这个image的内容以|格开,自己处理一下