Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2003
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    scroll banner down

    javascript 1 of 2
    .........................

    <STYLE type="text/css">
    <!--
    #advert {position: absolute; top: -60; left: 0}
    -->
    </STYLE>

    <SCRIPT language="JavaScript" type="text/javascript">
    <!--
    // Please keep this header if you want to use the script.
    // Developed by 2NetZone 666 http://2netzone.com/

    var speed=1
    var pix=5
    var position=-60

    // Change the value=-60 when you add more banner ads or when you change the height of the banner. Example: height of banner is 60 pixels, position is -60
    // the value must equal to the value of top: in the style sheets.
    // You can only add the value in increment of 5 pixels, if not, the script ain't work.

    if(document.all){
    var Ads="advert.style.pixelTop"
    }

    else if(document.layers)

    var Ads="document.layers.advert.top"
    function showAd(){
    if (eval(Ads+'==position')){
    movedown();
    }

    else if(eval(Ads+'==0')){
    moveup();
    }
    }

    function moveup(){
    if(eval(Ads+'!=position')){
    eval(Ads+'-=5')
    setTimeout("moveup()",speed)
    }
    }

    function movedown(){
    if(eval(Ads+'!=0')){
    eval(Ads+'+=5')
    setTimeout("movedown()",speed)
    }
    }

    // -->
    </SCRIPT>


    javascript 2 of 2
    .....................................

    <DIV id="advert">
    <A href="http://you link.com/"><IMG src="http://www.you link.com/banner.jpg" width="468" height="60" border="0" alt="sample banner"></A><BR>
    <!-- you may add more banners or text here but remember to change the position in the top script -->
    <A href="javascript:showAd()" onmouseover="showAd()"><IMG src="http://www.you link.com/you button.gif" width="110" height="25" border="0" alt="Free whatever"></A>
    </DIV>
    <!-- You, of course, have to change the url and the images -->
    What we see and what we do www.2netzone.com

  • #2
    New Coder
    Join Date
    Jan 2003
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts
    whats an example of this on a site?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •