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">
相关文档:
根据我最近的一些实践以及在和一些读者进行关于HTML表格的使用问题沟通之后,决定写这篇文章。总的来说,我注意到由于误导性信息,他们对于table的使用有种先入为主的厌恶。事实上很多人会说”我看到永远不应该使用表格”的说法,但是这绝对是错误的!这个建议只是针对使用HTML表格来定义网页 ......
HTML语言语法大全
<! - - ... - -> 批注
<!> 跑马灯
<marquee>...</marquee>普通卷动
<marquee behavior=slide>...</marquee>滑动
<marquee behavior=scroll>...</marquee>预设卷动
<marquee behavior=alternate>...</marquee>来回卷动
& ......
众所周知,对于链接和图片,我们可以通过添加title
属
性以显示一些说明文字,一般情况下,这些文字都是显示成一行,那么有没有办法让它以多行的方式显示呢?解决的方法有两种:
1.将title
属
性分成几行来写,例如:
<a href=#" title
="说明一
说明二
说明
三">印象派</a> ......
<script language="javascript">
function addItem()
{
var oTable = document.getElementById("whtable");
var oTbody = oTable.tBodies[0];
var v = oTbody.rows.length;
oTbody.insertRow(v);
oTbody.rows[v].id="itemtr ......
框线制作常用代码
代码
含义
<table>...</table>
建立表格,所有的其他标记都需要在此标记中
<table width=* heigth=*></table>
设定表格宽度width和高度height,属性值可以使用点数,如:width=50,也可以使用百分比,如:width=50%。
<table bgcolor=*></ta ......