<table cellpadding=3 cellspacing=1 bgcolor=#000000 width=200>
<tr><td bgcolor=#FFFFFF><input type=text onkeyup='this.value.length==0?ice.style.display="none":ice.style.display="";ice.innerText=this.value;'>
</td></tr>
<tr><td id=ice style='display:none' bgcolor=#FFFFFf> </td></tr>
</table>
<tr><td bgcolor=#FFFFFF><input type=text onkeyup='this.value.length==0?ice.style.display="none":ice.style.display="";ice.innerText=this.value;'>
</td></tr>
<tr><td id=ice style='display:none' bgcolor=#FFFFFf> </td></tr>
</table>
解决方案 »
- 锚标记定位问题
- 有关于jquery的tablednd的使用问题,主要是想实现AJAX保存顺序。
- 一个很诡异的js date问题..
- 如何将一个数组转成table
- 高手帮帮忙
- javascript显10个图就出现"内存不够“的错误?
- 这里的this指的是什么?
- 请教高手,关于日期问题
- opener.location.reload()时老是要弹出个对话框,喊我确认什么的,能不能不让它出?
- javascript怎么把中文转换为16进制?象JSP里的URLEncoder.encode(“中国”)一样。
- 两个数组完全相同,应该怎么写?能直接用arrayA()=arrayB()吗?
- 窗体间传值问题(在线等)
你说的内容消失是怎么个小时法?搞不清楚你的,要不就setInterval来定时判断文本框内容吧
<tr><td bgcolor=#FFFFFF><input type=file onpropertychange='setImg(this)'>
</td></tr>
<tr><td id=ice style='display:none' bgcolor=#FFFFFf> </td></tr>
</table>
<SCRIPT LANGUAGE="JavaScript">
<!--
function setImg(file)
{
if (ice.innerText.length == 0)
{
ice.style.display = "none";
}
else
{
ice.innerHTML = "<img src="+file.value+">";
ice.style.display = "";
}
}
//-->
</SCRIPT>