文章分类 | 推荐文章 | 最新文章 | 热点文章 | 最新软件 | 精品软件 | 下载排行 | 推荐下载 | WPS | 杀毒软件
清风网络
首 页 软件下载 网络学院
QQ 电脑入门 游戏 操作系统 图形处理 办公软件 媒体动画 精文荟萃 工具软件 网络编程 程序开发 网络技术 认证考试 网站建设 文章专栏
当前位置:清风网络网站建设网页特效当你指向某个链接时,网页中的小球会自动跑过去
精品推荐
特别推荐
·常用辅助代码
·禁止网页页面刷新的特效代码
·网页星空动态星空背景特效代码
·随滚动条滚动的图片广告代码(图片还可以拖动)
·上下连续无间断滚动图像[网页特效]
热点TOP10
·Flash和JS实现的图片幻灯片切换特效
·对联式的图片广告代码
·图片爆炸效果动画演示特效[网页特效]
·轻舞飞扬的动画效果 (酷)
·常见网页可上下移动的右侧广告特效代码
·网页中实用的中英文日历网页特效代码
·极品万年历网页特效
·连续环绕滚动的图片特效(水平和垂直方向)

当你指向某个链接时,网页中的小球会自动跑过去

日期:2007年7月7日 作者: 查看:[大字体 中字体 小字体]

this.slideIt = b_slideIt this.obj = obj+"Object" eval(this.obj+"=this") return this } var px = bw.ns4window.opera?"":"px"; function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x+px; this.css.top=this.y+px;} function b_showIt(){this.css.visibility="visible"} function b_slideIt(endx,endy,inc,speed,fn,wh) { if (!this.slideactive) { var distx = endx - this.x var disty = endy - this.y var num = Math.sqrt(Math.pow(distx,2) + Math.pow(disty,2))/inc var dx = distx/num var dy = disty/num this.slideactive = 1 this.slide(dx,dy,endx,endy,speed,fn,wh) } } function b_slide(dx,dy,endx,endy,speed,fn,wh) { if (!fn) fn = null if (!wh) wh = null if (this.slideactive && (Math.floor(Math.abs(dx))<Math.floor(Math.abs(endx-this.x)) Math.floor(Math.abs(dy))<Math.floor(Math.abs(endy-this.y)))) { this.moveIt(this.x+dx,this.y+dy) eval(wh) slidTim = setTimeout(this.obj+".slide("+dx+","+dy+","+endx+","+endy+","+speed+",'"+fn+"','"+wh+"')",speed) } else{ this.slideactive = 0 this.moveIt(endx,endy) eval(fn) } } function slideballInit(){ oBut = new Array() for (var i=0; i<=numItems; i++){ oBut[i] = new makeObj('divButton'+i) } oCircle = new makeObj('divCircle') oBut[0].moveIt(250,100) oBut[1].moveIt(310,100) oBut[2].moveIt(370,100) oBut[3].moveIt(420,100) oBut[4].moveIt(480,100) oCircle.moveIt(circleXstart,circleYstart) //Showing the buttons for(var i=0; i<=numItems; i++){ oBut[i].showIt() } } var slidTim = 100; var active = -1 function sbmover(num){ clearTimeout(slidTim) oCircle.slideactive = false oCircle.slideIt(oBut[num].x+circleXoffset,oBut[num].y+circleYoffset,circlePXspeed,circleTspeed) } function sbmout(num){ clearTimeout(slidTim) oCircle.slideactive = false
上一页 [1] [2] [3] 下一页 



上一篇:又一个进度条(可以和下面的比比哪个好用?)

下一篇:下拉cool菜单
相关文章:
·申请的国际域名如何指向个人主页的免费空间
·使用 Abbot 框架自动化测试 Eclipse 插件的用户界面 1
·为什么iexplore.exe在打开网页时CPU使用会100%?
·空间留言代码_怀念过去
·模拟键盘按键 自动输入文字
·网页播放的视频代码
·移走Excel中的超链接的技巧
相关软件:
·古典网页模板
·photoshop cs 超梦幻网页创意宝典
·东方网页王III 正式版
·系列语言网页设计
·网页点击专家 V2.50
·超级自动注册申请王 V3.0
·飞达网上商城购物网站系统源代码网页模板正式版

特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
[打印本页] [关闭窗口] 转载请注明来源:http://www.viphot.com
| 帮助(?) | 版权声明 | 友情连接 | 关于我们 | 信息发布
Copyright 2007 www.viphot.com All Rights Reserved. 鄂ICP备05000083号Powered by:viphot