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

📄 an16.htm

📁 javascript各种效果的实例及源代码
💻 HTM
字号:
<HTML>
<HEAD>
<TITLE>按钮特殊效果</TITLE>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.over {color:yellow; background: navy}
.down {color:yellow; background: navy; font-style: italic}
-->
</style>

</HEAD>

<body bgcolor="#fef4d9">
<br>
<br>
<center><font color=red face="隶书" size=6>按钮特殊效果</font></center>
<br>
<center>
<table border=5 bordercolor=blue borderlight=green>
<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>下面为效果显示区!</strong></font></td></tr>
<tr><td align=center height=100 width=300><input 
type="Button"
onMouseOver="this.className='over';" 
onMouseOut="this.className='';" 
onMouseDown="this.className='down';" 
onMouseUp="this.className='over';" 
value="快按我吧" 
onClick="this.value='南京有线电视台'" name="Button"> 
  </td></tr></table></center>
<br>
<br>
<center>
<textarea name=source rows=12 cols=45 class=yk9>
脚本说明:
第一步:把如下代码加入<head>区域中
<style type="text/css">
<!--
.over {color:yellow; background: navy}
.down {color:yellow; background: navy; font-style: italic}
-->
</style>


第二步:在<body>区中加入如下代码
<input 
type="Button"
onMouseOver="this.className='over';" 
onMouseOut="this.className='';" 
onMouseDown="this.className='down';" 
onMouseUp="this.className='over';" 
value="按钮也疯狂" 
onClick="this.value='我真的好喜欢你!'" name="Button"> 
</textarea>
<SCRIPT LANGUAGE="JavaScript">

<!-- hide

function goHist(a) 

{

   history.go(a);

}

//-->

</script>

<FORM METHOD="post">
<INPUT TYPE="button" VALUE="返回" onClick="goHist(-1)" style="background-color: #8000FF; color: rgb(255,255,255)">
</form>
</center>
<br>
<br>
</body>
</html>

⌨️ 快捷键说明

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