爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
图片特殊组合显示效果
图片特殊组合显示效果
日期:2014-05-18 浏览次数:20197 次
以下是程序代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="keywords" content="站长,网页特效,js特效,广告代码,zzjs,zzjs.net,sky,www.zzjs.net,站长特效 网" /> <meta name="description" content="www.zzjs.net,站长特效网,站长必备js特效及广告代码。大量高质量js特效,提供高质量广告代码下载,尽在站长特效网" /> <title>特殊的图片显示效果,sky整理收集,站长特效网欢迎您。</title> <STYLE> .spanstyle { LEFT: -5000px; POSITION: absolute } </STYLE> </head> <body onload=changeimage()> <a href="<#ZC_BLOG_HOST#>">站长特效网</a>,站长必备的高质量网页特效和广告代码。zzjs.net,站长js特效。<hr> <!--欢迎来到站长特效网,我们网站收集大量高质量js特效,提供许多广告代码下载,网址:www.zzjs.net,zzjs@msn.com,用.net打造靓站--> <SCRIPT> <!-- Beginning of JavaScript - // 修改图像的高度、宽度和地址 var imgwidth=400 var imgheight=300 var imgurl=new Array() imgurl[0]="image/1.jpg" imgurl[1]="image/2.jpg" imgurl[2]="image/3.jpg" // Do not edit this block. var imgpreload=new Array() for (i=0;i<=imgurl.length-1;i++) { imgpreload[i]=new Image() imgpreload[i].src=imgurl[i] }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 // Final horizontal position of the image: distance to the left margin of the window var x_finalpos=300 // Final vertical position of the image: distance to the top margin of the window var y_finalpos=110 // Number of sliced cells (the higher this value the slower the script) var x_slices=8 // Number of sliced rows (the higher this value the slower the script) var y_slices=3 // Speed of the reassembling effect. More means slower. var pause=10 // The width and heigth of the zone where the debris of the images are spread (pixels) var screenwidth=800 var screenheight=500 // Do not change the variables below var x_step=new Array() var y_step=new Array() var x_randompos=0 var y_randompos=0 var i_loop=0 var max_loop=20 var i_image=0 var width_slice=Math.floor(imgwidth/x_slices) var height_slice=Math.floor(imgheight/y_slices) var cliptop=0 var clipbottom=height_slice var clipleft=0 var clipright=width_slice var spancounter=0 function initiate() { cliptop=0 clipbottom=height_slice clipleft=0 clipright=width_slice i_loop=0 spancounter=0 if (document.all) { for (i=0;i<=y_slices-1;i++) { for (ii=0;ii<=x_slices-1;ii++) { var thisspan=eval("document.all.span"+spancounter+".style") x_randompos=Math.ceil(screenwidth*Math.random()) y_randompos=Math.ceil(screenheight*Math.random()) thisspan.posLeft=x_randompos thisspan.posTop=y_randompos thisspan.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" clipleft+=width_slice clipright+=width_slice spancounter++ } clipleft=0 clipright=width_slice cliptop+=height_slice clipbottom+=height_slice } } explode_IE() } function changeimage() { spancounter=0 for (i=0;i<=y_slices-1;i++) { for (ii=0;ii<=x_slices-1;ii++) { var thisspan=eval("document.all.span"+spancounter+".style") thisspan.posLeft=-5000 thisspan.posTop=-5000 spancounter++ } } spancounter=0 if (i_image>imgurl.length-1) {i_image=0} for (i=0;i<=y_slices-1;i++) { for (ii=0;ii<=x_slices-1;ii++) { var thisinnerspan=eval("span"+spancounter) thisinnerspan.innerHTML="<img src='"+imgurl[i_image]+"' onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>" spancounter++ } } i_image++ initiate() }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 function explode_IE() { spancounter=0 if (i_loop<=max_loop-1) { for (i=0;i<=y_slices-1;i++) { for (ii=0;ii<=x_slices-1;ii++) { var thisspan=eval("document.all.span"+spancounter+".style") x_step[spancoun
上一篇:狡猾的按钮特效
下一篇:鼠标经过小图显示大图效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
中国移动承诺再降4G资费 网络漫游至50个国家
苹果多色彩!葫芦里究竟卖的什么药
全球最具“颠覆性”特质的公司排行榜TOP25
看蜗牛如何放水养鱼,盘活生态系统
金山毒霸安全中心: XP退役后首个高危漏洞来了
搜狐前副总编何毅加盟乐视 任车联网公司CEO
宽带中国战略明确 运营商建设成本超6000亿
称产品遭诋毁 奇虎再诉百度
湖南卫视扶持芒果TV杀入媒体:版权独播不分销
推荐阅读
更多>
苏宁易购成世界最慢电商 专家称其涉嫌违约
中国雅虎邮箱今日关停 由盛及衰的背后
百度吴恩达:图像和音视频搜索是人工智能新方向
工信部或本月17日向联通电信颁发FDD牌照
腾讯微信昨晚再现大规模故障 多地受到影响
三问刘强东:京东为何近来火气这么大?
电信运营商员工涌入虚拟运营商,待遇差距多大?
传4G牌照国庆节前后发放 TD-LTE制式优先
QQ空间与微信龟兔赛跑,商业生态链陷入死循环
曝阿里巴巴一怀孕员工过劳死 加班情况引争议
银联布局二维码支付,“擦边球”生态不能自救
纸媒深探版权蓝海抗衡互联网的时机到来了
打车软件竞争白热化:有冷兵器时代意味
从雷军的“互联网七字诀”告诉你一个非妖魔化的小米
解读苹果收购Beats背后动机:库克在想什么?
三星石墨烯制备技术获突破
顺丰O2O便利店将正式启动:涉及金融服务
HTC的三大迷惘:高管釜底抽薪 产品营销战略混乱
微信收费形式三选一 腾讯或变身运营商
“世界杯+618”集体磨刀的本质是绑架全民