左栏浮动广告
<script language="javascript">var specialcode="<div id=searchspe style='z-index: 100; right: 1px; POSITION: absolute; top: 180px;'> <table cellSpacing=0 cellPadding=0 width=150 style='border-left:1px solid #2E6287;border-top:1px solid #2E6287;border-right:1px solid #2E6287;font-size:12px;color:#ffffff; border-bottom-color:#2E6287; border-bottom-width:1px'> <tr bgcolor=#2E6287> <td height=20> 推荐↓</td> <td style='CURSOR: hand' onclick=searchspe.style.visibility='hidden' width=30>关闭</td> </tr> </table>
<table border='1' width='150' height='500' bordercolor='#2E6287'>
<tr>
<td>广告内容</td>
</tr>
</table>
</div>";document.write(specialcode);lastScrollY=0;function heartBeat0(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe.style.pixelTop+=percent;lastScrollY=lastScrollY+percent;}window.setInterval("heartBeat0()",1);</script>
右栏浮动广告
<p id="searchspe" style="z-index: 100; left: 1px; position: absolute; top: 50px"><table style="border-top: 1px solid #333333; border-left: 1px solid #333333; border-right: 1px solid #333333; font-size: 12px; color: #ffffff" cellpadding="0" cellspacing="0" width="360">
<tr bgcolor="#2e6287">
<td height="20">推荐↓</td>
<td onclick="searchspe.style.visibility='hidden'" width="30">关 闭</td>
</tr>
</table>
<table id="table1" border="1" bordercolor="#2e6287" height="500" width="150">
<tr>
<td>广告内容</td>
</tr>
</table>
广告内容
右栏固定广告
<p id="searchspe" style="z-index: 100; right: 1px; position: absolute; top: 50px">
<table style="border-top: 1px solid #333333; border-left: 1px solid #333333; border-right: 1px solid #333333; font-size: 12px; color: #ffffff" cellpadding="0" cellspacing="0" width="360">
<tr bgcolor="#2e6287">
<td height="20">推荐↓</td>
<td onclick="searchspe.style.visibility='hidden'" width="30">关 闭</td>
</tr>
</table>
广告内容
漂浮广告代码
<p id="img" style="position: absolute; width: 200px; height: 151px">广告内容</p>
<script language="javascript">
var xPos = 20;
var yPos = 10;
img.style.left= xPos;
img.style.top = yPos;
var step = 1;
var delay = 30;
var width,height,Hoffset,Woffset;
var y = 1;
var x = 1;
var interval;
img.visibility = "visible";
function changePos()
{
width = document.body.clientWidth;
height = document.body.clientHeight;
Hoffset = img.offsetHeight;
Woffset = img.offsetWidth;
if (y)
{
yPos = yPos + step;
}
else
{
yPos = yPos - step;
}
if (yPos < 0)
{
y = 1;
yPos = 0;
}
if (yPos >= (height - Hoffset))
{
y = 0;
yPos = (height - Hoffset);
}
if (x)
{
xPos = xPos + step;
}
else
{
xPos = xPos - step;
}
if (xPos < 0)
{
x = 1;
xPos = 0;
}
if (xPos >= (width - Woffset))
{
x = 0;
xPos = (width - Woffset);
}
img.style.left = xPos + document.body.scrollLeft;
img.style.top = yPos + document.body.scrollTop;
}
function start()
{
interval = setInterval('changePos()', delay);
}
function pause_resume()
{
clearInterval(interval);
}
start();
</script>
固定对联
<p id="searchspe" style="z-index: 100; right: 5px; position: absolute; top: 50px">
<table style="font-size: 12px; color: #ffffff" cellpadding="0" cellspacing="0" width="150">
<tr bgcolor="#c54a00">
<td height="20">推荐↓</td>
<td onclick="searchspe.style.visibility='hidden'" width="30">关 闭</td>
</tr>
</table>
广告内容< /div>
<p id="searchspe2" style="z-index: 100; left: 5px; position: absolute; top: 50px">
<table style="font-size: 12px; color: #ffffff" cellpadding="0" cellspacing="0" width="150">
<tr bgcolor="#12bdff">
<td height="20">推荐↓</td>
<td onclick="searchspe2.style.visibility='hidden'" width="30">关 闭</td>
</tr>
</table>
广告内容
随动对联
<script language="javascript">function close163news(){searchspe.style.visibility='hidden';searchspe2.style.visibility='hidden';} var specialcode="
<div id=searchspe style='z-index: 100; right: 1px; POSITION: absolute; top: 30px;'> <table cellSpacing=0 cellPadding=0 width=150 style='font-size:12px;color:#ffffff'> <tr bgcolor=#C54A00> <td height=20> 推荐↓</td> <td style='CURSOR: hand' onclick='close163news()' width=30>关闭</td> </tr> </table>广告内容</div>"; document.write (specialcode);lastScrollX=0;function heartBeat0(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollX);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe.style.pixelTop+=percent;lastScrollX=lastScrollX+percent;}window.setInterval("heartBeat0()",1);var specialcode2="
<div id=searchspe2 style='z-index: 100; left: 1px; POSITION: absolute; top: 30px;'> <table cellSpacing=0 cellPadding=0 width=150 style='font-size:12px;color:#ffffff'> <tr bgcolor=#12BDFF> <td height=20> 推荐↓</td> <td style='CURSOR: hand' onclick='close163news()' width=30>关闭</td> </tr> </table>广告内容</div>"; document.write (specialcode2);lastScrollY=0;function heartBeat1(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe2.style.pixelTop+=percent;lastScrollY=lastScrollY+percent;}window.setInterval("heartBeat1()",1);</script>
qq好友上线广告代码
<div id="eMeng" style="border-right: #455690 1px solid; border-top: #a6b4cf 1px solid; z-index: 99999; left: 64px; VISIBILITY: hidden; border-left: #a6b4cf 1px solid; width: 168px; border-bottom: #455690 1px solid; POSITION: absolute; top: 374px; height: 115px; background-color: #c9d3f3">
<table style="border-top: #ffffff 1px solid; border-left: #ffffff 1px solid"
cellSpacing=0 cellPadding=0 width="100%" bgColor=#cfdef4 border=0>
<tbody>
<tr>
<td style="font-size: 12px; background-image: none; color: #0f2c8c"
width=30 height=24> </td>
<td style="padding-left: 4px; font-WEIGHT: normal; font-size: 12px; background-image: none; color: #1f336b; padding-top: 4px" valign="center" width="100%"><span class="style13">本站提示</span></td>
<td valign="center" align=right width=19 2px? padding-top: 2px; padding-right:><span title="关闭" style="font-WEIGHT: bold; font-size: 12px; CURSOR: hand; color: red; margin-right: 4px" onclick="closeDiv()">×</span></td></tr>
<tr>
<td
style="padding-right: 1px; background-image: none; padding-bottom: 1px"
colSpan=3 height=90><div style="border-right: #b9c9ef 1px solid; padding-right: 13px; border-top: #728eb8 1px solid; padding-left: 13px; font-size: 12px; padding-bottom: 13px; border-left: #728eb8 1px solid; width: 100%; color: #1f336b; padding-top: 18px; border-bottom: #b9c9ef 1px solid; height: 100%">
<div align="left"> <span style="text-decoration: none">
<font color="#FF0000">仿造qq好友上线<br>
<center> </center>
</font></span></div>
</div></td></tr></table>
<script language="javascript">
window.onload = getMsg;
window.onresize = resizeDiv;
window.onerror = function(){}
var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
function getMsg()
{
try{
divTop = parseInt(document.getElementById("eMeng").style.top,10)
divLeft = parseInt(document.getElementById("eMeng").style.left,10)
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
document.getElementById("eMeng").style.top = parseInt(document.body.scrollTop,10) + docHeight + 10;// divHeight
document.getElementById("eMeng").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth
document.getElementById("eMeng").style.visibility="visible"
objTimer = window.setInterval("moveDiv()",10)
}
catch(e){}
}
function resizeDiv()
{
try{
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10)
document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10)
}
catch(e){}
}
function moveDiv()
{
try
{
if(parseInt(document.getElementById("eMeng").style.top,10) <= (docHeight - divHeight + parseInt(document.body.scrollTop,10)))
{
window.clearInterval(objTimer)
objTimer = window.setInterval("resizeDiv()",1)
}
divTop = parseInt(document.getElementById("eMeng").style.top,10)
document.getElementById("eMeng").style.top = divTop - 1
}
catch(e){}
}
function closeDiv()
{
document.getElementById('eMeng').style.visibility='hidden';
if(objTimer) window.clearInterval(objTimer)
}
</script>