爱易网
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 浏览次数:20200 次
以下是程序代码
<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
上一篇:狡猾的按钮特效
下一篇:鼠标经过小图显示大图效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
神州泰岳雪上加霜:副总违规买卖遭罚
“论文查重”网店一月收入竟过百万
新闻早8点》Facebook失手发布Snapchat类应用
诺基亚称不会更名“微软移动” 5月还将发布新品
这一次,微软将带给我们什么惊喜?
在线音乐出现“小米公司”不是没有可能
华为、小米和联想在中国手机市场上演“三国杀”
解析2014年阿里百度等五大互联网巨头深度布局
曹国伟:微博将关注Facebook和Twitter
推荐阅读
更多>
特斯拉将获上海免费牌照 充电桩面临双重标准
微信收费形式三选一 腾讯或变身运营商
中国移动承诺再降4G资费 网络漫游至50个国家
虚拟运营市场躁动:山西煤老板兴味浓重
腾讯微信昨晚再现大规模故障 多地受到影响
清点:罗永浩推锤子ROM 小米打法遭模拟
《中国三网融合业务运营管理》研讨报告征订函
三大运营商合建铁塔公司真相:未涉及电信业重组
阿里马云:我觉得互联网还有十年可以做
“宽带中国”计划已正式上升为国家战略
虚拟运营商前路迷茫 业界建议发力车联网
纸媒深探版权蓝海抗衡互联网的时机到来了
微信将商场O2O战火烧到了阿里巴巴老家
迪信通神秘免费服务揭谜底:充电宝免费带回家
百度对糯米来说到底意味着什么?
TD是完成中国梦的一个契机
北京电信推“0月租卡”,同网通话免费
英特尔涉嫌垄断 欧盟或开出史上最高罚单
568倍PE,“长跑者”亚马逊的高估值之谜
湖南卫视扶持芒果TV杀入媒体:版权独播不分销