Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Slide open menu onload - Slashdot's Menu

  1. #1
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Slide open menu onload - Slashdot's Menu

    1) Script name: Slashdot's Menu
    2) Script URL: http://www.dynamicdrive.com/dynamicindex1/slashdot.htm

    I think the slashdot menu is quite cool, and I am intending to use it on my website if i can get it to do what I actually want. Can someone figure out a way to make the menu slide open (from closed) on page load.....and (you guess it!) return to closed stage when page is not being viewed. I know this may look impossible but I might get lucky is what I think !!
    Last edited by tech_support; 04-11-2007 at 09:39 AM. Reason: Moved your post.

  2. #2
    Join Date
    Feb 2007
    Location
    🌎
    Posts
    528
    Thanks
    10
    Thanked 10 Times in 10 Posts
    Blog Entries
    2

    Default

    I don't think that sounds possible. The problem arises with:
    Quote Originally Posted by Timi
    return to closed stage when page is not being viewed
    ....(o_ Penguins
    .---/(o_- techno_racing
    +(---//\-' in
    .+(_)--(_)' The McMurdo 500

  3. #3
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    The reason it stays open is because of cookies.
    Set the variable:
    Code:
    myMenu.remember = true;
    to false.
    It shouldn't store the cookies now, thus making it close on page exit.
    - Mike

  4. #4
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks.......how do I get it to slide open on page load ?

  5. #5
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Add this:
    Code:
    myMenu.expandAll();
    to your code.

    You need to replace myMenu with your one.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  6. #6
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello and thanks alot for this cool menu. I have a problem with the menu when i try to add an image map(created with fireworks) to my web page with the dsmenu loaded.The image map is working correcly but the dsmenu won't.All the css of the menu is correct, the only thing is that the menu won't collapse or open.It stays static.Here is the code from the image map.
    Javascript
    Code:
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
    
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
    
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    </script>
    code from the body
    Code:
    <body onload="MM_preloadImages('../map/images/agathonisi.gif','../map/images/slice_r3_c9.gif','../map/images/slice_r3_c15.gif','../map/images/agathonisi_f4.gif','../map/images/slice_r3_c9_f6.gif','../map/images/slice_r3_c15_f4.gif','../map/images/loipsoi.gif','../map/images/slice_r4_c9.gif','../map/images/loipsoi_f4.gif','../map/images/slice_r3_c9_f4.gif','../map/images/slice_r4_c9_f4.gif','../map/images/patmos.gif','../map/images/patmos_f4.gif','../
    map/images/leros.gif','../map/images/slice_r9_c7.gif','../
    map/images/kalumnos.gif','../map/images/leros_f4.gif','../map/images/
    slice_r9_c7_f4.gif','../map/images/kalumnos_f6.gif','../map/images/
    slice_r9_c16.gif','../map/images/slice_r10_c8.gif','../map/images/
    slice_r11_c8.gif','../map/images/kos.gif','../map/images/slice_r11_c18.gif','../
    map/images/kalumnos_f4.gif','../map/images/slice_r9_c16_f4.gif','../
    map/images/slice_r10_c8_f4.gif','../map/images/slice_r11_c8_f4.gif','../
    map/images/kos_f6.gif','../map/images/slice_r11_c18_f4.gif','../map/images/
    slice_r12_c10.gif','../map/images/kos_f4.gif','../map/images/
    slice_r12_c10_f4.gif','../map/images/astupalaia.gif','../map/images/
    astupalaia_f4.gif','../map/images/sumh.gif','../map/images/sumh_f4.gif','../
    map/images/nisuros.gif','../map/images/nisuros_f4.gif','../map/images/
    tulos.gif','../map/images/tulos_f4.gif','../map/images/rodos.gif','../map/
    images/slice_r23_c22.gif','../map/images/slice_r23_c25.gif','../map/images/
    rodos_f4.gif','../map/images/slice_r23_c22_f6.gif','../map/images/
    slice_r23_c25_f4.gif','../map/images/xalki.gif','../map/images/xalki_f4.gif','../
    map/images/karpathos.gif','../map/images/slice_r24_c22.gif','../map/images/
    slice_r25_c12.gif','../map/images/Kastelorizo.gif','../map/images/
    slice_r27_c21.gif','../map/images/karpathos_f4.gif','../map/images/
    slice_r23_c22_f4.gif','../map/images/slice_r24_c22_f4.gif','../map/images/
    slice_r25_c12_f4.gif','../map/images/Kastelorizo_f6.gif','../map/images/
    slice_r27_c21_f4.gif','../map/images/slice_r25_c25.gif','../map/images/
    Kastelorizo_f4.gif','../map/images/slice_r25_c25_f4.gif','../map/images/
    kasos.gif','../map/images/kasos_f4.gif')">

  7. #7
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    someone please?

  8. #8
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I was also wondering if it is possible to remove the arrow if the is no item in subcatecory.

  9. #9
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by alejandro52 View Post
    I was also wondering if it is possible to remove the arrow if the is no item in subcatecory.
    ya same here

    also can weget it to have sub sections
    this navi bar has unlimited subsections in it
    http://www.dynamicdrive.com/dynamici...menu/index.htm
    i really move this navi bar
    i only reason i dont like it, is cuz u cant have sub sections
    plz add subsections

  10. #10
    Join Date
    Sep 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I can't seem to get the menu to slide down when you click them... can anyone help?

    www.wendricksrealestate.com

    Thanks

Bookmarks

Posting Permissions

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