87,990
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<meta http-equiv = "content-type" content = "text/html" charset = "gb2312" >
<title>楼盘投票系统_Page1</title>
<style type= "text/css">
.h1{font-family:"微软雅黑";font-size:25px}
</style>
</head>
<body>
<script language = "JavaScript">
function mysid(sid)
{
var omlg = document.getElementsByTagName('img');
for(i = 0;i<omlg.length;i++)
{
if(omlg[i].id==sid)
{
omlg[i].previoussibbling.previoussibbing.checked = true;
omlg[i].style.border= '2px solid #FF6600';
}
else
{
omlg[i].style.border = '2px solid #FFFFFF';
}
}
}
</script>
<div align= "center " valign= "top" margin:-280px style= "display:inline-table;align=center;width=900px;height:110px;padding:20px;background-
color:#F6FFD2"><font face = "微软雅黑"size = 7>2011标杆楼盘评选</font>
</div>
<br>
<br>
<div align="left" ><font face = "微软雅黑" size = "6" color = "DA0025" ><b>某某路沿线</b></font></div>
<br>
<br>
<form action = "vote2.php" method = "post" name = "votefm1">
<table align = "left" valign = "top" width = "840" height = "210" cellspace = 0 cellpadding = 2 class="h1" >
<tr>
<td width = "280" valign = "top" height = "35"><input type = "radio" name = "radiono1" value = "j1"><b>某某某某城
</b><img id = "jp1"src="http://img2081.poco.cn/mypoco/myphoto/20110906/16/5636976620110906164630040.png" width="80" height="30" border="0" onclick =
"mysid(this.id)" /></td>
<td width = "280" valign = "top" height = "35"><input type = "radio" name = "radiono2" value = "j2"><b>某某某某二期
</b><img id = "jp2"src="http://img2081.poco.cn/mypoco/myphoto/20110906/16/5636976620110906164630040.png" width="80" height="30" border="0" onclick = "mysid
(this.id)" /></td>
<td width = "280" valign = "top" height = "35"><input type = "radio" name = "radiono3" value = "j3"><b>某某壹号
</b><img id = "jp3"src="http://img2081.poco.cn/mypoco/myphoto/20110906/16/5636976620110906164630040.png" width="80" height="30" border="0" onclick
= "mysid(this.id)" /></td>
</tr>
<tr>
<td width = "280" valign = "top" height = "35"><input type = "radio" name = "radionob1" value = "k1"><b>某某城
</b><img id = "kp1"src="http://img2081.poco.cn/mypoco/myphoto/20110906/16/5636976620110906164630040.png" width="80"
height="30" border="0" onclick = "mysid(this.id)" /></td>
<td width = "280" valign = "top" height = "35"><input type = "radio" name = "radionob2" value = "k2"><b>某某时代
</b><img id = "kp2"src="http://img2081.poco.cn/mypoco/myphoto/20110906/16/5636976620110906164630040.png" width="80"
height="30" border="0" onclick = "mysid(this.id)" /></td>
<td width = "280" valign = "top" height = "35"><input type = "radio" name = "radionob3" value = "k3"><b>某某某某
</b><img id = "kp3"src="http://img2081.poco.cn/mypoco/myphoto/20110906/16/5636976620110906164630040.png" width="80" height="30" border="0" onclick
= "mysid(this.id)" /></td>
</tr>
</table>
</form>
</body>
</html>
<html>
<head>
<meta http-equiv = "content-type" content = "text/html" charset = "gb2312" >
<title>楼盘投票系统_Page1</title>
<style type= "text/css">
.h1{font-family:"微软雅黑";font-size:25px}
</style>
</head>
<body>
<script language = "JavaScript">
function mysid(sid)
{
var omlg = document.getElementsByTagName('img');
for(i = 0;i<omlg.length;i++)
{
if(omlg[i].id==sid)
{
omlg[i].parentNode.getElementsByTagName('input')[0].checked = true;
omlg[i].style.border= '2px solid #FF6600';
}
else
{
omlg[i].style.border = '2px solid #FFFFFF';
}
}
}
</script>
<div align= "center " valign= "top" margin:-280px style= "display:inline-table;align=center;width=900px;height:110px;padding:20px;background-
color:#F6FFD2"><font face = "微软雅黑"size = 7>2011标杆楼盘评选</font>
</div>
<br>
<br>
<div align="left" ><font face = "微软雅黑" size = "6" color = "DA0025" ><b>某某路沿线</b></font></div>
<br>
<br>
<form action = "vote2.php" method = "post" name = "votefm1">
<table align = "left" valign = "top" width = "840" height = "210" cellspace = 0 cellpadding = 2 class="h1" >
<tr>
<td width = "280" valign = "top" height = "35"><input type = "radio" name = "radiono1" value = "j1"><b>某某某某城
</b><img id = "jp1"src="http://img2081.poco.cn/mypoco/myphoto/20110906/16/5636976620110906164630040.png" width="80" height="30" border="0" onclick =
"mysid(this.id)" /></td>
<td width = "280" valign = "top" height = "35"><input type = "radio" name = "radiono2" value = "j2"><b>某某某某二期
</b><img id = "jp2"src="http://img2081.poco.cn/mypoco/myphoto/20110906/16/5636976620110906164630040.png" width="80" height="30" border="0" onclick = "mysid
(this.id)" /></td>
<td width = "280" valign = "top" height = "35"><input type = "radio" name = "radiono3" value = "j3"><b>某某壹号
</b><img id = "jp3"src="http://img2081.poco.cn/mypoco/myphoto/20110906/16/5636976620110906164630040.png" width="80" height="30" border="0" onclick
= "mysid(this.id)" /></td>
</tr>
<tr>
<td width = "280" valign = "top" height = "35"><input type = "radio" name = "radionob1" value = "k1"><b>某某城
</b><img id = "kp1"src="http://img2081.poco.cn/mypoco/myphoto/20110906/16/5636976620110906164630040.png" width="80"
height="30" border="0" onclick = "mysid(this.id)" /></td>
<td width = "280" valign = "top" height = "35"><input type = "radio" name = "radionob2" value = "k2"><b>某某时代
</b><img id = "kp2"src="http://img2081.poco.cn/mypoco/myphoto/20110906/16/5636976620110906164630040.png" width="80"
height="30" border="0" onclick = "mysid(this.id)" /></td>
<td width = "280" valign = "top" height = "35"><input type = "radio" name = "radionob3" value = "k3"><b>某某某某
</b><img id = "kp3"src="http://img2081.poco.cn/mypoco/myphoto/20110906/16/5636976620110906164630040.png" width="80" height="30" border="0" onclick
= "mysid(this.id)" /></td>
</tr>
</table>
</form>
</body>
</html>
function mysid(sid)
{
alert(sid)
var omlg = document.getElementsByTagName('img');
for(i = 0;i<omlg.length;i++)
{
if(omlg[i].id==sid)
{
omlg[i].previousSibling.previousSibling.checked = true;
omlg[i].style.border= '2px solid #FF6600';
}
else
{
omlg[i].style.border = '2px solid #FFFFFF';
}
}
}