首 页
┆
免费资源
┆
免费教程
┆
游戏外挂
┆
非主流资源
┆
非主流教程
┆
留言区
┆
网络测速
┆
Alexa查询
┆
QQ空间播放器
┆
交流论坛
登录
|
注册
设为首页
加入收藏
联系我们
首 页
免费空间
QQ资源
综合免费
网页特效
非主流资源
游戏外挂
免费教程
免费ASP空间
|
免费PHP空间
|
免费FTP空间
|
全能空间
|
国外空间
|
静态空间
|
自助空间
|
免费论坛
|
免费博客
|
免费相册
QQ空间模板
|
QQFlash模块
|
QQ个性签名
|
QQ空间日志
|
QQ空间留言代码
|
QQ空间免费物品
|
QQ头像|QQ皮肤|QQ 表情
|
QQ安全
免费中心
|
免费统计
|
免费账号
|
免费信息
|
电话短信
|
建站素材
|
免费网络硬盘
|
免费域名
|
免费邮箱
|
免费代理
|
免费杀毒
页面特效
|
背景特效
|
导航菜单
|
状态栏类
|
文本特效
|
链接特效
|
图形特效
|
窗口特效
|
按钮特效
非主流图片
|
非主流美女
|
非主流帅哥
|
非主流头像
|
非主流签名
|
非主流服饰
|
非主流发型
其他外挂
|
传奇外挂
|
风火之旅外挂
|
奇迹外挂
|
梦幻外挂
|
诛仙外挂
|
征途外挂
|
劲舞团外挂
|
卡丁车外挂
|
彩虹岛外挂
数码照片处理
|
Illustrator
|
网络教程
|
平面设计教程
|
电脑教程
|
计算机考试
|
影音编辑
|
办公软件
|
photoshop
|
ImageReady
当前位置:
星空免费资源网
→
免费资源
→
网页特效
→
图形特效
→ 文章内容
图像圆形虚幻显示特效
减小字体
增大字体
作者:KaSim 来源:星空资源网 发布时间:2008-1-10 14:17:11
收藏到QQ书签
以下是程序
代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>网页特效观止|www.jscode.cn| --- 图像圆形虚幻显示特效</title> </head> <body onload=setValues()> <center> <SCRIPT language=JavaScript> <!-- Beginning of JavaScript - var x,y var marginbottom var marginleft=0 var margintop=0 var marginright var cliptop var clipbottom var clipleft var clipright var clippoints var ballheight=150 var ballwidth=150 var imageheight=525 var imagewidth=457 // less is faster var tempo=25 // horizontal move (pixels) within time unit var stepx=12 // vertical move (pixels) within time unit var stepy=6 var timer // check the width and the height of the document // gets the starting position of the ball by random function setValues() { if (document.all) { marginbottom = imageheight-ballheight marginright = imagewidth-ballwidth document.all.ball.style.posLeft=randommaker(400) document.all.ball.style.posTop=0 document.all.textcontent.style.posLeft=0 document.all.textcontent.style.posTop=0 document.all.ball.style.filter="alpha(opacity=0,finishopacity=100,style=2,startX=0px,startY=0px,finishX=100px,finishY=100px)" moveball() } } // randomfunction function randommaker(range) { rand=Math.floor(range*Math.random()) return rand } function moveball() { checkposition() if (document.all) { document.all.ball.style.posLeft+=stepx document.all.ball.style.posTop+=stepy cliptop=document.all.ball.style.posTop clipbottom=cliptop+ballheight clipleft=document.all.ball.style.posLeft clipright=clipleft+ballwidth clippoints="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" document.all.textcontent.style.clip=clippoints timer=setTimeout("moveball()",tempo) } } function checkposition() { if (document.all) { if (document.all.ball.style.posLeft>=marginright) { stepx=stepx*-1 document.all.ball.style.posLeft-=10 } if (document.all.ball.style.posLeft<=marginleft) { stepx=stepx*-1 document.all.ball.style.posLeft+=10 } if (document.all.ball.style.posTop>=marginbottom) { stepy=stepy*-1 document.all.ball.style.posTop-=10 } if (document.all.ball.style.posTop<=margintop) { stepy=stepy*-1 document.all.ball.style.posTop+=10 } } } // - End of JavaScript - --> </SCRIPT> <span id=textcontent style="LEFT: -5000px; POSITION: absolute; TOP: -5000px"><IMG border=0 src="
http://www.jscode.cn/JsCode/images/c0407.jpg"
;> </span> <span id=ball style="BACKGROUND-COLOR: white; HEIGHT: 150px; POSITION: absolute; TOP: -50px; WIDTH: 150px"></span> </center> </body> </html>
代码"/>
代码"/>
[Ctrl+A 全部选择 提示:你可先修改部分
代码
,再按运行]
本资源由
星空资源网
提供!转载请著名,谢谢!
[] [
返回上一页
] [
打 印
]
收藏到网摘
·上一篇文章:
站内搜索脚本(三)
·下一篇文章:
全屏游动的图片,可以飘到浏览器外边哦
文章评论
评论内容只代表网友观点,与本站立场无关!
用户名:
!
查看更多评论
分 值:
100分
85分
70分
55分
40分
25分
10分
0分
内 容:
!
(注“
!
”为必填内容。) 验证码:
频道栏目导航
页面特效
背景特效
导航菜单
状态栏类
文本特效
链接特效
图形特效
窗口特效
按钮特效
时间日期
CSS相关
综合特效
本站精彩推荐
本类热门阅览
·
鼠标放到图片上慢慢变大,移开后图...
·
把一张图片变形扭曲成各种不同的长...
·
用鼠标移动显示的图片类似google地...
·
全屏游动的图片,可以飘到浏览器外...
·
跟随鼠标弹性效果的运动图片
·
类似于Flash制作的一个图片展示效果...
·
图像圆形虚幻显示特效
·
全屏游动的图片,可以飘到浏览器外...
·
星空资源网幻灯片演示效果(还未修改...
·
翻滚的图片的广告代码,可以增加动...
·
给地图加个放大镜
相关文章
·
图像圆形虚幻显示特效