119、图片对鼠标敏感

119、图片对鼠标敏感

脚本说明:

把如下代码加入<body>区域中

<script language="JavaScript1.2">

function expand() {

if (smallslot.width<=102) {

x=window.setTimeout('expand()', 10)

smallslot.width=smallslot.width + 5

smallslot.height=smallslot.height + 5}

else {

setTimeout('reduce()', 0)

}}

function reduce() {

if (smallslot.width>80) {

x=window.setTimeout('reduce()', 10)

smallslot.width=smallslot.width - 5

smallslot.height=smallslot.height - 5

}}</script>

<div id="slot1" onmouseover="expand()" style="HEIGHT: 102px; WIDTH: 80px">

<a href="http://www.7stk.com" target="_top">

<dd><img border="0" hspace="0" id="smallslot" src="1334.gif"

style="LEFT: 296px; POSITION: absolute; TOP: 104px; VISIBILITY: visible; z: 2" WIDTH="86"  HEIGHT="80"></a></dd>

</div>

 

Write a comment

Comments: 0