三岁宝宝画画学什么:求几个网页代码

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 11:46:44
1 用一个链接打开四个网页的程序
2 在状态栏显示倒数记时
3 标准的空网页
4 插入图片的HTML代码
5 带虚线边框的表格

1.用一个链接打开四个网页的程序
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body >
<p><a href="1.asp" onClick="MM_openBrWindow('1.htm','','');MM_openBrWindow('2.htm','','');MM_openBrWindow('3.htm','','');>链接</a>
2.在状态栏显示倒数记时
limit="0:02" 是初始值
你可以加些过了0秒后的控制语句
<script>
<!--
var limit="0:02"
if (document.images){

var parselimit=limit.split(":")

parselimit=parselimit[0]*60+parselimit[1]*1

}

function beginrefresh(){

if (!document.images)

return

parselimit-=1

curmin=Math.floor(parselimit/60)

cursec=parselimit%60

if (curmin!=0)

curtime=curmin+"分"+cursec+""

else

curtime=cursec

window.status=curtime

setTimeout("beginrefresh()",1000)

}

window.onload=beginrefresh

file://-->

</script>
3. 标准的空网页

<!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=gb2312">
<title>无标题文档</title>
</head>

<body>
</body>
</html>
4.
<img src="1.jpg" width="800" height="600">
5.带虚线边框的表格

<style type="text/css">
<!--
style="BORDER-LEFT: #000000 1PX DASHED; BORDER-RIGHT: #000000 1PX DASHED; BORDER-TOP: #000000 1PX DASHED; BORDER-BOTTOM: #000000 1PX DASHED"
-->
</style>

补充一下第5个:
<table border="1" width="100%" id="table1" style="border-collapse: collapse; border: 1px dotted #008000">
<tr>
<td> </td>
</tr>
</table>

<IMG src="http://你的图片地址" border="0" width="??" height="??">

我只有这说的了!!其他上面这强人已经者阝......