解决方案 »
- 请教:弹出层的问题
- js 弹出 登录 实现
- 谁来解释下这段JS代码,引起的现象。。
- 急急。。怎么设定明细行里的Ext.grid.CheckboxSelectionModel为选中状态? 明细行里有的状态是选中的,有的不是。谢谢高手指教。。。
- 请问现在JS还能操作注册表吗?
- 请问象QQ首页版头那个换色功能怎么实现的呢?感谢...
- 谁能看懂这个脚本?
- window.open()不灵啊,怎么回事?
- 请问window.document.form.A.value,其中A是字符串变量,怎么办?!
- 能不能帮下在分析一下,为什么下边的程序不能打开网上下载的图片和winnt自带的图片?.jpg/.gif?如:cloud.gif
- java中怎么实现一个可移动可关闭的悬浮在另一个页面之上的窗口
- jquery判断是否有某属性
锅,你用了jQuery,但是页面上你没有引入。把下面红色的代码加上。
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="popWin.js"></script>
所以不是 getElementById 的问题
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试</title>
<link href="popWin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="popWin.js"></script>
<script type="text/javascript">
function showMsg(ido,tit){
var div = document.getElementById(ido).innerHTML;
popWin(tit, div, 260, 200);
}
</script>
<script type="text/javascript">
function test(i){
alert(document.getElementById(i).value);
//alert(this[formname][i].value); 如果传会表单的name在弹出层中也是无法获取的
}
</script></head>
<body><table bgcolor="#FFFFFF" border=0 cellpadding=1 cellspacing=1 width="100%" style="width:100%;table-layout:fixed;">
<tr style="cursor:hand" bgcolor="#FFFFFF" >
<td>
<a href="#" onclick="showMsg('JY1301170174','测试')" >备注</a>
<div id="JY1301170174" >
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="4" bordercolor="#666666">
<tr>
<td align="left">
<form method=post id="fJY1301170174" name="fJY1301170174">
<textarea id="bJY1301170174" type=text cols=25 rows=3 onclick="this.style.height=78;this.style.background='#ffff99';document.getElementById('sJY1301170174').style.height=12;document.getElementById('sJY1301170174').style.background='#FFFFFF';">客户备注:很好!</textarea><br>
<textarea id="sJY1301170174" type=text cols=25 rows=3 onclick="this.style.height=78;this.style.background='#ffff99';document.getElementById('bJY1301170174').style.height=12;document.getElementById('bJY1301170174').style.background='#FFFFFF';">我的备注:</textarea><br>
<textarea cols=25 rows=2 type=text id="nrJY1301170174" name="nrJY1301170174" onClick="if (this.value=='点击添加备注'){this.value=''};" onBlur="if (this.value==''){this.value='点击添加备注'};" required="true">点击添加备注</textarea><br>
<input id="acJY1301170174" name="acJY1301170174" type=hidden value="">
<input type=submit id="JY1301170174s1" value=备注 class=btn1_mouseout style="height:25px;width:50px;FONT-SIZE:15px;" onclick="document.getElementById('acJY1301170174').value='addre';return test('acJY1301170174');">
<input type=submit id="JY1301170174s2" value=短信 class=btn1_mouseout style="height:25px;width:50px;FONT-SIZE:15px;" onclick="document.getElementById('acJY1301170174').value='sendmsg';return test('acJY1301170174');"><input type=submit value=测试 onclick="test('nrJY1301170174')"><span id="tsJY1301170174"></span>
</form>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
</body>
</html>