你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
刘备曹操 - 古今多少事,都付谈笑中
赞同来自:
妥协 - 不会轻易妥协的人不愿意将就的人任性自由的人总是活得比较累
追梦人 - 梦想每个人都有,但不是每个人都有勇气去坚信,我有
~~~~~~~~~ - 上帝给我的使命,就是证明你们都不是最糟糕的
要回复问题请先登录或注册
古今多少事,都付谈笑中
7 个回复
刘备曹操 - 古今多少事,都付谈笑中
赞同来自:
如果你能找到相关的 JS 代码,也可以用“自定义 HTML”模块来实现。
刘备曹操 - 古今多少事,都付谈笑中
赞同来自:
刘备曹操 - 古今多少事,都付谈笑中
赞同来自:
建议将系统默认编辑器改为“无”,然后再去模块中插入代码。
继续寻找其它漂浮广告代码吧。找到了就一个一个测试,直到成功为止。
妥协 - 不会轻易妥协的人不愿意将就的人任性自由的人总是活得比较累
赞同来自:
追梦人 - 梦想每个人都有,但不是每个人都有勇气去坚信,我有
赞同来自:
var Rimifon = {
"Ads" : new Object,
"NewFloatAd" : function(imgUrl, strLink)
{
var ad = document.createElement("a")
ad.DirV = true;
ad.DirH = true;
ad.AutoMove = true;
ad.Image = new Image;
ad.Seed = Math.random()
ad.Timer = setInterval("Rimifon.Float(" + ad.Seed + ")", 50)
this.Ads[ad.Seed] = ad;
ad.Image.Parent = ad;
ad.style.position = "absolute";
ad.style.left = 0;
ad.style.top = 0;
ad.Image.src = imgUrl;
ad.Image.onmouseover = function(){this.Parent.AutoMove = false;}
ad.Image.onmouseout = function(){this.Parent.AutoMove = true;}
if(strLink)
{
ad.href = strLink;
ad.Image.border = 0;
ad.target = "_blank";
}
ad.appendChild(ad.Image)
document.body.appendChild(ad)
return ad;
},
"Float" : function(floatId)
{
var ad = this.Ads[floatId]
if(ad.AutoMove)
{
var curLeft = parseInt(ad.style.left)
var curTop = parseInt(ad.style.top)
if(ad.offsetWidth + curLeft document.body.clientWidth + document.body.scrollLeft - 1)
{
curLeft = document.body.scrollLeft + document.body.clientWidth - ad.offsetWidth;
ad.DirH = false;
}
if(ad.offsetHeight + curTop document.body.clientHeight + document.body.scrollTop - 1)
{
curTop = document.body.scrollTop + document.body.clientHeight - ad.offsetHeight;
ad.DirV = false;
}
if(curLeft document.body.scrollLeft)
{
curLeft = document.body.scrollLeft;
ad.DirH = true;
}
if(curTop document.body.scrollTop)
{
curTop = document.body.scrollTop;
ad.DirV = true;
}
ad.style.left = curLeft + (ad.DirH ? 1 : -1) + "px";
ad.style.top = curTop + (ad.DirV ? 1 : -1) + "px";
}
}
}
Rimifon.NewFloatAd("http://www.jb51.net/images/logo.gif", "http://www.baidu.com")
var ad = Rimifon.NewFloatAd("http://www.jb51.net/images/logo.gif")
ad.style.left = 500;
ad.style.top = 456;
ad.Image.width = 88;
ad.Image.height = 31;
刘备曹操 - 古今多少事,都付谈笑中
赞同来自:
再次感谢
~~~~~~~~~ - 上帝给我的使命,就是证明你们都不是最糟糕的
赞同来自:
var Rimifon = {
"Ads" : new Object,
"NewFloatAd" : function(imgUrl, strLink)
{
var ad = document.createElement("a")
ad.DirV = true;
ad.DirH = true;
ad.AutoMove = true;
ad.Image = new Image;
ad.Seed = Math.random()
ad.Timer = setInterval("Rimifon.Float(" + ad.Seed + ")", 50)
this.Ads[ad.Seed] = ad;
ad.Image.Parent = ad;
ad.style.position = "absolute";
ad.style.left = 0;
ad.style.top = 0;
ad.Image.src = imgUrl;
ad.Image.onmouseover = function(){this.Parent.AutoMove = false;}
ad.Image.onmouseout = function(){this.Parent.AutoMove = true;}
if(strLink)
{
ad.href = strLink;
ad.Image.border = 0;
ad.target = "_blank";
}
ad.appendChild(ad.Image)
document.body.appendChild(ad)
return ad;
},
"Float" : function(floatId)
{
var ad = this.Ads[floatId]
if(ad.AutoMove)
{
var curLeft = parseInt(ad.style.left)
var curTop = parseInt(ad.style.top)
if(ad.offsetWidth + curLeft document.body.clientWidth + document.body.scrollLeft - 1)
{
curLeft = document.body.scrollLeft + document.body.clientWidth - ad.offsetWidth;
ad.DirH = false;
}
if(ad.offsetHeight + curTop document.body.clientHeight + document.body.scrollTop - 1)
{
curTop = document.body.scrollTop + document.body.clientHeight - ad.offsetHeight;
ad.DirV = false;
}
if(curLeft document.body.scrollLeft)
{
curLeft = document.body.scrollLeft;
ad.DirH = true;
}
if(curTop document.body.scrollTop)
{
curTop = document.body.scrollTop;
ad.DirV = true;
}
ad.style.left = curLeft + (ad.DirH ? 1 : -1) + "px";
ad.style.top = curTop + (ad.DirV ? 1 : -1) + "px";
}
}
}
Rimifon.NewFloatAd("http://www.jb51.net/images/logo.gif", "http://www.baidu.com")
var ad = Rimifon.NewFloatAd("http://www.jb51.net/images/logo.gif")
ad.style.left = 500;
ad.style.top = 456;
ad.Image.width = 88;
ad.Image.height = 31;