如何在JS中加入阿里妈妈的广告
suspendcode="<DIVid=lovexin1style='Z-INDEX:10;LEFT:0px;POSITION:absolute;TOP:80px;wid...
suspendcode="<DIV id=lovexin1 style='Z-INDEX: 10; LEFT: 0px; POSITION: absolute; TOP: 80px; width: 85px; height: 260px;'><img src='images/close.gif' onClick='javascript:window.hide()' width='48' height='14' border='0' vspace='3' alt='关闭对联广告'><a href='http://www.ojuli.com' target='_blank'><img src='images/ad05.gif' width='85' height='260' border='0'></a></DIV>"
document.write(suspendcode);
suspendcode="<DIV id=lovexin2 style='Z-INDEX: 10; LEFT: 920px; POSITION: absolute; TOP: 80px; width: 85px; height: 260px;'><img src='images/close.gif' onClick='javascript:window.hide()' width='48' height='14' border='0' vspace='3' alt='关闭对联广告'><a href='http://www.ojuli.com' target='_blank'><img src='images/ad06.gif' width='85' height='260' 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);
这是js文件夹。这是二个旁副广告;85*260大小 如何放阿里妈妈的广告呢
我的站:www.ojuli.com
下面是阿里的广告位
<script type="text/JavaScript">
alimama_pid="mm_11403153_1272465_2705589";
alimama_titlecolor="0000FF";
alimama_descolor ="000000";
alimama_bgcolor="FFFFFF";
alimama_bordercolor="E6E6E6";
alimama_linkcolor="008000";
alimama_bottomcolor="FFFFFF";
alimama_anglesize="0";
alimama_bgpic="0";
alimama_icon="0";
alimama_sizecode="22";
alimama_width=120;
alimama_height=240;
alimama_type=2;
</script>
<script src="http://a.alimama.cn/inf.js" type=text/javascript>
</script> 展开
document.write(suspendcode);
suspendcode="<DIV id=lovexin2 style='Z-INDEX: 10; LEFT: 920px; POSITION: absolute; TOP: 80px; width: 85px; height: 260px;'><img src='images/close.gif' onClick='javascript:window.hide()' width='48' height='14' border='0' vspace='3' alt='关闭对联广告'><a href='http://www.ojuli.com' target='_blank'><img src='images/ad06.gif' width='85' height='260' 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);
这是js文件夹。这是二个旁副广告;85*260大小 如何放阿里妈妈的广告呢
我的站:www.ojuli.com
下面是阿里的广告位
<script type="text/JavaScript">
alimama_pid="mm_11403153_1272465_2705589";
alimama_titlecolor="0000FF";
alimama_descolor ="000000";
alimama_bgcolor="FFFFFF";
alimama_bordercolor="E6E6E6";
alimama_linkcolor="008000";
alimama_bottomcolor="FFFFFF";
alimama_anglesize="0";
alimama_bgpic="0";
alimama_icon="0";
alimama_sizecode="22";
alimama_width=120;
alimama_height=240;
alimama_type=2;
</script>
<script src="http://a.alimama.cn/inf.js" type=text/javascript>
</script> 展开
1个回答
展开全部
以下是放入JS的租纤磨写法
<script type=\"弊斗text\/JavaScript\">
alimama_pid=\"mm_11403153_1272465_2705589\";
alimama_titlecolor=\"0000FF\";
alimama_descolor =\"000000\";
alimama_bgcolor=\"FFFFFF\";
alimama_bordercolor=\"E6E6E6\";
alimama_linkcolor=\"008000\";
alimama_bottomcolor=\"FFFFFF\";
alimama_anglesize=\"0\";
alimama_bgpic=\"0\";
alimama_icon=\"0\"竖昌;
alimama_sizecode=\"22\";
alimama_width=120;
alimama_height=240;
alimama_type=2;
<\/script>
<script src=\"http:\/\/a.alimama.cn\/inf.js\" type=text\/javascript>
<\/script>
<script type=\"弊斗text\/JavaScript\">
alimama_pid=\"mm_11403153_1272465_2705589\";
alimama_titlecolor=\"0000FF\";
alimama_descolor =\"000000\";
alimama_bgcolor=\"FFFFFF\";
alimama_bordercolor=\"E6E6E6\";
alimama_linkcolor=\"008000\";
alimama_bottomcolor=\"FFFFFF\";
alimama_anglesize=\"0\";
alimama_bgpic=\"0\";
alimama_icon=\"0\"竖昌;
alimama_sizecode=\"22\";
alimama_width=120;
alimama_height=240;
alimama_type=2;
<\/script>
<script src=\"http:\/\/a.alimama.cn\/inf.js\" type=text\/javascript>
<\/script>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询