茄子在线看片免费人成视频,午夜福利精品a在线观看,国产高清自产拍在线观看,久久综合久久狠狠综合

    <s id="ddbnn"></s>
  • <sub id="ddbnn"><ol id="ddbnn"></ol></sub>

  • <legend id="ddbnn"></legend><s id="ddbnn"></s>

    廣告代碼3
    來源:易賢網(wǎng) 閱讀:1055 次 日期:2014-09-09 15:16:26
    溫馨提示:易賢網(wǎng)小編為您整理了“廣告代碼3”,方便廣大網(wǎng)友查閱!

    與前面兩個代碼不同的是,廣告圖下方增加了一個圖片按紐,允許訪客點擊關閉廣告圖片,下面文本框中就是實現(xiàn)效果所需代碼:

    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()',30);

    }

    }

    function play()

    {

    if(screen.width<=800 || closeB)

    {

    for(var i=0;i<collection.length;i++)

    {

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

    }

    return;

    }

    for(var i=0;i<collection.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=(dx>0?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=(dy>0?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-100',0,'<a onClick="closeBanner();" href=http://www.dfeng.net target=_blank><img src=ad/doublead/right.gif width=100 height=554 border=0></a><br><br><img src=ad/doublead/close.gif onClick="closeBanner();">');

    theFloaters.addItem('followDiv2',0,0,'<a onClick="closeBanner();" href=http://www.dfeng.net target=_blank><img src=ad/doublead/ad_ad.gif width=100 height=400 border=0 ></a><br><br><img src=ad/doublead/close.gif onClick="closeBanner();">');

    theFloaters.play();

    把上面的代碼另存為一個JS文件,然后在想實現(xiàn)此效果的頁面用 調用即可,*代表你另存的文件名!注意修改廣告圖片地址和連接地址!

    浮動對聯(lián)廣告---之左側代碼

    如果您想只有一側顯示的話,下面是實現(xiàn)左側效果所需代碼:

    var ad_float_left_src ="圖片地址";

    var ad_float_left_url ="地址";

    var ad_float_left_type = "";

    document.ns = navigator.appName == "Microsoft Internet Explorer"

    var imgheight_close

    var imgleft

    window.screen.width>800 ? imgheight_close=120:imgheight_close=120

    window.screen.width>800 ? imgleft=8:imgleft=122

    function myload()

    {

    myleft.style.top=document.body.scrollTop+document.body.offsetHeigh

    t-imgheight_close;

    myleft.style.left=imgleft;

    leftmove();

    }

    function leftmove()

    {

    myleft.style.top=document.body.scrollTop+document.body.offsetHeigh

    t-imgheight_close;

    myleft.style.left=imgleft;

    setTimeout("leftmove();",50)

    }

    function MM_reloadPage(init) { //reloads the window if Nav4

    resized

    if (init==true) with (navigator) {if ((appName=="Netscape")&&

    (parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;

    onresize=MM_reloadPage; }}

    else if (innerWidth!=document.MM_pgW || innerHeight!

    =document.MM_pgH) location.reload();

    }

    MM_reloadPage(true)

    function close_float_left(){

    myleft.style.visibility='hidden';

    }

    document.write("<div id=myleft style='position:

    absolute;width:80;top:300;left:5;visibility: visible;z-index: 1'>"

    +"<style>"

    +"A.closefloat:link,A.refloat:visited {text-

    decoration:none;color:#000000;font-size:12px}"

    +"A.closefloat:active,A.refloat:hover {text-decoration:underline;color:#0000FF;font-size:12px}"

    +"</style>"

    +"<table border=0 cellpadding=0 cellspacing=0><tr><td>");

    if(document.ns){

    if(ad_float_left_type!="swf")

    document.write("<a href='" + ad_float_left_url + "' target

    = '_blank'><img src='" + ad_float_left_src + "' WIDTH=88

    height=31 border=0></a>");

    else

    document.write("<EMBED src='" + ad_float_left_src + "'

    quality=high WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-

    flash' id=changhongout ></EMBED>");

    document.write("</td></tr><tr><td width=80 height=20

    align=right><a href='javascript:close_float_left();void(0);'

    class=closefloat><b><font color=#ff0000>關閉</font></b></a></td></tr>"

    +"</table>"

    +"</div>");

    myload()}

    把上面的代碼另存為一個*.JS文件,然后在想實現(xiàn)此效果的頁面用

    <script src="*.js"></SCRIPT>

    調用即可,*代表你另存的文件名!注意修改廣告圖片地址和連接地址!相應的參數(shù)可以根據(jù)頁面自行調整。

    更多信息請查看IT技術專欄

    更多信息請查看腳本欄目
    易賢網(wǎng)手機網(wǎng)站地址:廣告代碼3

    2026國考·省考課程試聽報名

    • 報班類型
    • 姓名
    • 手機號
    • 驗證碼
    關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網(wǎng)