導航:首頁 > 源碼編譯 > 純動態HTML網址源碼

純動態HTML網址源碼

發布時間:2024-09-09 16:35:24

A. 求網站頭部HTML導航源碼

<!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-Type" content="text/html; charset=gb2312" />

<title></title>

<meta name="keywords" content="" />

<meta name="description" content="" />
</head>
<body>

</body>
</html>

B. 將日期動態顯示在網頁上的源代碼

可參考試用下。

<!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-Type" content="text/html; charset=gb2312" />
<title>動態年月日時分秒</title>
<script language="javascript" type="text/javascript">
function now(){
var today=new Date(); //聲明日期對象實例
var year=today.getFullYear(); //獲取年份
var month=today.getMonth()+1; //獲取月份(0-11)
var day=today.getDate(); //獲取日

var hour=today.getHours(); //獲取小時
var minute=today.getMinutes(); //獲取分鍾
var second=today.getSeconds(); //獲取秒

var week=today.getDay(); //獲取星期(0-6)
var week_array=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");

month=month<10 ? "0"+month : month;
day=day<10 ? "0"+day : day;
hour=hour<10 ? "0"+hour : hour;
minute=minute<10 ? "0"+minute : minute;
second=second<10 ? "0"+second : second;
var time="<font color='#999999'><b>今天是:</b></font>"+year+"年"+month+"月"+day+"日 "+week_array[week]+" "+hour+":"+minute+":"+second;
bgclock.innerHTML=time;
setTimeout("now()",1000);
}
</script>
</head>

<body>
<div id="bgclock"><script language="javascript">now();</script></div>
</body>
</html>

C. 急求html5網頁及源代碼,不要特別難,下面是作業,用記事本幫我寫下源代碼

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.divHead
{
background-color: #202020;
height: 40px;
width: 100%;
position: absolute;
overflow: hidden;
}
.ul {
color: white;
list-style: none;
height: 100%;
margin-left: 170px;
width: 40%;
float: left;
}
.ul1 {
color: white;
list-style: none;
height: 100%;
margin-left: 200px;
width: 20%;
float: left;
}
.ul>li {
float: left;
padding-left: 10px;
padding-right: 10px;
display: block;
height: 100%;
margin-top: -16px;
padding-top: 10px;
}
.ul>li:hover {
background-color: black;
}

.ul1>li {
float: left;
padding-left: 10px;
padding-right: 10px;
display: block;
height: 100%;
margin-top: -16px;
padding-top: 10px;
}
.ul>li>a
{
color: white;
text-decoration: none;
}
.ul1>li>a
{
color: white;
text-decoration: none;
}
.ul1>li:hover {
background-color: black;
}
</style>
</head>
<body>
<form id="form1" runat="server" style="overflow: hidden">
<div id="divHead" class="divHead">
<ul class="ul">
<li>
<a href="#">Note</a>
</li>
<li>
<a href="#">首頁</a>
</li>
<li>
<a href="#">筆記</a>
</li>
<li>
<a href="#">網站推薦</a>
</li>
</ul>
<ul class="ul1">
<li>
<a href="#">登錄</a>
</li>
<li>
<a href="#">退出</a>
</li>
</ul>
</div>
<div id="divMain" style="height: 550px; width: 100%">
<div style="height: 60%;background-color: #B89460;width: 100%">
<div style="width: 10%;float: left">

</div>
<div style="width: 80%;float: left">

</div>
<div style="width: 10%;float: left">

</div>
</div>
<div style="height: 40%;background-color: white;width: 100%">
<div style="width: 80%;height: 100%;margin-left: 10%">
<div style="width: 33%;height: 100%;float: left;text-align: center">
<p style="font-size: 30px;font-weight: bold;">
前端技術<br/><a style="font-size: 17px;font-weight: normal">
hahahahhahhhahhah
</a>
</p>
<input type="button" value="查看詳情>>" />
</div>
<div style="width: 33%;height: 100%;float: left;text-align: center">
<p style="font-size: 30px;font-weight: bold;">
前端技術<br/><a style="font-size: 17px;font-weight: normal">
hahahahhahhhahhah
</a>
</p>
<input type="button" value="查看詳情>>" />
</div>
<div style="width: 33%;height: 100%;float: left;text-align: center">
<p style="font-size: 30px;font-weight: bold;">
前端技術<br/><a style="font-size: 17px;font-weight: normal">
hahahahhahhhahhah
</a>
</p>
<input type="button" value="查看詳情>>" />
</div>
</div>
</div>
</div>
<div id="divFoot" style="background-color: #202020; height: 30px; width: 100%; text-align: center;
padding-top: 10px; color: white; font-size: 14px;">
@版權所有:大華明智軟體
</div>
</form>
</body>
</html>

閱讀全文

與純動態HTML網址源碼相關的資料

熱點內容
王者如何拜師安卓和蘋果 瀏覽:543
看腳本源碼用什麼軟體 瀏覽:95
紅米手機文件夾今日推薦 瀏覽:513
柱子怎麼設置加密區 瀏覽:573
全網最火指標公式源碼 瀏覽:722
linux防火牆軟體 瀏覽:952
蝦猜app是什麼 瀏覽:745
遠程計算機連接命令 瀏覽:296
javasocket編程代碼 瀏覽:783
明日之後怎麼去城市伺服器 瀏覽:646
星河134源碼和138源碼區別 瀏覽:493
多機械手協同工作演算法 瀏覽:712
通達信高低畫線指標源碼 瀏覽:750
三洋製冷壓縮機價格 瀏覽:936
javahdfs刪除 瀏覽:142
寫字的app哪個好看 瀏覽:529
彩票站源碼開獎器配置 瀏覽:310
精讀4教師用書pdf 瀏覽:997
山東萬泰壓縮機 瀏覽:583
默往加密怎麼改密碼 瀏覽:560