首 页
┆
免费资源
┆
免费教程
┆
游戏外挂
┆
非主流资源
┆
非主流教程
┆
留言区
┆
网络测速
┆
Alexa查询
┆
QQ空间播放器
┆
交流论坛
登录
|
注册
设为首页
加入收藏
联系我们
首 页
免费空间
QQ资源
综合免费
网页特效
非主流资源
游戏外挂
免费教程
免费ASP空间
|
免费PHP空间
|
免费FTP空间
|
全能空间
|
国外空间
|
静态空间
|
自助空间
|
免费论坛
|
免费博客
|
免费相册
QQ空间模板
|
QQFlash模块
|
QQ个性签名
|
QQ空间日志
|
QQ空间留言代码
|
QQ空间免费物品
|
QQ头像|QQ皮肤|QQ 表情
|
QQ安全
免费中心
|
免费统计
|
免费账号
|
免费信息
|
电话短信
|
建站素材
|
免费网络硬盘
|
免费域名
|
免费邮箱
|
免费代理
|
免费杀毒
页面特效
|
背景特效
|
导航菜单
|
状态栏类
|
文本特效
|
链接特效
|
图形特效
|
窗口特效
|
按钮特效
非主流图片
|
非主流美女
|
非主流帅哥
|
非主流头像
|
非主流签名
|
非主流服饰
|
非主流发型
其他外挂
|
传奇外挂
|
风火之旅外挂
|
奇迹外挂
|
梦幻外挂
|
诛仙外挂
|
征途外挂
|
劲舞团外挂
|
卡丁车外挂
|
彩虹岛外挂
数码照片处理
|
Illustrator
|
网络教程
|
平面设计教程
|
电脑教程
|
计算机考试
|
影音编辑
|
办公软件
|
photoshop
|
ImageReady
当前位置:
星空免费资源网
→
免费资源
→
网页特效
→
图形特效
→ 文章内容
全屏游动的图片,可以飘到浏览器外边哦
减小字体
增大字体
作者:KaSim 来源:星空资源网 发布时间:2008-1-10 14:19:25
收藏到QQ书签
以下是程序
代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>网页特效观止|www.jscode.cn| --- 全屏游动的
图片
,可以飘到浏览器外边哦</title> </head> <body> <SCRIPT LANGUAGE="JavaScript1.2"> <!-- /* Bouncing Image script II (By Dheera Venkatraman dheera@usa.net) Submitted to and modified by Dynamic Drive for code enhancements For full source, usage terms, and 100's more DHTML scripts, visit
http://dynamicdrive.com
; */ //1) specify path to image//图片的路径 var imagepath="
http://www.jscode.cn/JsCode/images/flag.gif"
; //2) specify image dimensions//图片的大小 var imagewidth=85 var imageheight=55 //3) change this to adjust speed (lower is slower)//速度 var speed=8; //4) configure what should happen when user clicks on image //A value of "dismiss" will dismiss it, while a URL will cause the browser to navigate to it var imageclick="dismiss" //5) Finally, configure when the image should automatically disappear, in seconds (0=perpetual) var hideafter=0 ////No editing required beyond this point///////////////// var isie=0; if(window.navigator.appName=="Microsoft Internet Explorer"&&window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf("MSIE")+8)>=5.5) { isie=1; } else { isie=0; } if(isie){ var preloadit=new Image() preloadit.src=imagepath } function pop() { if(isie) { x=x+dx;y=y+dy; oPopup.show(x, y, imagewidth, imageheight); if(x+imagewidth+5>screen.width) dx=-dx; if(y+imageheight+5>screen.height) dy=-dy; if(x<0) dx=-dx; if(y<0) dy=-dy; startani=setTimeout("pop();",50); } } function dismisspopup(){ clearTimeout(startani) oPopup.hide() } function dowhat(){ if (imageclick=="dismiss") dismisspopup() else window.location=imageclick } if(isie) { var x=0,y=0,dx=speed,dy=speed; var oPopup = window.createPopup(); var oPopupBody = oPopup.document.body; oPopupBody.style.cursor="hand" oPopupBody.innerHTML = '<IMG SRC="'+preloadit.src+'">'; oPopup.document.body.onmouseover=new Function("clearTimeout(startani)") oPopup.document.body.onmouseout=pop oPopup.document.body.onclick=dowhat pop(); if (hideafter>0) setTimeout("dismisspopup()",hideafter*1000) } // --> </SCRIPT> </body> </html>
代码"/>
代码"/>
[Ctrl+A 全部选择 提示:你可先修改部分
代码
,再按运行]
本资源由
星空资源网
提供!转载请著名,谢谢!
[] [
返回上一页
] [
打 印
]
收藏到网摘
·上一篇文章:
图像圆形虚幻显示特效
·下一篇文章:
跟随鼠标弹性效果的运动图片
文章评论
评论内容只代表网友观点,与本站立场无关!
用户名:
!
查看更多评论
分 值:
100分
85分
70分
55分
40分
25分
10分
0分
内 容:
!
(注“
!
”为必填内容。) 验证码:
频道栏目导航
页面特效
背景特效
导航菜单
状态栏类
文本特效
链接特效
图形特效
窗口特效
按钮特效
时间日期
CSS相关
综合特效
本站精彩推荐
本类热门阅览
·
鼠标放到图片上慢慢变大,移开后图...
·
把一张图片变形扭曲成各种不同的长...
·
用鼠标移动显示的图片类似google地...
·
全屏游动的图片,可以飘到浏览器外...
·
跟随鼠标弹性效果的运动图片
·
类似于Flash制作的一个图片展示效果...
·
图像圆形虚幻显示特效
·
全屏游动的图片,可以飘到浏览器外...
·
星空资源网幻灯片演示效果(还未修改...
·
翻滚的图片的广告代码,可以增加动...
·
给地图加个放大镜
相关文章
·
全屏游动的图片,可以飘到浏览器外边哦
·
全屏游动的图片,可以飘到浏览器外边哦