dz的對聯(lián)盟廣告代碼是在后臺設置的
成都創(chuàng)新互聯(lián)電話聯(lián)系:13518219792,為您提供成都網(wǎng)站建設網(wǎng)頁設計及定制高端網(wǎng)站建設服務,成都創(chuàng)新互聯(lián)網(wǎng)頁制作領域十多年,包括塑料袋等多個領域擁有豐富的網(wǎng)站設計經(jīng)驗,選擇成都創(chuàng)新互聯(lián),為企業(yè)保駕護航。
不需要單獨設置對聯(lián)代碼的啊
如下圖,之前點進去設置即可
建議你試用歌遨游瀏覽器,他可以幫你解決此類問題!傲游 [Maxthon] 瀏覽器 是一款基于 IE 內(nèi)核的、多功能、個性化多頁面瀏覽器. 它允許在同一窗口內(nèi)打開任意多個頁面, 減少瀏覽器對系統(tǒng)資源的占用率, 提高網(wǎng)上沖浪的效率. 同時它又能有效防止惡意插件, 阻止各種彈出式, 浮動式廣告,加強網(wǎng)上瀏覽的安全. Maxthon 支持各種外掛工具及 IE 插件, 使你在 Maxthon 中可以充分利用所有的網(wǎng)上資源, 享受上網(wǎng)沖浪的樂趣.
下載地址
JS是 Java Script 的簡寫,是用JAVA腳本寫的代碼。
比如說在做網(wǎng)站的時候,插入一段JS代碼就可以調(diào)用并JS代碼里面的內(nèi)容,就不用一定把這些代碼寫在網(wǎng)頁文件里。
單純只是這樣看,那是應為該DIV層被隱藏了。
應該有個事件是會觸發(fā)層顯示的,也就是將div中visibility的屬性變成visible的。
如果你要測試。直接將visibility:hidden;換成visibility:visible;
1.滾動的阿里媽媽廣告:
A.用腳本語言實現(xiàn): marquee id="scrollarea" direction="up" scrolldelay="100" scrollamount="2" width="150" height="130" onmouseover="this.stop();" onmouseout="this.start();"
:這個地方放你的阿里媽媽的代碼:
/marquee/
可以設置滾動的方向,速度等,各種參數(shù)如下:
marquee 參數(shù):
BGColor:滾動文本框的背景顏色。
Direction:滾動方向設置,可選擇Left、Right、up和down。
scrolldelay:每輪滾動之間的延遲時間,越大越慢。
scrollamount:一次滾動總的時間量,數(shù)字越小滾動越慢。
Behaviour:滾動的方式設置,三種取值:Scroll(循環(huán)滾動) lide(單次滾動)、Alternate(來回滾動)。
Align:文字的對齊方式設置。可選擇Middle(居中)、Bottom(居下)還是Top(居上)。
Width:滾動文本框的寬度,輸入一個數(shù)值后從后面的單選框選擇in Pixels(按像素)或是in Percent(按百分比)。
Height:滾動文本框的高度,輸入一個數(shù)值后從后面的單選框選擇in Pixels(按像素)或是in Percent(按百分比)。
loop:滾動次數(shù)。默認為infinite
hspace、vspace:前后、上下的空行。
2.讓阿里媽媽廣告任意漂浮
div id="ad" style="position:absolute"
[color=Red]a href="" target="_blank"
img src="" border="0"
注意:從a herf --------------------這里根據(jù)你自己的情況設置阿里媽媽的廣告,可以增加一個table,支持所有的html語言。
/a/div
script
var x = 50,y = 60
var xin = true, yin = true
var step = 1
var delay = 10
var obj=document.getElementById("ad")
function floatAD() {
var L=T=0
var R= document.body.clientWidth-obj.offsetWidth
var B = document.body.clientHeight-obj.offsetHeight
obj.style.left = x + document.body.scrollLeft
obj.style.top = y + document.body.scrollTop
x = x + step*(xin?1:-1)
if (x L) { xin = true; x = L}
if (x R){ xin = false; x = R}
y = y + step*(yin?1:-1)
if (y T) { yin = true; y = T }
if (y B) { yin = false; y = B }
}
var itl= setInterval("floatAD()", delay)
obj.onmouseover=function(){clearInterval(itl)}
obj.onmouseout=function(){itl=setInterval("floatAD()", delay)}
/script [/color]
大伙根據(jù)自己的喜好進行修改,其中的X,Y是起始的坐標,增加速度是1,你也可以隨便修改。學習一些腳本還是有好處的。
3.讓阿里媽媽成對聯(lián)。
要求分辨率為1024*768。代碼如下:
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;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 = '';
}
}
var theFloaters = new floaters();
theFloaters.addItem('followDiv1','document.body.clientWidth-100',0,'/abr
[color=Red]a href=廣告鏈接地址 target=_blankimg src=廣告圖片地址 width=100 height=400 border=0/a
這里放第一個廣告代碼····同2,可以增加table···
');
theFloaters.addItem('followDiv2',0,0,'br
a href=廣告鏈接地址 target=_blankimg src=廣告圖片地址 width=100 height=400 border=0/a
放第二個廣告代碼···同上···
');
theFloaters.play(); [/color]
4.可以被拖動的阿里媽媽廣告。代碼比較復雜,太長了,
html
head
title_xWin/title
style type='text/css'
!--
a:visited{text-decoration:none;color:slategray;}
a:hover{text-decoration:underline;color:slategray;}
a:link{text-decoration:none;color:slategray;}
--
/style
script language=JScript
!--
//可以打包為js文件;
var x0=0,y0=0,x1=0,y1=0;
var offx=6,offy=6;
var moveable=false;
var hover='orange',normal='slategray';//color;
var index=10000;//z-index;
//開始拖動;
function startDrag(obj)
{
//鎖定標題欄;
obj.setCapture();
//定義對象;
var win = obj.parentNode;
var sha = win.nextSibling;
//記錄鼠標和層位置;
x0 = event.clientX;
y0 = event.clientY;
x1 = parseInt(win.style.left);
y1 = parseInt(win.style.top);
//記錄顏色;
normal = obj.style.backgroundColor;
//改變風格;
obj.style.backgroundColor = hover;
win.style.borderColor = hover;
obj.nextSibling.style.color = hover;
sha.style.left = x1 + offx;
sha.style.top = y1 + offy;
moveable = true;
}
//拖動;
function drag(obj)
{
var win = obj.parentNode;
var sha = win.nextSibling;
if(moveable)
{
win.style.left = x1 + event.clientX - x0;
win.style.top = y1 + event.clientY - y0;
sha.style.left = parseInt(win.style.left) + offx;
sha.style.top = parseInt(win.style.top) + offy;
}
}
//停止拖動;
function stopDrag(obj)
{
var win = obj.parentNode;
var sha = win.nextSibling;
win.style.borderColor = normal;
obj.style.backgroundColor = normal;
obj.nextSibling.style.color = normal;
sha.style.left = obj.parentNode.style.left;
sha.style.top = obj.parentNode.style.top;
//放開標題欄;
obj.releaseCapture();
moveable = false;
}
//獲得焦點;
function getFocus(obj)
{
index = index + 2;
var idx = index;
obj.style.zIndex=idx;
obj.nextSibling.style.zIndex=idx-1;
}
function min(obj)
{
var win = obj.parentNode.parentNode;
var sha = win.nextSibling;
var tit = obj.parentNode;
var msg = tit.nextSibling;
var flg = msg.style.display=="none";
if(flg)
{
win.style.height = parseInt(msg.style.height) + parseInt(tit.style.height) + 2*2;
sha.style.height = win.style.height;
msg.style.display = "block";
obj.innerHTML = "0";
}
else
{
win.style.height = parseInt(tit.style.height) + 2*2;
sha.style.height = win.style.height;
obj.innerHTML = "2";
msg.style.display = "none";
}
}
function cls(obj)
{
var win = obj.parentNode.parentNode;
var sha = win.nextSibling;
win.style.visibility = "hidden";
sha.style.visibility = "hidden";
}
//創(chuàng)建一個對象;
function xWin(id,w,h,l,t,tit,msg)
{
index = index+2;
this.id = id;
this.width = w;
this.height = h;
this.left = l;
this.top = t;
this.zIndex = index;
this.title = tit;
this.message = msg;
this.obj = null;
this.bulid = bulid;
this.bulid();
}
//初始化;
function bulid()
{
var str = ""
+ "div id=xMsg" + this.id + " "
+ "style='"
+ "z-index:" + this.zIndex + ";"
+ "width:" + this.width + ";"
+ "height:" + this.height + ";"
+ "left:" + this.left + ";"
+ "top:" + this.top + ";"
+ "background-color:" + normal + ";"
+ "color:" + normal + ";"
+ "font-size:10px;"
+ "font-family:Verdana;"
+ "position:absolute;"
+ "cursor:default;"
+ "border:2px solid " + normal + ";"
+ "' "
+ "onmousedown='getFocus(this)'"
+ "div "
+ "style='"
+ "background-color:" + normal + ";"
+ "width:" + (this.width-2*2) + ";"
+ "height:20;"
+ "color:white;"
+ "' "
+ "onmousedown='startDrag(this)' "
+ "onmouseup='stopDrag(this)' "
+ "onmousemove='drag(this)' "
+ ""
+ "span style='width:" + (this.width-2*12-4) + ";padding-left:3px;'" + this.title + "/span"
+ "span style='width:12;border-width:0px;color:white;font-family:webdings;' onclick='min(this)'0/span"
+ "span style='width:12;border-width:0px;color:white;font-family:webdings;' onclick='cls(this)'r/span"
+ "/div"
+ "div style='"
+ "width:100%;"
+ "height:" + (this.height-20-4) + ";"
+ "background-color:white;"
+ "line-height:14px;"
+ "word-break:break-all;"
+ "padding:3px;"
+ "'" + this.message + "/div"
+ "/div"
+ "div style='"
+ "width:" + this.width + ";"
+ "height:" + this.height + ";"
+ "top:" + this.top + ";"
+ "left:" + this.left + ";"
+ "z-index:" + (this.zIndex-1) + ";"
+ "position:absolute;"
+ "background-color:black;"
+ "filter:alpha(opacity=40);"
+ "'?/div";
//alert(str);
document.body.insertAdjacentHTML("beforeEnd",str);
}
//--
/script
script language='JScript'
!--
function initialize()
{
var a = new xWin("1",160,200,200,200,"Message","xWin br A Cool Pop Div WindowbrVersion:1.0br2002-8-13");
var b = new xWin("2",240,200,100,100,"Wildwind's Msgbox","Welcome to visited my personal website:br
[color=Red]這個地方放廣告代碼·························
brand u can also sign my guestbook at:br
這個地方放廣告代碼····················
brbrthx!!! =)...");
var c = new xWin("3",200,160,250,50,"Copyright","Copyright by a href='mailto:wildwind_zz@21cn.com'Wildwind/a!");
}
window.onload = initialize;
//--
/script
/head
body onselectstart='return false' oncontextmenu='return false'
/body
/html[/color]
這么復雜的東東
只需要一個Java Script的代碼就可以,但是廣告你還是要用圖畫進行設計的。