网页刷新的js 对联广告代码
来源:互联网 发布:gs域名好不好 编辑:程序博客网 时间:2024/04/28 14:28
history.go(0);
location.reload();
location=location;
location.assign(location);
document.execCommand('Refresh');
window.navigate(location);
location.replace(location);
document.URL=location.href;
var lastScrollY=0;
startShow();
function showLeftImageDiv(div,pos,posPX,topPx)
{
document.write("<div id="" + div + "" style="" + pos + ":" + posPX + "px;POSITION:absolute;TOP:" + topPx + "px;">");
document.write("<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"");
document.write("codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="300">");
document.write("<param name="movie" value="http://wd.gyyx.cn/flash/200801251.swf">");
document.write("<param name="quality" value="high">");
document.write("<embed src="http://wd.gyyx.cn/flash/200801251.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"");
document.write("type="application/x-shockwave-flash" width="100" height="350"></embed>");
document.write("</object>");
document.write("</div>");
}
function showRightImageDiv(div,pos,posPX,topPx)
{
document.write("<div id="" + div + "" style="" + pos + ":" + posPX + "px;POSITION:absolute;TOP:" + topPx + "px;">");
document.write("<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"");
document.write("codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="300">");
document.write("<param name="movie" value="http://wd.gyyx.cn/flash/200801252.swf">");
document.write("<param name="quality" value="high">");
document.write("<embed src="http://wd.gyyx.cn/flash/200801252.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"");
document.write("type="application/x-shockwave-flash" width="100" height="350"></embed>");
document.write("</object>");
document.write("</div>");
}
function startShow()
{
showLeftImageDiv("smilediv1","left",10,10);
showRightImageDiv("smilediv2","right",10,10);
window.setInterval(scrollImage,1);
}
function scrollImage()
{
var diffY,percent;
diffY=document.body.scrollTop;
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.smilediv1.style.pixelTop+=percent;
document.all.smilediv2.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
startShow();
function showLeftImageDiv(div,pos,posPX,topPx)
{
document.write("<div id="" + div + "" style="" + pos + ":" + posPX + "px;POSITION:absolute;TOP:" + topPx + "px;">");
document.write("<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"");
document.write("codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="300">");
document.write("<param name="movie" value="http://wd.gyyx.cn/flash/200801251.swf">");
document.write("<param name="quality" value="high">");
document.write("<embed src="http://wd.gyyx.cn/flash/200801251.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"");
document.write("type="application/x-shockwave-flash" width="100" height="350"></embed>");
document.write("</object>");
document.write("</div>");
}
function showRightImageDiv(div,pos,posPX,topPx)
{
document.write("<div id="" + div + "" style="" + pos + ":" + posPX + "px;POSITION:absolute;TOP:" + topPx + "px;">");
document.write("<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"");
document.write("codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="300">");
document.write("<param name="movie" value="http://wd.gyyx.cn/flash/200801252.swf">");
document.write("<param name="quality" value="high">");
document.write("<embed src="http://wd.gyyx.cn/flash/200801252.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"");
document.write("type="application/x-shockwave-flash" width="100" height="350"></embed>");
document.write("</object>");
document.write("</div>");
}
function startShow()
{
showLeftImageDiv("smilediv1","left",10,10);
showRightImageDiv("smilediv2","right",10,10);
window.setInterval(scrollImage,1);
}
function scrollImage()
{
var diffY,percent;
diffY=document.body.scrollTop;
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.smilediv1.style.pixelTop+=percent;
document.all.smilediv2.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
要<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">才可以,
用这个<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
不可以实现,等到以后有时间了修改成可以兼容的
- 网页刷新的js 对联广告代码
- 在网页两旁插入对联图片广告的js代码
- 网页两边的对联广告代码
- Js对联广告代码
- 网页JS弹出广告代码,头部,右下角,网页中漂浮,对联广告代码等大全
- 【JS】经典的对联广告代码,JS代码实现
- 网页对联广告代码效果大全
- 对联广告JS代码效果大全
- js左右弹性滚动对联广告代码
- 网页对联广告
- 网页对联广告
- 网页对联广告
- 【js特效】一款不错的对联广告
- 一款实用的对联广告代码
- 可关闭的对联广告代码
- 对联广告的jsp代码实现
- js 对联广告
- js 对联广告
- 上图"自然语言处理"相关书目
- 在桌面中嵌入窗体
- 30岁中国男人对婚姻的思考
- 上图"机器翻译"相关书目
- js构造函数与JAVA构造函数
- 网页刷新的js 对联广告代码
- 推荐手机生活搜索软件
- 个人财务系统——Petshop实战
- 字符数组与字符指针
- Windows Socket五种I/O模型
- VC ADO
- 回到了CSDN
- 大学四年应是这样度过
- VC DLL