求网站对联广告的代码(2个对联广告)

来源:百度知道 编辑:UC知道 时间:2024/05/25 12:10:41
想在网站上显示2个对联广告,左右各2个, 类似: www.myjob.com 和 job001.cn

这样的

高分求!! 最佳答案 另加50

你想加什么广告?很多对联广告都是由网络广告商提供的源码.

比如:http://www.keyrun.com
还有热点什么的.

存为JS脚本,调用
var delta=0.015
var collection;
function floaters() {
this.items = [];
this.addItem = function(id,x,y,content)
{
document.write('<DIV id='+id+' style="Z-INDEX: 0; 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()',10);
}
}
function play()
{
if(screen.width<=800)
{
for(var i=0;i&