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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to highlight popup menu item of current page?

    I've added a popup menu for each page of my site. The popup menu has several menu items which are linked to other pages of the same site.

    Can I have the menu item for current page to be highlighted?

    Thanks!

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Provo, UT
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts

    an idea

    I had to use a redirect script in one of my pages. I think you might be able to do something similar to highlight the link.

    Code:
    if (top.location.toString().indexOf("YourPage.html")>= 0){//checks what page your on by looking at the address bar.  
    
    //here write a script that changes the color of the link or menu
    	
    }
    I hope tis helps I know it isn't the exact script but it is an idea that might help. Have Fun

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, MikoLone. You idea does work. It is a nice way to do that!

    But I still have a problem. Attached is the .js file I use for this popup menu. The problem is that: there is one more "undefined" item at the top of the popup menu. I guess it means I haven't define the menu items. But I do define them and they appear right after "undefined".

    This is the URL for one of the pages contains this popup menu.
    http://amcis2005.isqa.unomaha.edu/leisure.htm

    Do you have any idea of this problem?Thank you!
    Attached Files Attached Files


  •  

    Posting Permissions

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