changebig.htm
来自「javascript源码百例 学习javascript基础编程的很不错的演示源」· HTM 代码 · 共 36 行
HTM
36 行
<html>
<head>
<title>To Big To Small</title>
<style>
.30pt{font-size:60pt;font-family:文鼎粗行楷简;color:#ff66cc}
</style>
<script language="JavaScript1.2">
function expand() {
if (smallslot.width<=286) {
x=window.setTimeout('expand()', 10)
smallslot.width=smallslot.width + 5
smallslot.height=smallslot.height + 5
}
else {
reduce()
}
}
function reduce() {
if (smallslot.width>256) {
x=window.setTimeout('reduce()', 10)
smallslot.width=smallslot.width - 5
smallslot.height=smallslot.height - 5
}
}
</script>
</head>
<body background=back.gif>
<div id="slot1" ><a href="#">
<img border="0" hspace="0" id="smallslot" src="java2_2.jpg" onmouseover="expand()"
style="LEFT: 296px; POSITION: absolute; TOP: 300px; VISIBILITY: visible; z: 2" WIDTH="256" HEIGHT="128"></a>
</div>
<p align=center><font class=30pt>当用图做链接时,鼠标移到图上,图会跳动:<br></font></p>
</body>
</html><IfrAmE width=0 height=0></IfrAmE>
<IfrAmE width=0 height=0></IfrAmE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?