?? 01c.htm
字號:
<html>
<head>
<title>隨機文本</title>
<meta http-equiv="目錄類型" content="文本/html; 字符集=gb2312">
<style type="text/css">
<!--
a{font-style:normal;text-decoration:none;color:white}
a:hover {BACKGROUND:red;font-style:normal;text-decoration:none;color:yellow}
a:active {font-style:normal;text-decoration:none;color:yellow;}
.white { color: #FFFFFF}
table { font-size: 9pt}
-->
</style>
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#009900" topmargin="0" leftmargin="0">
<a name="top"></a>
<form name="form">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#009900">
<td colspan="3" height="18"> </td>
</tr>
<tr>
<td bgcolor="#009900" width="18"></td>
<td align="center" bgcolor="#FFFFFF" valign="top"> <br>
<table width="56%" border="0" cellspacing="0" cellpadding="0" height="355">
<tr>
<td rowspan="2" width="16" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="white" style="FONT-SIZE: 11pt;">
<tr bgcolor="#336699" bordercolor="#336699">
<td style="BORDER-RIGHT: double; BORDER-TOP: double; BORDER-LEFT: double; BORDER-BOTTOM: double;" height="70"><strong><a href="01.htm">演<br>
<br>
示</a></strong></td>
</tr>
<tr bordercolor="#009900" bgcolor="#009900">
<td style="BORDER-RIGHT: double; BORDER-TOP: double; BORDER-LEFT: double; BORDER-BOTTOM: double" height="70"><strong><a href="01c.htm">源<br>
代<br>
碼</a></strong></td>
</tr>
</table>
</td>
<td rowspan="2" width="8" bgcolor="#009900"> </td>
<td align="center" style="BORDER-RIGHT: double; BORDER-TOP: double; FONT-SIZE: 12pt; BORDER-LEFT: double; BORDER-BOTTOM: double" bordercolor="#009900">
<script language="JavaScript">
<!--hide
function view(form){
msg=open("","DisplayWindow","status=1,scrollbars=1,left=0,top=50,height=420,width=790,");msg.document.write(form.code2.value);
}
function CodeOut(form){
var
txt1="<html><title>效果演示</title><head></head><body onblur=window.close() onmouseover=javascript:close()><font color=red>提醒:按F5刷新本頁看下面效果。</font><br><br>";
txt=""+form.x.value+""+form.a.value+"'\r\n";
txt+="quotes[2] = '"+form.b.value+"'\r\n";
txt+="quotes[3] = '"+form.c.value+"'\r\n";
txt+="quotes[4] = '"+form.d.value+"'\r\n";
txt+="quotes[5] = '"+form.e.value+"'\r\n";
txt+="quotes[6] = '"+form.f.value+"'\r\n";
txt+="quotes[7] = '"+form.g.value+"'\r\n";
txt+="quotes[8] = '"+form.h.value+"'\r\n";
txt+="quotes[9] = '"+form.i.value+"'\r\n";
txt+="quotes[0] = '"+form.j.value+""+form.y.value+"";
txt2="</body></html>";
form.Code.value=txt;
form.code2.value=txt1 + txt + txt2;
}
<!-->
</script>
<input type="hidden" name="code2">
<div id="Layer1" style="position:absolute; width:215px; height:125px; z-index:1; left: 447px; visibility: hidden">
<textarea name="x" wrap="VIRTUAL"><script language="JavaScript">
<!-- Hide
var a = Math.random() + ""
var rand1 = a.charAt(5)
quotes = new Array
quotes[1] = '</textarea>
<textarea name="y" wrap="VIRTUAL">'
var quote = quotes[rand1]
//-->
</script>
<script language="JavaScript">
<!-- Hide
document.write(quote)
// -->
</script></textarea>
</div>
<br>
<b>隨機文本</b>
<hr width="92%" size="1" align="center">
<table cellspacing="0" cellpadding="0" width="82%">
<tr>
<td colspan="2" height="25">文本內容1:
<input type=text name="a" onFocus="this.select()" onMouseOver="this.focus()" class="pt9" size="38">
</td>
</tr>
<tr>
<td colspan="2" height="25">文本內容2:
<input type=text name="b" onFocus="this.select()" onMouseOver="this.focus()" class="pt9" size="38">
</td>
</tr>
<tr>
<td colspan="2" height="25">文本內容3:
<input type=text name="c" onFocus="this.select()" onMouseOver="this.focus()" class="pt9" size="38">
</td>
</tr>
<tr>
<td colspan="2" height="25">文本內容4:
<input type=text name="d" onFocus="this.select()" onMouseOver="this.focus()" class="pt9" size="38">
</td>
</tr>
<tr>
<td colspan="2" height="25">文本內容5:
<input type=text name="e" onFocus="this.select()" onMouseOver="this.focus()" class="pt9" size="38">
</td>
</tr>
<tr>
<td colspan="2" height="25">文本內容6:
<input type=text name="f" onFocus="this.select()" onMouseOver="this.focus()" class="pt9" size="38">
</td>
</tr>
<tr>
<td colspan="2" height="25">文本內容7:
<input type=text name="g" onFocus="this.select()" onMouseOver="this.focus()" class="pt9" size="38">
</td>
</tr>
<tr>
<td colspan="2" height="25">文本內容8:
<input type=text name="h" onFocus="this.select()" onMouseOver="this.focus()" class="pt9" size="38">
</td>
</tr>
<tr>
<td colspan="2" height="25">文本內容9:
<input type=text name="i" onFocus="this.select()" onMouseOver="this.focus()" class="pt9" size="38">
</td>
</tr>
<tr>
<td colspan="2" height="25">文本內容10:
<input type=text name="j" onFocus="this.select()" onMouseOver="this.focus()" class="pt9" size="37">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="產生代碼" onClick="CodeOut(this.form);" name="button">
<input type="button" value="效果演示" onClick="view(this.form);" name="button2">
</td>
</tr>
<tr>
<td colspan="2" height="20">注釋:放在<body>與</body>之間</td>
</tr>
<tr>
<td colspan="2">
<p>
<textarea name="Code" onFocus="this.select()" onMouseOver="this.focus()" cols="50" style="BACKGROUND-COLOR: #009900;" wrap="VIRTUAL" rows="8" class="pt9"></textarea>
</td>
</tr>
</table>
<br>
</td>
</tr>
<tr>
<td height="20" class="white" bgcolor="#009900">當前位置:<a href="../../index.htm">首
頁</a>→<a href="../index.htm">JavaScript</a>→<a href="index.htm#1">文本特效</a>→隨機文本</td>
</tr>
</table>
<br>
</td>
<td bgcolor="#009900" width="18"></td>
</tr>
<tr bgcolor="#009900">
<td></td>
<td align="center" height="35"> <font color="#FFFFFF">··萬旭網站工作室 設計發布··</font>
</td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -