?? csstx16.htm
字號:
<html>
<head>
<title>洪恩在線 - CSS特效賞析</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/pub/css/home.css">
<link rel="stylesheet" href="/pc/homepage/homepage.css">
<meta name="keywords" content="電腦樂園,電腦,樂園,交互教程,交互,教程,教育,網頁制作,CSS,特效,賞析">
</head>
<body bgcolor="white" text="black" topmargin="10" leftmargin="0" marginwidth="0" marginheight="10" onload="playHelp()">
<!--頂部開始-->
<script language="Javascript" src="/pub/js/head.js"></script>
<!--頂部結束-->
<table width="760" height="20" border=0 cellspacing="0" cellpadding="0" align="center">
<tr>
<td height=20 class="p1" bgcolor="#E8E8E8" align="left"><img src="/pc/img/blank.gif" width="12" height="8"><font color="#000000"><font color="#FF9966">當前位置</font>:<a href="/default.htm" class="under">洪恩在線</a>
-> <a href="/pc/index.htm" class="under">電腦樂園</a> -> CSS特效賞析</font></td>
</tr>
</table>
<table width="760" border=0 cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="15"></td>
</tr>
</table>
<table width="760" cellspacing="0" border=0 cellpadding="0" align="center">
<tr>
<td width="145" valign="top" bgcolor="#E8E8E8" align="left" style="color:blue" class="p1">
<br>
<table width="145" border="0" cellspacing="0" cellpadding="0" bordercolor="#F8AC0E" height="20">
<tr bgcolor="000099" valign="middle">
<td width="115" align="center" class="p2"><b><font color="#FFFFFF">CSS特效賞析</font></b></td>
<td height="20" bgcolor="#E8E8E8" width="13"><img src="/pc/img/title_00.gif" width="13" height="20"></td>
<td height="20" bgcolor="#E8E8E8" width="17"> </td>
</tr>
</table>
<p class="p1" style="line-height:17pt" align="left"> 1.<a href="csstx01.htm">動態改變樣式</a><br>
2.<a href="csstx02.htm">動態可視化效果</a><br>
3.<a href="csstx03.htm">動態濾鏡顯示</a><br>
4.<a href="csstx04.htm">Blentrans屬性</a><br>
5.<a href="csstx05.htm">Revealtrans屬性</a><br>
6.<a href="csstx06.htm">動態Glow屬性</a><br>
7.<a href="csstx07.htm">顯示和隱藏</a><br>
8.<a href="csstx08.htm">兼容兩種瀏覽器</a><br>
9.<a href="csstx09.htm">移動對象</a><br>
10.<a href="csstx10.htm">對象的滑動</a><br>
11.<a href="csstx11.htm">鍵盤控制對象</a><br>
12.<a href="csstx12.htm">鼠標控制對象</a><br>
13.<a href="csstx13.htm">Clip屬性的應用</a><br>
14.<a href="csstx14.htm">動態文字變換</a><br>
15.<a href="csstx15.htm">動態改變頁面樣式</a><br>
16.<a href="csstx16.htm">動態時鐘控制</a><br>
17.<a href="csstx17.htm">倒計時</a> <br>
18.<a href="csstx18.htm">動態刷新</a><br>
</p>
<p align="center" class=p1> <a href=/pc/bin/msg.pl?file_id=k_csstx target="_blank"><img src="/pc/img/message.gif" width="64" height="54" alt="請您留言" border="0"><br>
談談您的看法</a> <br>
<script language="javascript">
speak_num="za"
</script>
<script language="javascript" src=/pc/var/pc_k_csstx.js>
</script>
<script language="javascript">
var num=0
if (!isNaN(speak_num)){
num=speak_num;
}
else{
num=0
}
document.writeln ("已有")
document.writeln (num)
document.writeln ("條發言")
</script>
</p>
<p class="p1" style="line-height:17pt" align="left"> </p>
</td>
<td width=1 bgcolor=#0586D7 height="123"><img src="/pc/img/blank.gif" width="1" height="1">
</td>
<td width=15 background="/pc/img/line.gif">
<p> </p>
</td>
<td valign="top" background="/pc/img/line.gif" width="584" height="123" class="p2">
<p align="center"><b><span class="p3"><br>
<font color="#3366CC">CSS特效賞析</font></span></b></p>
<p align="right" class="p1"> <a href="csstx15.htm">上一實例</a> <a href="csstx17.htm">下一實例</a> </p>
<hr color=blue size=1>
<p class="p2" style="line-height:17pt"> <b><font color="#336633">16、動態時鐘控制</font></b></p>
<p class="p2" style="line-height:17pt"> 這個例子會讓您看上去覺得眼花繚亂,在輸入欄中輸入不同的時間間隔會以不同的速度顯示。<a href="sl/dttimecontrol.htm" target="_blank"><img src="img/link.gif" width="127" height="20" align="absmiddle" border="0" alt="鏈接"></a><br>
這里面主要用的是revealtrans濾鏡屬性,在每一個區域內都添加了revealtrans屬性,再讓它們調用onfilterchange函數。而輸入時間間隔是靠javascript的onchange<br>
事件實現的,下面我們把有關CSS的代碼列出如下:</p>
<p class="p2" style="line-height:17pt"> <body onload="init()"> <br>
<span style="position:absolute;top:140;left:20;width:400;<br>
text-align:center; font-size:12pt"> <br>
<p>輸入新的時間間隔。 <br>
<input id="speed" onchange="updateTime()" size="20"> </span>
</p><br>
<font color="#CC3399">//*定義輸入文本框,調用updateTime()函數*//</font> <br>
<div id="div1"<br>
style="position:absolute;top:20;left:20;width:100;height:100; <br>
font-size:100;text-align:center;background-color:blue; <br>
filter:revealtrans(transition=1,duration=1.5)"<br>
onfilterchange="done(1)"><br>
<font color="#CC3399">//*設置一個層,包括它的定位、字體和revealtrans濾鏡屬性,同時調用Done函數<br>
改變濾鏡顯示樣式,達到動態的目的,下面的三個層的設置內容與這個類似*//</font> <br>
<p>A</p> </div> <br>
<div id="div2" <br>
style="position:absolute;top:20;left:140;width:100;height:100;<br>
font-size: 100;text-align:center;background-color:blue; <br>
filter:revealtrans(transition=2,duration=1.5)" <br>
onfilterchange="done(2)"> <br>
<p>A</p> </div> <br>
<div id="div3" <br>
style="position:absolute;top:20;left:260;width:100;height:100;<br>
font- size:100;text-align:center;background-color:blue;<br>
filter:revealtrans(transition=3,duration=1.5)"<br>
onfilterchange="done(3)"> <br>
<p>A</p> </div> <br>
<div id="div4" <br>
style="position:absolute;top:20;left:380;width:100;height:100;<br>
font- size:100;text-align:center;background-color:blue;<br>
filter:revealtrans(transition=4,duration=1.5)"<br>
onfilterchange="done(4)"> <br>
<p>A</p> </div> <br>
</body></p>
<p class="p2" style="line-height:17pt"> 好了,本節就介紹到這里,下一節將向您推薦一個倒計時的例子。<br>
</p>
<hr color=blue size=1>
<p align="right" class="p1"><a href="csstx15.htm">上一實例</a> <a href="csstx17.htm">下一實例</a></p>
<p align="center" class=p2><a href=/pc/bin/msg.pl?file_id=k_csstx target="_blank"><img src="/pc/img/message.gif" width="64" height="54" alt="請您留言" border="0"><br>
談談您的看法</a>
<script language="javascript">
speak_num="za"
</script>
<script language="javascript" src=/pc/var/pc_k_csstx.js>
</script>
<script language="javascript">
var num=0
if (!isNaN(speak_num)){
num=speak_num;
}
else{
num=0
}
document.writeln ("已有")
document.writeln (num)
document.writeln ("條發言")
</script>
</p>
<p> </p>
</td>
<td width=15 background="/pc/img/line.gif">
<p> </p>
</td>
</tr>
</table>
<!--底部開始-->
<script language="Javascript" src="/pub/js/foot.js"></script>
<!--底部結束-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -