爱易网
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 浏览次数:20151 次
以下是程序代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta name="keywords" content="站长,网页特效,js特效,广告代码,zzjs,zzjs.net,sky,www.zzjs.net,站长特效 网" /> <meta name="description" content="www.zzjs.net,站长特效网,站长必备js特效及广告代码。大量高质量js特效,提供高质量广告代码下载,尽在站长特效网" /> <title>图片跳动效果,sky整理收集,zzjs.net欢迎您。</title> </head> <body> <a href="<#ZC_BLOG_HOST#>">站长特效网</a>,站长必备的高质量网页特效和广告代码。zzjs.net,站长js特效。<hr> <!--欢迎来到站长特效网,我们网站收集大量高质量js特效,提供许多广告代码下载,网址:www.zzjs.net,zzjs@msn.com,用.net打造靓站--><script language="JavaScript1.2"> <!-- ImgA=new Image(); ImgA.src="/image/zzjs.ico"; ImgB=new Image(); ImgB.src="/image/zzjs.ico"; ImgC=new Image(); ImgC.src="/image/zzjs.ico"; ImgD=new Image(); ImgD.src="/image/zzjs.ico"; //--> </script> <script language="JavaScript1.2"> <!-- amount=6; Xpos=300; Ypos=200; step=0.5; dismissafter=100; bats=new Array(ImgA.src,ImgB.src,ImgC.src,ImgD.src) if (document.layers){ for (i=0; i < amount; i++) {document.write("<LAYER NAME=n"+i+" LEFT=0 TOP=-50><img SRC='/image/zzjs.ico' NAME='nsi' onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></LAYER>")} } if (document.all) { document.write('<div id="out" style="position:absolute;top:0;left:0"><div id="in" style="position:relative">'); for (i=0; i < amount; i++) {document.write('<img src="/image/zzjs.ico" id="msieBats"'+i+' style="position:absolute;top:-50;left:0" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>')} document.write('</div></div>'); } yBase=0; xBase=0; currStep=0; a_count=0; b_count=1; c_count=2; d_count=3; move=1; if (document.layers){ yBase=window.innerHeight/3; xBase=window.innerWidth/6; window.captureEvents(Event.MOUSEMOVE); } if (document.all){ yBase = window.document.body.offsetHeight/3; xBase = window.document.body.offsetWidth/6; } function dismissbat(){ clearInterval(flybat) if (document.layers){ for (i2=0; i2 < amount; i2++){ document.layers['n'+i2].visibility="hide" } } else if (document.all) document.all.out.style.visibility="hidden" } function Animate(){ a_count+=move; b_count+=move; c_count+=move; d_count+=move; currStep+=step; if (a_count >= bats.length) a_count=0; if (b_count >= bats.length) b_count=0; if (c_count >= bats.length) c_count=0; if (d_count >= bats.length) d_count=0; if (document.layers){ document.layers['n'+0].document.images['nsi'].src=bats[a_count]; document.layers['n'+1].document.images['nsi'].src=bats[b_count]; document.layers['n'+2].document.images['nsi'].src=bats[b_count]; if (amount > 2) { for (i=3; i < amount; i++) {document.layers['n'+i].document.images['nsi'].src=bats[d_count]} } for (i=0; i < amount; i++) { var NewL="n"+i document.layers[NewL].top = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10) document.layers[NewL].left =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62) } } if (document.all){ document.all.msieBats[0].src=bats[a_count]; document.all.msieBats[1].src=bats[b_count]; document.all.msieBats[2].src=bats[c_count]; if (amount > 2) { for (i=3; i < amount; i++) {document.all.msieBats[i].src=bats[d_count]} } for (i=0; i < amount; i++) { document.all.msieBats[i].style.pixelTop = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10) document.all.msieBats[i].style.pixelLeft =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62) } } }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 flybat=setInterval('Animate()',30); setTimeout("dismissbat()",dism
上一篇:狡猾的按钮特效
下一篇:全屏漂浮图片效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
苹果已经允许开发者提交64位应用程序
苹果联合创始人炮轰鲍尔默“一直都在吃老本”
牟贵先挂帅 国美在线“价钱战”昔日开打
广东移动高层受调查 中移动或现更大反腐风暴
诺基亚培育低端机市场 迂回战术要挟中华酷联
微软觊觎移动互联市场:手机未出渠道先行
小米打响手机价格战 为米3铺路或另有所图
快递企业征收“份子钱” 成全了谁 苦了谁?
网络文学竞争白热化 百度多酷文学网上线
推荐阅读
更多>
高通反垄断案下月有望落定
喜大普奔:2016年国内乘客有望在飞机上使用手机
刘强东向总理建言:打击有组织有规模的售假商家
NoomWeight减肥
可靠消息称微型针孔偷拍设备拟全面禁止
开个房刷个卡全世界都知道个人隐私成公开秘密
解读苹果收购Beats背后动机:库克在想什么?
王建宙解构OTT效劳 中移动重塑飞信平台
英特尔涉嫌垄断 欧盟或开出史上最高罚单
微软谷歌高层访韩面前:忌惮三星的崛起
中国首台比特币ATM登陆上海 可购买不可兑换现钞
Google要求硬件厂商捆绑预装应用的协议曝光
孙正义入股阿里往事还原:阿里巴巴并非软银首选
魅族黄章惹怒芙蓉姐姐 将跨界推女神手机
华为、小米和联想在中国手机市场上演“三国杀”
中移动推动感地带3G网聊卡 火拼微信沃卡
中国大陆人口13.7亿 光棍越来越多
苏宁双线同价遇难题:第一个吃螃蟹不轻松
三大运营商合建铁塔公司真相:未涉及电信业重组
互联网金融一周年:余额宝最接地气,比特币最作死