📄 03c.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">
<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="03.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="03c.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" valign="top">
<b> </b><br>
<b>前进后退按钮</b>
<hr width="92%" size="1" align="center">
<table cellspacing="0" cellpadding="0" width="81%">
<tr>
<td height="25" colspan="2">注释:放在<body>与</body>之间</td>
</tr>
<tr>
<td colspan="2">
<textarea name="Code" onFocus="this.select()" onMouseOver="this.focus()" cols="50" wrap="VIRTUAL" style="BACKGROUND-COLOR: #009900;" class="pt9" rows="12"><script language="VBScript">
<!--
Sub GoForward()
form1.btn2.value="正在前进"
history.go(1)
end sub
Sub GoBack()
form1.btn1.value="正在后退"
history.go(-1)
end sub
-->
</script>
<form name=form1>
<input type="button" name="btn1" value="&lt;&lt;后退" onClick="GoBack">
<input type="button" name="btn2" value="前进&gt;&gt;" onClick="GoForward">
</form>
</textarea>
</td>
</tr>
<tr>
<td colspan="2" height="25"><br>
(提示:在此想说一下,VB的兼容性不是很好,网页上如果有第二个JavaScript,我想这里的前进后退按钮就不管用了。)</td>
</tr>
</table>
</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#3">按钮特效</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 + -