鼠标感应图片放大缩小显示效果

4个月前 (05-22 15:10)阅读回复0
大陆
大陆
  • 管理员
  • 发消息
  • 注册排名1
  • 经验值5294
  • 级别管理员
  • 主题1058
  • 回复2
楼主

当用户的鼠标经过图片时,这张图片先放大显示,然后再慢慢缩小,结合自己的需求来自己修改伸缩幅度。

<html>
<head>
<meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren">
<meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。">
<script language="JavaScript1.2">
function wuming_ren_open() {
if (smallslot.width<=700) {
x=window.setTimeout('wuming_ren_open()', 10)
smallslot.width=smallslot.width + 5
smallslot.height=smallslot.height + 5
}
else {
setTimeout('reduce()', 0)
}}//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
function reduce() {
if (smallslot.width>600) {
x=window.setTimeout('reduce()', 10)
smallslot.width=smallslot.width - 5
smallslot.height=smallslot.height - 5
}}</script>
</head>
<body>
<a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr>
<!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。-->
<script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script>
<script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script>
<div id="www__wuming__ren" onmouseover="wuming_ren_open()" style="HEIGHT: 300px; WIDTH: 700px">
<dd><a target="_blank" href="https://www.wuming.ren"><img border="0" hspace="0" id="smallslot" src="/img/20240222_www_wuming_ren_2.jpg" style="LEFT: 296px; POSITION: absolute; TOP: 104px; VISIBILITY: visible; z: 2" WIDTH="400" HEIGHT="300" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a></dd>
</div>
</body>
</html>


0
0
收藏0

本文来自武鸣人网站,转载请注明出处

本文地址:https://www.wuming.ren/a/1039.html

回帖

鼠标感应图片放大缩小显示效果 期待您的回复!

取消
载入表情清单……
载入颜色清单……
插入网络图片

取消确定

图片上传中
编辑器信息
提示信息