Visualizzazione dei risultati da 1 a 2 su 2

Discussione: nascondere il livello

  1. #1

    nascondere il livello

    ciao raga, ho questo script che serve x creare uno splash screen, non spostatemi la discussione in scripting xkè non è qui il problema..allora:
    lo script:
    <style>
    <!--
    #sponsorAdDiv {position:absolute; height:1; width:1px; top:0; left:0;}
    -->
    </style>

    <script type="text/javascript">

    /******************************************
    * DHTML Ad Box (By Matt Gabbert at http://www.nolag.com)
    * Visit http://www.dynamicdrive.com/ for full script
    * This notice must stay intact for use
    ******************************************/

    adTime=10; // seconds ad reminder is shown
    chanceAd=1; // ad will be shown 1 in X times (put 1 for everytime)

    var ns=(document.layers);
    var ie=(document.all);
    var w3=(document.getElementById && !ie);
    var calunit=ns? "" : "px"
    adCount=0;
    function initAd(){
    if(!ns && !ie && !w3) return;
    if(ie) adDiv=eval('document.all.sponsorAdDiv.style');
    else if(ns) adDiv=eval('document.layers["sponsorAdDiv"]');
    else if(w3) adDiv=eval('document.getElementById("sponsorAdDiv" ).style');
    randAd=Math.ceil(Math.random()*chanceAd);
    if (ie||w3)
    adDiv.visibility="visible";
    else
    adDiv.visibility ="show";
    if(randAd==1) showAd();
    }
    function showAd(){
    if(adCount<adTime*10){adCount+=1;
    if (ie){documentWidth =truebody().offsetWidth/2+truebody().scrollLeft-20;
    documentHeight =truebody().offsetHeight/2+truebody().scrollTop-20;}
    else if (ns){documentWidth=window.innerWidth/2+window.pageXOffset-20;
    documentHeight=window.innerHeight/2+window.pageYOffset-20;}
    else if (w3){documentWidth=self.innerWidth/2+window.pageXOffset-20;
    documentHeight=self.innerHeight/2+window.pageYOffset-20;}
    adDiv.left=documentWidth-200+calunit;adDiv.top =documentHeight-200+calunit;
    setTimeout("showAd()",100);}else closeAd();
    }
    function closeAd(){
    if (ie||w3)
    adDiv.display="none";
    else
    adDiv.visibility ="hide";
    }

    function truebody(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
    }

    onload=initAd;
    //End-->
    </script>[CODE]
    ___________________
    questo e il codice html:
    [CODE]
    <div id="sponsorAdDiv" style="visibility:hidden">
    <table width="450px" height="350px" bgcolor="#008000"><tr><td>
    <table width="445px" height="345px" bgcolor="#F0FFF0"><tr><td align="center" valign="middle">


    <A HREF="http://www.amazon.com/exec/obidos/redirect-home/wa0c?tag-id=wa0c&placement=home-btn-100x70.gif&site=amazon">
    </A>

    Please take time to show your support

    for this site by visiting one

    of our sponsors during this
    brief intermission.

    </p>


    <A HREF="http://www.amazon.com/exec/obidos/redirect-home/wa0c?tag-id=wa0c&placement=home-logo-130x60b.gif&site=amazon">
    </A></p>


    (This announcement will close shortly)




    </td></tr></table></td></tr></table>
    </div>[CODE]

    questo codice lo devo mettere prima della chiusura del body e fin qui ci sono...allora provandolo e tutto perfetto ma io questo livello lo ho in mezzo ai piedi nella homepage..e mi disturba..dovrò sempre modificarla la home..non posso lavorare con quel livello in mezzo..non so come farlo nascondere questo livello..ho provato a dargli hiddenal livello ma non si nasconde...qualcuno di voi saprebbe dirmi una soluzione al problema??

    grazie mille anticipato!

  2. #2
    hai provato con display: none?
    4 pag. x il forum:l'ospite ora ha solo link sponsorizzati, valli a capire-GommaLayout! Agg. 25 agosto 2004)-Molla&Collano privati tecnici, per favore

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.