欢迎你的访问
 
返回天空素材库首页 http://www.Skysucai.com  
收藏本站
将本站设为首页
您当前的位置:天空素材首页 -> 浮动广告特效(网站左右两边浮动广告JS代码)
 
栏 目 导 航
. 常用代码 . 综合特效
. 状态特效 . 游戏特效
. 页面背景 . 页面特效
. 页面导航 . 文本操作
. 文本特效 . 图形特效
. 鼠标特效 . 时间日期
. 密码特效 . 浏览相关
. 警告对话 . 技巧特效
. 计数转换 . 测试搜索
. 代码生成 . 播放音乐
. 按钮特效 . 系统相关
. 链接特效 . 黑客性质
. 相关特效 . 窗口特效
. 广告特效 . 表单表格
. 模拟例子
相 关 文 章
· 用来生成倒计时JS代...
· 一个显示停留时间的...
本 类 热 门
· 弹出广告特效(一个IP只...
· 弹出广告特效(一个IP只...
· 浮动广告特效(网站左右...
· 首页特效广告(一个IP只...
· 网页中漂浮广告特效代...
· 网页中实现对联效果
· 弹窗代码
更多  
 
 
更多  
最 新 推 荐
· 状态栏时间跳动特效
· 农历挂历特效
· 真正的万年历
· 网页特效 菜单-会动的...
· 网页特效 时间-任意位...
· 个人网页特效-有前后日...
· 时间每过一秒,Radio就...
· 时钟显示在任意指定位...
· 带开关的Form时钟
· 记录几天后的日期
· 显示登陆时间
· 退出时显示访问时间
更多  
     
浮动广告特效(网站左右两边浮动广告JS代码)
浮动广告特效(网站左右两边浮动广告JS代码)
作者:无  来源:本站整理  名称:浮动广告特效(网站左右两边浮动广告JS代码) 

减小字体 增大字体

       

[提示:你可先按照下面代码提示修改 上面部分代码,再按运行,此处看到的演示不完全正确]

此特效的详细完整代码如下:

<SCRIPT language="JavaScript" src="js/flr.js"></SCRIPT>
<SCRIPT language="JavaScript" src="js/fll.js"></SCRIPT>

---------------------------flr.js------------------------------------
var imgheight
document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? imgheight=100:imgheight=120
function myload()
{
if (navigator.appName == "Netscape")
{document.dangdang.pageY=pageYOffset+window.innerHeight-imgheight-0;
document.dangdang.pageX=+window.innerWidth-107;
mymove();
}
else
{
dangdang.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight-0;
dangdang.style.left=document.body.offsetWidth-107;
mymove();
}
}
function mymove()
{
if(document.ns)
{
document.dangdang.top=pageYOffset+window.innerHeight-imgheight-0;
document.dangdang.left=pageXOffset+window.innerWidth-107;
setTimeout("mymove();",50)
}
else
{
dangdang.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight-0;
dangdang.style.left=document.body.scrollLeft+document.body.offsetWidth-107;
setTimeout("mymove();",50)
}
}

function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)

 

 

if (navigator.appName == "Netscape")
{
document.write("<layer id=dangdang top=300 width=80 height=80><a target='_blank' 
href='http://images.sohu.com/cs/minisite/shouxin07/index.htm'><img border='0' 
src='http://www.3lian.com/zl/2005/guanggao/8080.GIF' width='80' height='80'></a></layer>");
myload()}
else
{
document.write("<div id=dangdang style='position: absolute;width:80;top:300;left:5;visibility:
visible;z-index: 1'><a target='_blank' href='http://images.sohu.com/cs/minisite/
shouxin07/index.htm'><img border='0' src='http://www.3lian.com/zl/2005/guanggao/8080.GIF' width='80' height='80'></a>
</div>");
myload()
}

-------------------------fll.js--------------------------------------
var imgheight
var imgleft
document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? imgheight=110:imgheight=110
window.screen.width>800 ? imgleft=5:imgleft=5
function myload()
{
if (navigator.appName == "Netscape")
{document.myleft.pageY=pageYOffset+window.innerHeight-imgheight;
document.myleft.pageX=imgleft;
leftmove();
}
else
{
myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myleft.style.left=imgleft;
leftmove();
}
}
function leftmove()
{
if(document.ns)
{
document.myleft.top=pageYOffset+window.innerHeight-imgheight
document.myleft.left=imgleft;
setTimeout("leftmove();",80)
}
else
{
myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myleft.style.left=imgleft;
setTimeout("leftmove();",80)
}
}

function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)

if (navigator.appName == "Netscape")
{
document.write("<layer id=myleft top=300 width=80 height=80><a target='_blank' 
href='http://www.polocars.com/'><img border='0' src='http://www.3lian.com/zl/2005/guanggao/polosx-hp-mv.gif' 
width='80' height='80'></a></layer>");
myload()}
else
{
document.write("<div id=myleft style='position: absolute;width:80;top:300;left:5;visibility: 
visible;z-index: 1'><a target='_blank' href='http://www.3lian.com/'><img border='0' 
src='http://www.3lian.com/zl/2005/guanggao/polosx-hp-mv.gif' width='80' height='80'></a></div>");
myload()
}


[返回上一页] [打印浮动广告特效(网站左右两边浮动广告JS代码)]
     
| 关于本站 | 服务条款 | 友情连接 | 网站地图 | 联系方式 | 广告联系 |