Results 1 to 4 of 4

Thread: ScrollSpy Menu - How highlight selected item as all div

  1. #1
    Join Date
    Jan 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question ScrollSpy Menu - How highlight selected item as all div

    Hi,

    I am going to use ScrollSpy Menu on my website, but I need highlight all div and ScrollSpy Menu highlight only link (font).

    My experiences with Javascript are small and I don't know, how do this.

    Could anyone help me ?

    I post image for a better idea.

    Click image for larger version. 

Name:	menu.jpg 
Views:	203 
Size:	10.2 KB 
ID:	5336

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,030
    Thanks
    44
    Thanked 3,211 Times in 3,173 Posts
    Blog Entries
    12

    Default

    .
    Warning: Please include a link to the DD script(s) in question in your post. See this post for more information.

    Please include a link to the page on your site that contains the problematic code so we can check it out.
    Last edited by jscheuer1; 01-31-2014 at 01:08 PM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Sorry

    Quote Originally Posted by jscheuer1 View Post
    .
    Warning: Please include a link to the DD script(s) in question in your post. See this post for more information.

    Please include a link to the page on your site that contains the problematic code so we can check it out.
    Sorry, here it is:

    Script: DD ScrollSpy Menu
    http://www.dynamicdrive.com/dynamici...ollspymenu.htm

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,030
    Thanks
    44
    Thanked 3,211 Times in 3,173 Posts
    Blog Entries
    12

    Default

    Without seeing your page, I still cannot be specific. But let's say you're using the ddscrollspydemo.css file and the default highlight class of "selected". In that case you would use a text only editor like NotePad to edit the ddscrollspydemo.css file to add the background color desired:

    Code:
    ul.underlinemenu li a:hover, ul.underlinemenu li a.selected{
    color: white;
    background-color: lightblue;
    }
    The above assumes that "underlinemenu" is the class of your menu. If it's something else, use that.

    If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Simple Tree Menu: Indicate selected Item
    By beedrew in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 06-19-2012, 12:37 AM
  2. highlight current menu item(s)
    By kaveman in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 11-21-2011, 03:35 AM
  3. How can I highlight clicked menu item?
    By mojobullfrog in forum JavaScript
    Replies: 1
    Last Post: 01-28-2010, 12:17 AM
  4. Replies: 0
    Last Post: 05-29-2009, 07:19 PM
  5. Replies: 0
    Last Post: 09-15-2007, 02:31 AM

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
  •