爱易网
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 浏览次数:20135 次
以下是程序代码
<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
上一篇:狡猾的按钮特效
下一篇:鼠标经过小图显示大图效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
中移动落马高管盘点:广东移动成反腐重地
中国首台比特币ATM登陆上海 可购买不可兑换现钞
高通拼抢国际芯片市场 联发科海外拓展难安心
高通反垄断案下月有望落定
英特尔技术高管离任 电视业务或受影响
公信力消失:马航事件社交媒体传播之痛
逆转猜想:如果阿里成为雅虎大股东会怎样?
工商下月将整治手机市场
传搜狗估值12亿美元 与360谈判进入白热化
推荐阅读
更多>
英特尔承认,联想最新K系列智能手机放弃英特尔处理器
IT企业人才争夺战打响:员工待遇水涨船高
FDD牌照短期不会发放 联通电信暗自提速建网
广电地方营业厅的一句“罚停”,暴露出了他们的本质
Twitter收购印度手机营销公司ZipDial
传诺基亚Lumia928下月推出 将与iPhone5看齐
微信收费形式三选一 腾讯或变身运营商
蘑菇街CEO陈琪:2015将回归社会化电商
CSS控制字符长度和显示长度
iPhone 6将于10月17日内地上市:售5288元起
中国大陆人口13.7亿 光棍越来越多
谷歌欲收买WhatsApp添加砝码 对方否认
微博启动自媒体计划 粉丝+收入双激励是亮点
HDS发布《2013中国CIO洞察白皮书》
窗口期:还有哪些互联网公司可能今年IPO?
从WPS到office365,中国企业能否赶超美国?
淘宝公布新规:升级售假卖家惩罚力度
联想架构调整后:Think品牌或推智能手机
为啥苹果定要出廉价iPhone?都是安卓逼的
挂号网高管团体离任 或因投资人失掉决计