PDA

View Full Version : ScrollSpy Menu - How highlight selected item as all div



jiriranc
01-31-2014, 11:15 AM
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.

5336

jscheuer1
01-31-2014, 01:57 PM
.
Warning: Please include a link to the DD script(s) in question in your post. See this post (http://www.dynamicdrive.com/forums/showpost.php?p=7) for more information.
Please include a link to the page on your site that contains the problematic code so we can check it out.

jiriranc
01-31-2014, 02:22 PM
.
Warning: Please include a link to the DD script(s) in question in your post. See this post (http://www.dynamicdrive.com/forums/showpost.php?p=7) 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/dynamicindex1/ddscrollspymenu.htm

jscheuer1
01-31-2014, 04:01 PM
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:


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.