网站对联代码(求对联下联网站)

企业小程序 293
本篇文章给大家谈谈网站对联代码,以及求对联下联网站对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。 网页广告对联代码问题 送你个我写的div id="'LeftFloat" style="left:20px;"左/divdiv id="'RightFloat" style="right:20px"右/divscriptfunction KvFloat(ID){if(ID==""){alert("KvFloat:nn至少指定一个对象的ID值");}var t=document.documentElement.scrollTop;s=.1*(t-KvFloat_y);if(s0){s=Math.ceil(s);}else{s=Math.floor(s);}o=ID.split("|");for(var i=0;io.length;i++){var n=document.getElementById(o[i]);if(n==null){alert("KvFloat:nn该ID的对象[ "+o[i]+" ]存在?");}if(n.style.top==""){n.style.top=0;}n.style.position="absolute";n.style.top=parseInt(n.style.top)+s+"px";}KvFloat_y=KvFloat_y+s;}

本篇文章给大家谈谈网站对联代码,以及求对联下联网站对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。

网页广告对联代码问题

送你个

我写的

div id="'LeftFloat" style="left:20px;"左/div

div id="'RightFloat" style="right:20px"右/div

script

function KvFloat(ID){if(ID==""){alert("KvFloat:nn至少指定一个对象的ID值");}var t=document.documentElement.scrollTop;s=.1*(t-KvFloat_y);if(s0){s=Math.ceil(s);}else{s=Math.floor(s);}o=ID.split("|");for(var i=0;io.length;i++){var n=document.getElementById(o[i]);if(n==null){alert("KvFloat:nn该ID的对象[ "+o[i]+" ]存在?");}if(n.style.top==""){n.style.top=0;}n.style.position="absolute";n.style.top=parseInt(n.style.top)+s+"px";}KvFloat_y=KvFloat_y+s;}

var KvFloat_y=0;window.setInterval("KvFloat('LeftFloat|RightFloat')",1);

/script

网页对联式广告代码的问题

对联代码

·左边挂件:

DIV

style="LEFT:

5px;

POSITION:

absolute;

TOP:

200px"

align=leftIMG

src="挂件地址"

align=leftDIV

·右边挂件:

DIV

style="LEFT:

900px;

POSITION:

absolute;

TOP:

200px"

align=rightIMG

src="挂件地址"

align=right/DIV

其中LEFT:

为从左向右移的位置,即挂件距离屏幕左边缘的距离;TOP:

为从上向下移的位置,即挂件距离屏幕上边缘的距离!左右两边挂件都是以屏幕左边缘为基准的,其距离的具体数值可根据实际情况而定!

急寻:网页对联代码

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""

html xmlns=""

head

meta http-equiv="Content-Type" content="text/html; charset=gb2312" /

title浮动对联/title

style

#QQFloat{

right: 2px;

}

#QQFloat2{

left: 2px;

}

.QQFloat2{

background-color:#f61;

top: 20px;

overflow: hidden;

position: absolute;

height: 400px;

width: 50px;

padding:25px;

text-align:center;

font-size:45px;

}

/style

script type="text/javascript"

window.onscroll = function MoveQQ(){

document.getElementById("QQFloat").style.top=eval(document.documentElement.scrollTop) + "px";

document.getElementById("QQFloat2").style.top=eval(document.documentElement.scrollTop) + "px";

}

/script

/head

body

div style="height:2500px;width:749px;margin:0 auto;"为了让网页出现滚动条以便测试加了这个层br /为了让网页出现滚动条以便测试加了这个层

br /

为了让网页出现滚动条以便测试加了这个层

/div

div class="0e92d8766ce806f0 QQFloat2" id="QQFloat"天增岁月人增寿/div

div class="d8766ce806f0a146 QQFloat2" id="QQFloat2"春满乾坤福满门/div

/body

/html

要一段网页对联旗帜的代码

把以下文字存成js文件,比如ad.js。然后替换代码中的SWF地址。

!--对联代码开始lulu163.com--

var delta=0.015;

var collection;

var closeB=false;

function floaters() {

this.items = [];

this.addItem = function(id,x,y,content)

{

document.write('DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'"'+content+'/DIV');

var newItem = {};

newItem.object = document.getElementById(id);

newItem.x = x;

newItem.y = y;

this.items[this.items.length] = newItem;

}

this.play = function()

{

collection = this.items

setInterval('play()',1);

}

}

function play()

{

if(screen.width=800 || closeB)

{

for(var i=0;icollection.length;i++)

{

collection[i].object.style.display = 'none';

}

return;

}

for(var i=0;icollection.length;i++)

{

var followObj = collection[i].object;

var followObj_x = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);

var followObj_y = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {

var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;

dx=(dx0?1:-1)*Math.ceil(Math.abs(dx));

followObj.style.left=followObj.offsetLeft+dx;

}

if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {

var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;

dy=(dy0?1:-1)*Math.ceil(Math.abs(dy));

followObj.style.top=followObj.offsetTop+dy;

}

followObj.style.display = '';

}

}

function closeBanner()

{

closeB=true;

return;

}

var theFloaters = new floaters();

//

theFloaters.addItem('followDiv1','document.body.clientWidth-105',110,'a onClick="closeBanner();" href=job.asp target=_blankembed src=lu/403.swf quality=high pluginspage= type=application/x-shockwave-flash height=280 width=95/embed/abrimg src=ads/close.gif onClick="closeBanner();"');

theFloaters.addItem('followDiv2',5,110,'a onClick="closeBanner();" href=job.asp target=_blankembed src=lu/402.swf quality=high pluginspage= type=application/x-shockwave-flash height=280 width=95/embed/abrimg src=ads/close.gif onClick="closeBanner();"');

theFloaters.play();

!--对联代码结束lulu163.com--

其中ads/close.gif为关闭按钮,lu/402.swf,lu/403.swf 为FLASH地址,href=job.asp 为FLASH的链接地址。

求网站对联广告JS代码

复制下面代码放到js文件里就行了 导入用script language="javascript" src="你的js文件名.js"/script放到你的首页就可以了 你应该满意这段代码的效果吧 兼容firefoxf/ie/chrome

以下是js文件代码直接复制即可:

lastScrollY=0;

function heartBeat(){

var diffY;

if (document.documentElement document.documentElement.scrollTop)

diffY = document.documentElement.scrollTop;

else if (document.body)

diffY = document.body.scrollTop

else

{/*Netscape stuff*/}

//alert(diffY);

percent=.1*(diffY-lastScrollY);

if(percent0)percent=Math.ceil(percent);

else percent=Math.floor(percent);

document.getElementById("LeftAd").style.top=parseInt(document.getElementById("LeftAd").style.top)+percent+"px";

document.getElementById("RightAd").style.top=parseInt(document.getElementById("LeftAd").style.top)+percent+"px";

lastScrollY=lastScrollY+percent;

//alert(lastScrollY);

}

suspendcode12="DIV id=LeftAd style='left:5px;POSITION:absolute;TOP:80px;'img src=' ' a style='text-align:left; cursor: hand; display:block; background:#eee; width:100px;' href='javascript:void(0)' onclick='javascript:ClosedivLeft()' hidefocus='true'关闭/a/div"

suspendcode14="DIV id=RightAd style='right:5px;POSITION:absolute;TOP:80px;'img src=' ' a style='text-align:left; cursor: hand; display:block; background:#eee; width:100px;' href='javascript:void(0)' onclick='javascript:ClosedivRight()' hidefocus='true'关闭/a/div"

document.write(suspendcode12);

document.write(suspendcode14);

window.setInterval("heartBeat()",1);

function ClosedivLeft()

{

LeftAd.style.visibility="hidden";

}

function ClosedivRight()

{

RightAd.style.visibility="hidden";

}

求网站首页两侧对联式广告图片代码?

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/EMBEDlastScrollY=0;

function heartBeat(){

diffY=document.body.scrollTop;

percent=.3*(diffY-lastScrollY);

if(percent0)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

/***********************************************/把代码里的图片路径换成有效的图片路径即可。

网站对联代码的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于求对联下联网站、网站对联代码的信息别忘了在本站进行查找喔。

网站对联代码 网页设计对联代码html对联代码对联网页代码jquery对联广告代码对联图片设置html代码对联的网站ai对联网站对联生成器网站对联网站有哪些在线生成对联网站
扫码二维码