Web Analytics Made Easy -
StatCounter form in DHTML?? - CodingForum

Announcement

Collapse
No announcement yet.

form in DHTML??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • form in DHTML??

    This is code for "Slide-In Menu Bar Series
    A cool menu bar that opens/contracts from the left edge of the screen as the surfer interacts with it. Browsers other than NS 4+ and IE 4+ will simply see nothing."

    Any one know how to put it only a form of a table? <table> </table> I don't want the those texts with links.. only 1 table.. any ideas?? go edit the code below.. and put it the right instead of left..

    thxx

    <style>
    <!--

    #slidemenubar, #slidemenubar2{
    position:absolute;
    left:-154px;
    width:160px;
    top:170px;
    border:1.5px solid green;
    background-color:lightyellow;
    layer-background-color:lightyellow;
    font:bold 12px Verdana;
    line-height:20px;
    }
    -->
    </style>

    <script language="JavaScript1.2">

    /*
    Sliding Menu Bar Script- © Dynamic Drive (www.dynamicdrive.com)
    For full source code, installation instructions, and TOS
    Visit http://dynamicdrive.com
    */

    var ns4=document.layers?1:0
    var ie4=document.all?1:0
    var ns6=document.getElementById&&!document.all?1:0

    if (ie4||ns6)
    document.write('<div id="slidemenubar2" style="left:-150" onMouseover="pull()" onMouseout="draw()">')
    else
    document.write('<layer id="slidemenubar" onMouseover="pull()" onMouseout="draw()">')

    var sitems=new Array()
    var sitemlinks=new Array()

    ///////////Edit below/////////////////////////////////

    //extend or shorten this list
    sitems[0]="Home"
    sitems[1]="Take our survey!"
    sitems[2]="Menus And Navigation"
    sitems[3]="Document Effects"
    sitems[4]="Scrollers"
    sitems[5]="Image Effects"
    sitems[6]="Links And Buttons"
    sitems[7]="Dynamic Clocks & Dates"
    sitems[8]="Text Animations"
    sitems[9]="Browser Window"
    sitems[10]="User System Information"
    sitems[11]="Cascading Style Sheets"
    sitems[12]="Other"


    //These are the links pertaining to the above text.
    sitemlinks[0]="../test.htm"
    sitemlinks[1]=".."
    sitemlinks[2]="../dynamicindex1/index.html"
    sitemlinks[3]="../dynamicindex3/index.html"
    sitemlinks[4]="../dynamicindex2/index.html"
    sitemlinks[5]="../dynamicindex4/index.html"
    sitemlinks[6]="../dynamicindex5/index.html"
    sitemlinks[7]="../dynamicindex6/index.html"
    sitemlinks[8]="../dynamicindex10/index.html"
    sitemlinks[9]="../dynamicindex8/index.html"
    sitemlinks[10]="../dynamicindex9/index.html"
    sitemlinks[11]="../dynamicindex7/index.html"
    sitemlinks[12]="../dynamicindex11/index.html"

    //If you want the links to load in another frame/window, specify name of target (ie: target="_new")
    var target=""

    /////////////////////////////////////////////////////////

    for (i=0;i<=sitems.length-1;i++)
    document.write('<a href='+sitemlinks[i]+' target="'+target+'">'+sitems[i]+'</a><br>')

    function regenerate(){
    window.location.reload()
    }
    function regenerate2(){
    if (ns4)
    setTimeout("window.onresize=regenerate",400)
    }
    window.onload=regenerate2
    if (ie4||ns6){
    document.write('</div>')
    themenu=(ns6)? document.getElementById("slidemenubar2").style : document.all.slidemenubar2.style
    rightboundary=0
    leftboundary=-150
    }
    else{
    document.write('</layer>')
    themenu=document.layers.slidemenubar
    rightboundary=150
    leftboundary=10
    }
    function pull(){
    if (window.drawit)
    clearInterval(drawit)
    pullit=setInterval("pullengine()",50)
    }
    function draw(){
    clearInterval(pullit)
    drawit=setInterval("drawengine()",50)
    }
    function pullengine(){
    if (ie4&&themenu.pixelLeft<rightboundary)
    themenu.pixelLeft+=5
    else if (ns6&&parseInt(themenu.left)<rightboundary)
    themenu.left=parseInt(themenu.left)+5
    else if( ns4&&themenu.left<rightboundary)
    themenu.left+=5
    else if (window.pullit)
    clearInterval(pullit)
    }
    function drawengine(){
    if (ie4&&themenu.pixelLeft>leftboundary)
    themenu.pixelLeft-=5
    else if (ns6&&parseInt(themenu.left)>leftboundary)
    themenu.left=parseInt(themenu.left)-5
    else if(ns4&&themenu.left>leftboundary)
    themenu.left-=5
    else if (window.drawit)
    clearInterval(drawit)
    }
    </script>
    TT

  • #2
    Just letting you know for future reference...we have a forum here which is specifically for Dynamic Drive scripts, which is where your question belongs. Again, just letting you know for future reference, leave this one here and one of the Moderators for this forum may move this thread to the Dynamic Drive forum for you. Good luck .
    boxer_1
    New to the CF scene
    Last edited by boxer_1; Jul 3, 2002, 11:49 PM.
    boxer_1
    CodingForum Moderator
    "How did a fool and his money get together in the first place?"

    Comment


    • #3
      :: exercises newly granted super mod privileges ::
      jasonkarldavis.com

      Comment


      • #4
        Can one help me out??
        TT

        Comment

        Working...
        X