爱易网
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 浏览次数:20175 次
以下是程序代码
<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
上一篇:狡猾的按钮特效
下一篇:鼠标经过小图显示大图效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
马云自称在美国曾被绑票
诺基亚再缩阵线 封锁上海旗舰店全力蜕变
广东移动董事长徐龙受调查 圈内对其褒贬不一
国美苏宁线上首度正面PK 京东列席4月电商战
埃里克杰克森:阿里IPO估值至少1500亿美元
谁说黑莓没救?他们在悄悄地深耕企业级市场,在这个领域,苹果三星算什么,他们远远不是黑莓的对手
八位知名设计师评iOS7:新鲜但复杂
网易微博将正式关闭 用户迁至轻博客LOFTER
只有切到刚需痛点,漫画APP才能走下去
推荐阅读
更多>
想玩P2P?几个您必须知道的潜规则
评论:阿里为什么不试着收购一家香港媒体呢
苹果CEO抱歉解读:是战略而非“屈服”
NEC拟出售移动效劳子公司NEC Mobile
支付宝被曝严重破绽 隐私平安再受质疑
这一次,微软将带给我们什么惊喜?
微软张亚勤趋势判断:未来三十年属于物理化互联网
惠普董事长莱恩辞职 为巨额财务减记埋单
阿里收购UC 五年姻缘换来移动新格局
继续涨:微博IPO第二交易日 收盘大涨11.71%
充斥着假消息负能量的“秘密”缺乏普适性
谷歌安卓全球副总裁为何跳槽中国企业小米?
iPhone5S组件曝光 印证杀手级功能存在
孙正义入股阿里往事还原:阿里巴巴并非软银首选
华为变阵:任正非调整三大业务布局
HTC手机为何一败再败?效果出在供应链
墨迹也要做硬件,工具类应用如何“变异”的
广东移动高层受调查 中移动或现更大反腐风暴
《归来》遭视频网盗播 乐视网状告小米盒子侵权
百度对糯米来说到底意味着什么?