HTML radio判断
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta NAME="Copyright" CONTENT="Copyright (c) 2009 LOADCOM Corporation. All Rights Reserved.">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>NTP设置</title>
<style type="text/css">
#leftpic{width:160px;float:left;padding-right:15px;}
#leftpic a:link, #leftpic a:visited{color:#006eb3;text-decoration:none;}
#leftpic a:hover{color:#000000;text-decoration:underline;}
img{border:1px solid #0066b0;margin-bottom:5px;}
ul#list{list-style-type:none;margin:0px;padding:5px 0px 5px 2px;}
ul#list li{line-height:18px;}
ul#list li a:link{color:#000000;text-decoration:none;}
ul#list li a:visited{color:#333333;text-decoration:none;}
ul#list li a:hover{color:#006eb3;text-decoration:underline;}
</style>
<link href="images/basic.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
function checkRadio()
{
if(document.NTPForm.radiobutton[0].checked)
{
//NTPForm.action="/cgi-bin/serverSet.cgi";
//NTPForm.submit();
alert("提交");return;
}
else if(document.NTPForm.radiobutton[1].checked)
{
//NTPForm.action="/cgi-bin/manualSet.cgi";
//NTPForm.submit();
alert("返回");return;
}
else
{
alert("无任何提交的信息");
return false;
}
}
</script>
</head>
<body id="sports">
<br>
<form name="NTPForm" method="post" action="#">
<table width="500" border="0" align="center" cellpadding="1" cellspacing="1" class="tb" bgcolor="##c3e4fc">
<tr bgcolor="#FFFFFF">
相关文档:
<table id="tableExcel" width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td colspan="5" align="center">html 表格导出道Excel</td>
</tr>
<tr>
<td>列标题1</td>
<td>列标题2</td>
......
对于刚刚接触HTML源代码的朋友可能有这样一个疑惑:在一个表单元素中,我如果想用脚本确定某个具体元素,我既可以用他的NAME来索引这个对象,也可以加一个ID来索引它,那这两种方法究竟有什么区别呢?以下我们来具体探讨一下,鉴于本人水平有限,如有描述不当,恳请指教。
我们可以通过一段代码来分析一下其中的微妙差别:
......
同一面中的跳转 通过描点 主要用到 window.location.hash 指定描点位置
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Ty ......
一般的客户在刚开始往往不了解自己到底想要什么样的软件,随着项目的一步步进行,他们会根据实际完成的部分逐渐理清头绪,提出进一步的要求。
有一种说法就是,“真正的需求是在第一个版本完成的时候产生的。”用户在看到完整的成品后,才首次理顺了自己的思路,然后在成品的基础上对功能进行删减。
为了让客户 ......
来自:http://9host.cn/html/20074221602392654.html
最近在搞网页编程,总结了frameset 的一些使用技巧,供大家参考哦,还是先剖析一下框架吧!
■ 框架标记
<FRAMESET> <FRAME>
<NOFRAMES>
<IFRAME>
欲明白本篇【HTML彻底剖析】之标记分类,请看 【标记一览】 ......