求网站首页两侧对联式广告图片代码?
RT,求对联式广告图片代码?且带关闭的按钮的,也能适用于SHOPEXV4.85系列的,求助高手解答下,谢谢!...
RT,求对联式广告图片代码?且带关闭的按钮的,也能适用于SHOPEX V4.85系列的,求助高手解答下,谢谢!
展开
1个回答
2013-08-11
展开全部
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Copyright" content="可关闭的对联广告/" />
<meta name="keywords" content="JS代码,对联广告,JS广告代码,JS特效代码" />
<meta name="description" content="此代码内容为可关闭的对联广告" />
<title>可关闭的对联广告</title>
</head>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script language=JavaScript type="text/javascript">
suspendcode="<DIV id=lovexin1 style='Z-INDEX: 10; LEFT: 6px; POSITION: absolute; TOP: 105px; width: 100; height: 300px;'><img src='images/close.gif' onClick='javascript:window.hide()' width='100' height='14' border='0' vspace='3' alt='关闭对联广告'><a href='' target='_blank'><img src='images/ad_100x300.jpg' width='100' height='300' border='0'></a></DIV>"
document.write(suspendcode);suspendcode="<DIV id=lovexin2 style='Z-INDEX: 10; LEFT: 896px; POSITION: absolute; TOP: 105px; width: 100; height: 300px;'><img src='images/close.gif' onClick='javascript:window.hide()' width='100' height='14' border='0' vspace='3' alt='关闭对联广告'><a href='' target='_blank'><img src='images/ad_100x300.jpg' width='100' height='300' border='0'></a></DIV>"
document.write(suspendcode);//flash格式调用方法
//<EMBED src='flash.swf' quality=high WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=ad wmode=opaque></EMBED>lastScrollY=0;
function heartBeat(){
diffY=document.body.scrollTop;
percent=.3*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.lovexin1.style.pixelTop+=percent;
document.all.lovexin2.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
function hide()
{
lovexin1.style.visibility="hidden";
lovexin2.style.visibility="hidden";
}
window.setInterval("heartBeat()",1);</script></BODY></HTML>
/***********************************************/把代码里的图片路径换成有效的图片路径即可。
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Copyright" content="可关闭的对联广告/" />
<meta name="keywords" content="JS代码,对联广告,JS广告代码,JS特效代码" />
<meta name="description" content="此代码内容为可关闭的对联广告" />
<title>可关闭的对联广告</title>
</head>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script language=JavaScript type="text/javascript">
suspendcode="<DIV id=lovexin1 style='Z-INDEX: 10; LEFT: 6px; POSITION: absolute; TOP: 105px; width: 100; height: 300px;'><img src='images/close.gif' onClick='javascript:window.hide()' width='100' height='14' border='0' vspace='3' alt='关闭对联广告'><a href='' target='_blank'><img src='images/ad_100x300.jpg' width='100' height='300' border='0'></a></DIV>"
document.write(suspendcode);suspendcode="<DIV id=lovexin2 style='Z-INDEX: 10; LEFT: 896px; POSITION: absolute; TOP: 105px; width: 100; height: 300px;'><img src='images/close.gif' onClick='javascript:window.hide()' width='100' height='14' border='0' vspace='3' alt='关闭对联广告'><a href='' target='_blank'><img src='images/ad_100x300.jpg' width='100' height='300' border='0'></a></DIV>"
document.write(suspendcode);//flash格式调用方法
//<EMBED src='flash.swf' quality=high WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=ad wmode=opaque></EMBED>lastScrollY=0;
function heartBeat(){
diffY=document.body.scrollTop;
percent=.3*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.lovexin1.style.pixelTop+=percent;
document.all.lovexin2.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
function hide()
{
lovexin1.style.visibility="hidden";
lovexin2.style.visibility="hidden";
}
window.setInterval("heartBeat()",1);</script></BODY></HTML>
/***********************************************/把代码里的图片路径换成有效的图片路径即可。
答答
2024-11-11 广告
2024-11-11 广告
广告灯箱招牌定制,上海答答广告有限公司专业打造个性化、高亮度的视觉解决方案。我们提供从设计到安装的全方位服务,选用优质材料与先进工艺,确保招牌耐用且吸引眼球。无论是商业街区、购物中心还是办公大楼,我们都能根据您的品牌特色与需求,量身定制独特...
点击进入详情页
本回答由答答提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询