爱易网
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 浏览次数:20208 次
以下是程序代码
<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
上一篇:狡猾的按钮特效
下一篇:鼠标经过小图显示大图效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
看蜗牛如何放水养鱼,盘活生态系统
三星石墨烯制备技术获突破
中电信国际漫游费下调85% 世界杯上网28元/天
用户喊话当当网:我彻底把你们丢弃了
一大波智能路由器正在袭来:小米、360、极路由大PK
苹果30亿美元收购Beats
马斯克的特斯拉能否保持好势头
湖南卫视扶持芒果TV杀入媒体:版权独播不分销
微软确认 Surface 计划更多尺寸和LTE 版本
推荐阅读
更多>
NEC拟出售移动效劳子公司NEC Mobile
用户喊话当当网:我彻底把你们丢弃了
首批四款“官方”打车软件发布:均为安卓版本
富士康欲用机器人产iPhone 6
巨人网络回应央视 否认应用黑客停止诈骗
NoomWeight减肥
SAP高层调整:联席CEO孟鼎铭成唯一掌舵人
国美电商开打价钱战 牟贵先言行矛盾受质疑
苹果已经允许开发者提交64位应用程序
Facebook以“人”为本的名义占领安卓
微软小冰复活再战移动端:改与米聊、易信和触宝合作
支付宝27日晚间曝严重破绽:买卖记载可被搜索
搜房网遭遇做空 利益保送成“猎杀”焦点
北京今日实现用支付宝钱包为公交卡充值
牟贵先挂帅 国美在线“价钱战”昔日开打
窗口期:还有哪些互联网公司可能今年IPO?
打车软件竞争白热化:有冷兵器时代意味
挂号网高管团体离任 或因投资人失掉决计
携程艺龙联手死磕同程 价钱烽烟蔓延至机票
支付宝全面封杀比特币:充值码淘宝店或遭封禁