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

📄 w0001.htm

📁 JavaScript源代码全集
💻 HTM
字号:
<!--Saved  from《天索星网》http://www.tasoo.onchina.net,E-mail:tasoo@263.net-->
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!-- A:link {text-decoration: none; color:#000000}
     A:visited {text-decoration: none; color: #000000}
     A:active {text-decoration: none; color: #FF0000}
     A:hover {text-decoration: underline; color: FF0000}
     body{font-size=9pt}
	    TH{FONT-SIZE: 9pt}
       TD{ FONT-SIZE: 9pt}-->
</style>
<title>《网络教程》之Javascript--文本变色</title>
</head>

<body topmargin="0" leftmargin="0">
<div align="center"><center>

<table border="0" width="90%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" colspan="3" height="62"><div align="center"><center><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td width="250"><img src="../photo/jx.gif" border="0" WIDTH="200" HEIGHT="80"></td>
        <td width="468" height="60"></td>
      </tr>
    </table>
    </center></div></td>
  </tr>
  <tr>
    <td width="20%" bgcolor="#C8C882" valign="middle" align="center" height="22"></td>
    <td width="80%" bgcolor="#C8C882" valign="middle" align="center" colspan="2" height="22"><strong><span style="font-size: 10pt; font-family: Arial">javascript文字类</span></strong></td>
  </tr>
  <tr>
    <td width="20%" valign="top" align="left"><div align="center"><center><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100%" valign="middle" align="center" height="30" bgcolor="#C8C882"><span style="font-size: 9pt"><a href="index.htm">时间类</a></span></td>
      </tr>
      <tr>
        <td width="100%" valign="middle" align="center" height="30" bgcolor="#C8C882"><span style="font-size: 9pt"><a href="index.htm">文字类</a></span></td>
      </tr>
      <tr>
        <td width="100%" valign="middle" align="center" height="30" bgcolor="#C8C882"><span style="font-size: 9pt"><a href="index.htm">导航类</a></span></td>
      </tr>
      <tr>
        <td width="100%" valign="middle" align="center" height="30" bgcolor="#C8C882"><span style="font-size: 9pt"><a href="index.htm">鼠标类</a></span></td>
      </tr>
      <tr>
        <td width="100%" valign="middle" align="center" height="30" bgcolor="#C8C882"><span style="font-size: 9pt"><a href="index.htm">按钮类</a></span></td>
      </tr>
      <tr>
        <td width="100%" valign="middle" align="center" height="30" bgcolor="#C8C882"><span style="font-size: 9pt"><a href="index.htm">跑马灯</a></span></td>
      </tr>
      <tr>
        <td width="100%" valign="middle" align="center" height="30" bgcolor="#C8C882"><span style="font-size: 9pt"><a href="index.htm"><font face="Arial"><strong>COOKIE</strong></font>类</a></span></td>
      </tr>
      <tr>
        <td width="100%" valign="middle" align="center" height="30" bgcolor="#C8C882"><span style="font-size: 9pt"><a href="index.htm">其他类</a></span></td>
      </tr>
      <tr>
        <td width="100%" valign="middle" align="center" height="10" bgcolor="#505028"></td>
      </tr>
    </table>
    </center></div></td>
    <td width="80%" valign="top" align="left" colspan="2" height="242"><div align="center"><center><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100%" bgcolor="#EBEBEB" valign="middle" align="center" height="18" colspan="3"><span style="font-size: 9pt">文本变色</span></td>
      </tr>
      <tr>
        <td width="100%" valign="middle" align="center" height="2" colspan="3"></td>
      </tr>
      <tr>
        <td width="100%" valign="middle" align="center" height="1" colspan="3" bgcolor="#000080"></td>
      </tr>
      <tr>
        <td width="16%" valign="middle" align="center" height="22"></td>
        <td width="67%" valign="middle" align="center" height="22"><div ID="First" STYLE="pos-ition: absolute;font-family: 黑体; 
font-size: 20pt; color: black;left: 30px;top: 30pt"><p>把鼠标移到这里看看 
        </p>
        </div><div ID="Sec" STYLE="posit-ion: absolute;font-family: arial;
font-size: 16pt; color: #0080C0; left: 30px;top: 142pt"><p>tasoo 
        welcome you </p>
        </div><div ID="Third" STYLE="pos-ition: absolute;font-family: arial; 
font-size: 10pt; color: green;left: 30px;top: 30pt"><p>http://www.tasoo.onchina.net 
        </p>
        </div><p><script LANGUAGE="VBScript">
<!--
Sub First_onMouseOver()
First.Style.color = "red" 
End Sub
Sub First_onMouseOut()
First.Style.color = "black" 
End Sub
Sub Sec_onMouseOver()
Sec.Style.color = "black"
Sec.Style.fontweight = "bold" 
End Sub
Sub Sec_onMouseOut()
Dim MyText
Sec.Style.color = "#0080C0"
Sec.Style.fontweight = "normal" 
End Sub
Sub Third_onMouseOver()
Third.Style.color = "#FF8200"
End Sub
Sub Third_onMouseOut()
Third.Style.color = "green"
End Sub
-->
</script></td>
        <td width="17%" valign="middle" align="center" height="22"></td>
      </tr>
      <tr>
        <td width="16%" valign="middle" align="center" height="20"></td>
        <td width="67%" valign="middle" align="center" height="20"><span style="font-size: 9pt; color: rgb(255,0,0)">拷贝下面的代码到你的html文件的&lt;body&gt;和&lt;/body&gt;之间</span></td>
        <td width="17%" valign="middle" align="center" height="20"></td>
      </tr>
      <tr>
        <td width="16%" valign="middle" align="center" height="22"></td>
        <td width="67%" valign="middle" align="center" height="22" bgcolor="#F0FAFF"> <p><textarea rows="8" name="S1" cols="40">&lt;div ID=&quot;First&quot;
        STYLE=&quot;pos-ition: absolute;font-family: 黑体; 
font-size: 20pt; color: black;left: 30px;top: 30pt&quot;&gt;&lt;p&gt;把鼠标移到这里看看 
        &lt;/p&gt;
        &lt;/div&gt;&lt;div ID=&quot;Sec&quot;
        STYLE=&quot;posit-ion: absolute;font-family: arial;
font-size: 16pt; color: #0080C0; left: 30px;top: 142pt&quot;&gt;&lt;p&gt;tasoo 
        welcome you &lt;/p&gt;
        &lt;/div&gt;&lt;div ID=&quot;Third&quot;
        STYLE=&quot;pos-ition: absolute;font-family: arial; 
font-size: 10pt; color: green;left: 30px;top: 30pt&quot;&gt;&lt;p&gt;http://www.tasoo.2000c.net 
        &lt;/p&gt;
        &lt;/div&gt;&lt;p&gt;&lt;script LANGUAGE=&quot;VBScript&quot;&gt;
<!--Sub First_onMouseOver()First.Style.color = "red" End SubSub First_onMouseOut()First.Style.color = "black" End SubSub Sec_onMouseOver()Sec.Style.color = "black"Sec.Style.fontweight = "bold" End SubSub Sec_onMouseOut()Dim MyTextSec.Style.color = "#0080C0"Sec.Style.fontweight = "normal" End SubSub Third_onMouseOver()Third.Style.color = "#FF8200"End SubSub Third_onMouseOut()Third.Style.color = "green"End Sub-->
&lt;/script&gt;</textarea></p>
        <p> </td>
        <td width="17%" valign="middle" align="center" height="22"></td>
      </tr>
    </table>
    </center></div></td>
  </tr>
  <tr>
    <td width="20%" bgcolor="#FFFFFF" valign="middle" align="center" height="20"></td>
    <td width="60%" height="20"></td>
    <td width="20%" height="20"></td>
  </tr>
  <tr>
    <td width="20%" bgcolor="#FFFFFF" valign="middle" align="center" height="17"></td>
    <td width="60%" height="17"><p align="center"><a href="w0002.htm"><span style="font-size: 9pt">下一页</span></a></td>
    <td width="20%" height="17"></td>
  </tr>
  <tr>
    <td width="20%" bgcolor="#FFFFFF" valign="middle" align="center" height="14"></td>
    <td width="60%" height="14"></td>
    <td width="20%" height="14"></td>
  </tr>
  <tr>
    <td width="20%" bgcolor="#FFFFFF" valign="middle" align="center" height="14"></td>
    <td width="60%" height="14"></td>
    <td width="20%" height="14"></td>
  </tr>
  <tr>
    <td width="20%" bgcolor="#FFFFFF" valign="middle" align="center" height="47"></td>
    <td width="60%" height="47"><div align="center"><center><table cellspacing="0" cellpadding="0">
      <tr>
        <td width="100%"><p align="center"><font color="#969696"><span style="font-size: 9pt">《天索星网》 
        星网制作 版权所有</span></font></td>
      </tr>
      <tr>
        <td width="100%"><p align="center"><font color="#969696"><span style="font-size: 9pt; font-family: Arial">&copy;2000-2001 All Rights Reserved</span></font></td>
      </tr>
      <tr>
        <td width="100%"></td>
      </tr>
    </table>
    </center></div></td>
    <td width="20%" height="47"></td>
  </tr>
</table>
</center></div>
</body>
</html>
<!--Saved  from天索星网  版权所有;http://www.tasoo.onchina.net,E-mail:tasoo@263.net-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -