鼠标移动图片时的感应

王朝other·作者佚名  2006-11-24
宽屏版  字体: |||超大  

有什么问题请到<a href='/bbs/forums.php?fid=21'>论坛</a>中发表<br>

<!-- http://www.webjx.com/ -->

<!-- http://bbs.webjx.com/ -->

<!--完整的HTML的文件如下:-->

<html>

<head>

<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>

</head>

<body>

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

<dd><a target="_blank" href="http://www.webjx.com"><img border="0" hspace="0" id="smallslot" src="http://webjx.com/images/logo.gif"

style="LEFT: 296px; POSITION: absolute; TOP: 104px; VISIBILITY: visible; z: 2" WIDTH="80"

HEIGHT="80"></a></dd>

</div>

</body>

</html>

[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有