📄 wordmodify.htm
字号:
<html>
<head>
<title>洪恩在线 - Javascript实例</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../homepage.css">
<script language=javaScript>
if(document.layers)
{
alert("此效果在Netscape浏览器中不能实现!");
}
<!--
var thissize=20
var textfont="隶书"
var textcolor= new Array()
textcolor[0]="000000"
textcolor[1]="000000"
textcolor[2]="000000"
textcolor[3]="111111"
textcolor[4]="222222"
textcolor[5]="333333"
textcolor[6]="444444"
textcolor[7]="555555"
textcolor[8]="666666"
textcolor[9]="777777"
textcolor[10]="888888"
textcolor[11]="999999"
textcolor[12]="aaaaaa"
textcolor[13]="bbbbbb"
textcolor[14]="cccccc"
textcolor[15]="dddddd"
textcolor[16]="eeeeee"
textcolor[17]="ffffff"
textcolor[18]="ffffff"
var message = new Array()
message[0]="洪恩在线 求知无限"
message[1]="十二亿人的网上大学"
i_message=0
var i_strength=0
var i_message=0
var timer
function glowtext() {
if(document.all) {
if (i_strength <=17) {
glowdiv.innerText=message[i_message]
document.all.glowdiv.style.filter="glow(color="+textcolor[i_strength]+", strength=4)"
i_strength++
timer=setTimeout("glowtext()",100)
}
else {
clearTimeout(timer)
setTimeout("deglowtext()",1500)
}
}
}
function deglowtext() {
if(document.all) {
if (i_strength >=0) {
glowdiv.innerText=message[i_message]
document.all.glowdiv.style.filter="glow(color="+textcolor[i_strength]+", strength=4)"
i_strength--
timer=setTimeout("deglowtext()",100)
}
else {
clearTimeout(timer)
i_message++
if (i_message>=message.length) {i_message=0}
i_strength=0
intermezzo()
}
}
}
function intermezzo() {
glowdiv.innerText=""
setTimeout("glowtext()",1500)
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" onLoad="glowtext()"><script language="Javascript" src="/pub/js/head.js"></script>
<table width="760" height="20" border=0 cellspacing="0" cellpadding="0" align="center" >
<tr bgcolor="CFDFFF">
<td height=20 class="p1" 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> -> JavaScript实例</font></td>
</tr>
</table>
<table width="760" border=0 cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="207" valign="top"><img src="img/bule.gif" width="207" height="13"></td>
<td bgcolor="A8A8AB" width="1"><img src="img/blank.gif" width="1" height="1"></td>
<td align="right" height="22" width=530><img src="img/js.gif" width="186" height="20"></td>
<td width="22"><img src="img/blank.gif" width="1" height="1"></td>
</tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="124"><img src="img/blank.gif" width="1" height="1"></td>
<td background="img/line.gif" height="27" width=636><img src="img/blank.gif" width="1" height="1"></td>
</tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class=p3 align="center" width=711><b> 文 字 变 化 效 果</b></td>
<td class="p2" width="1" bgcolor="A8A8AB"><img src="img/blank.gif" width="1" height="1"></td>
<td class="p2" width="48"> </td>
</tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center" valign="top"> </td>
<td> </td>
<td bgcolor="5F74BF" width="28" align="center"><img src="img/bule1.gif" width="28" height="49"></td>
<td width="37" align="center"> </td>
</tr>
<tr>
<td align="center" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td>
<table width="110" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="5F74BF" align="center">
<td class="p1" align="right"><b><font color="#FFFFFF">效 果 演 示</font></b><font color="#FFFFFF">:</font></td>
<td class="p1" width="11"><img src="img/bule2.gif" width="11" height="18"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td class=p2 align="left" > <font color="#FF3333"><span class="p1"><font color="#6633FF">
建议使用1024*768的分辨率。</font></span></font><b><font color="#FF3333"> <br>
</font></b>
<table width="90%" border="0" cellspacing="0" cellpadding="0" height="98">
<tr bgcolor="#0000CC">
<td height="92">
<div id="glowdiv" style="position:absolute;visibility:visible;
width:389px;text-align:center; top:335px;left:370px;font-family:隶书;font-size:30pt;color:biue; height: 40px"></div>
</td>
</tr>
</table>
</td>
<td bgcolor="5F74BF" width="28" align="center"> </td>
<td width="37" align="center"> </td>
</tr>
<tr>
<td align="center" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="15"> </td>
</tr>
<tr align="center">
<td>
<table width="110" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="5F74BF" align="center">
<td class="p1" align="right"><b><font color="#FFFFFF">源代码如下</font></b><font color="#FFFFFF">:</font></td>
<td class="p1" width="11"><img src="img/bule2.gif" width="11" height="18"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="457" class="p2" valign="top"><b><br>
<br>
</b><span class="p1"><font color="#6633FF"> </font></span><b><br>
</b>
<form>
<p><span class="p1"><font color="#6633FF">这段程序放在<head>与</head>之间</font></span>
<textarea name="textarea3" onFocus="this.select()" onMouseOver="this.focus()" cols="50" rows="10" wrap="VIRTUAL" style="BACKGROUND-COLOR: #D5E9FD;" ><script Language="JavaScript">
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " P.M." : " A.M."
window.status = timeValue;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -