SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2005
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help : cookie with javascript

    hi all,

    I am using simple show/hide layers for menus, what I want is to use cookie so that if any menu is open it should remain open if a visitor goes to another page, and the open link text should be in BOLD, I tried a couple things, but I cant get it work, here I need your help please..

    please download my menu.html files here
    http://rapidshare.com/files/59123696/menu.html

    below is the function I am using for show / hide layer..

    <script>
    function showhide(id){
    if (document.getElementById){
    obj = document.getElementById(id);
    if (obj.style.display == "none"){
    obj.style.display = "";
    } else {
    obj.style.display = "none";
    }
    }
    }
    </script>
    thanks for looking at this thread.

  2. #2
    SitePoint Evangelist bals28mjk's Avatar
    Join Date
    Aug 2007
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


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
  •