⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csstx18.htm

📁 CSS样式表的入门教程,内容详尽,值得参考,CSS网页特效
💻 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,特效,赏析,网页制作">
<style TYPE="text/css">
<!--
TEXTAREA{font:georgia}
INPUT{font:15px "georgia";background:yellow;color:purple;height:23px;}
p.graffiti1{font-family:arial;
            font-size:30px;color:black;
          }
p.graffiti2{font-family:arial;font-size:30px;
color:white;
}
p.textbox{font-family:georgia;font-size:26px;
color:purple;}
span{font-family:"wide latin";font-size:36px;}
-->
</style>
<script language="javascript"> 
 <!-- 
  function initialize(){ 
document.all.cmb1.innerText=traintext.value; 
document.all.cmb2.innerText=traintext.value; 
} 
 
function vandalize() 
{var s=traintext.value; 
if (s.length>15) 
{ 
alert("please use 15 characters or less"); 
traintext.value=""; 
} 
else{ 
document.all.cmb1.innerText=traintext.value; 
document.all.cmb2.innerText=traintext.value; 
} 
} 
//--> 
</script>
</head>
<body bgcolor="white" text="black" topmargin="10" leftmargin="0" marginwidth="0" marginheight="10" onload="initialize()"> 
<!--顶部开始--> 
<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> 
      -&gt; <a href="/pc/index.htm" class="under">电脑乐园</a> -&gt; 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">&nbsp;</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">&nbsp; </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>&nbsp;</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="csstx17.htm">上一实例</a></p>
      <hr color=blue size=1>
      <p class="p2" style="line-height:17pt">  <b><font color="#336633">18、动态刷新</font></b></p>
      <p class="p2" style="line-height:17pt"><b><font color="#336633">  </font></b>我们先来看下面这个例子:</p>
      <p class="textbox" align="center"> 
      <dd> 
        <input TYPE="TEXT" NAME="traintext" Value="请输入您要刷新的文字" 
SIZE="20">
        <input name="BTN1" TYPE="BUTTON" VALUE="刷新" onclick="vandalize()">
                  </dd>
      <dd><span style="color:red;cursor:hand" 
onClick="cmb2.style.color='#ff0000'"> </span></dd>
      <dd><span style="color:red;cursor:hand" 
onClick="cmb2.style.color='#ff0000'">   R</span> <span style="color:lime;cursor:hand" 
onClick="cmb2.style.color='#00ff00'">G</span> <span style="color:blue;cursor:hand" 
onClick="cmb2.style.color='#0000ff'">B</span> </dd>
      <p> <span STYLE="color:red;cursor:hand" 
onclick="cmb2.style.color='#ff0000'">  </span></p>
      <p id="cmb1" CLASS="graffiti1" align="center"></p>
      <p id="cmb2" CLASS="garffiti2" align="center"></p>
      <p class="p2" style="line-height:17pt">  点击例子中的带颜色的RGB三个字母,分别表示将刷新后的文字变成对应的红、绿、蓝、三色。这个例子的实现代码如下:</p>
      <p class="p2" style="line-height:17pt">  &lt;html&gt;<br>
          &lt;head&gt;<br>
          &lt;style TYPE="text/css"&gt;<br>
          &lt;!--<br>
          textarea{font:georgia}<br>
          input{font-size:15px"georgia";<br>
          background:yellow;color:purple;height:23px;}<br>
          p.graffiti1{font-family:arial;font-size:30px;color:black;}<br>
          p.graffiti2{font-family:arial;font-size:30px;color:white;}<br>
          p.textbox{font-family:georgia;font-size:26px;color:purple} <br>
          span{font-family:"wide latin";font-size:36px;}<br>
          --&gt; &lt;/style&gt;<br>
          &lt;script language="javascript"&gt;<br>
          &lt;!--<br>
          function initialize(){<br>
          document.all.cmb1.innerText=traintext.value; <br>
          document.all.cmb2.innerText=traintext.value;}<br>
          function vandalize()<br>
          {var s=traintext.value; if (s.length&gt;15)<br>
          {alert("please use 15 characters or less"); traintext.value="";} <br>
          else{document.all.cmb1.innerText=traintext.value;<br>
          document.all.cmb2.innerText=traintext.value;}}<br>
          //--&gt; &lt;/script&gt; &lt;/head&gt;<br>
          &lt;body onload="initialize()"&gt;<br>
          &lt;p class="textbox" align="center"&gt;<br>
          &lt;dd&gt;&lt;input TYPE="TEXT" NAME="traintext" Value="请输入您要刷新的文字"<br>
          size="20"&gt;<br>
          &lt;input name="BTN1" TYPE="BUTTON" VALUE="刷新" onclick="vandalize()"&gt;<br>
          &lt;p&gt;&lt;span STYLE="color:red;cursor:hand"<br>
               onclick="cmb2.style.color='#ff0000'"&gt;R&lt;/span&gt;<br>
            &lt;span style="color:lime;cursor:hand"<br>
               onclick="cmb2.style.color='#00ff00'"&gt;G&lt;/span&gt;<br>
            &lt;span style="color:blue;cursor:hand"<br>
               onclick="cmb2.style.color='#0000ff'"&gt;B&lt;/span&gt;&lt;/p&gt;&lt;/dd&gt;&lt;/p&gt;<br>
          &lt;p id="cmb1" CLASS="graffiti1" align="center"&gt;&lt;/p&gt;<br>
          &lt;p id="cmb2" CLASS="garffiti2" align="center"&gt;&lt;/p&gt;&lt;/body&gt;<br>
          &lt;/html&gt; </p>
      <p class="p2" style="line-height:17pt">  如果您看过了我们前面的讲解,理解这段代码并不难。您自己看一看吧,或者您动手试一试,今天就讲到这里了。<br>
          现在,CSS特效赏析的栏目就告一段落了,有关CSS的其他应用,我们会在以后推出的DHTML教程中再做讲解。对于教程本身,希望广大网友多提宝贵的意见,谢谢。 
      </p>
      <hr color=blue size=1>
      <p align="right"class="p1"><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>&nbsp;</p>
    </td>
    <td width=15 background="/pc/img/line.gif">
      <p>&nbsp;</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 + -