|
#1
|
|||
|
|||
|
1) Script Title: Scrollable Menu Links
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...rollerlink.htm 3) Describe problem: in IE if you enlarge the text or make text smaller the menu of links jumps when you move the cursor over the arrows. this is not something that i have done wrong because it happens with the demo on the code page. does anyone know how to stop this happening. thanks nikki Last edited by webwonder; 08-07-2008 at 08:03 PM. Reason: i also forgot to ask i wish to highlight what page the user is on by changing the link colour - is this possible? |
|
#2
|
|||
|
|||
|
ok i have sorted that problem out now i just set the height in the style sheet and it fixed the problem,
I have another problem and was wondering if anyone can help how would i set the colour of the current link to a different colour |
|
#3
|
|||
|
|||
|
CSS. or:
var menucontents='<nobr><a href="http://www.dynamicdrive.com"><font color="#00FFFF">Dynamic Drive</font></a> | |
|
#4
|
|||
|
|||
|
thankyou for your response i wish to change the colour of the link with each relevant page, not just the one link.
with css i would use for example - how would i incorporate this type of thing. #thispage a:link, #thispag a:visited,#thispag a:hover, #thispag a:active {color:#66AFFF;} thanks |
|
#5
|
|||
|
|||
|
Its here:
write('<div style="position:relative;width:'+menuwidth+'px;height:'+menuheight+'px;overflow:hidden;">') write('<div id="test2" style="position:absolute;left:0;top:0">') write('</div></div>') change #thispage to #test2 or add a class in the div tag and use this: .thispage instead of this #thispage and add like this: write('<div id="test2" class="thispage" style="position:absolute;left:0;top:0">') |
|
#6
|
|||
|
|||
|
i tried what you said, both ways, but it still does not create the current page state.
|
|
#7
|
|||
|
|||
|
Oh ok, I misunderstood what you wanted. you would then need to use css and give each page an unique id. so for instance if you have "About Us" page you would then make an id for that page like so:
<body id="about"> With the markup in place, you need to write one or more CSS rules to match the body id: something like this #about #linkabout a { color:#FF3300; } and markup the link something like this: var menucontents='<nobr><span id="linkabout"><a href="about.htm">About Us</a></span> | Its a crude way to do it but should be what you wanted using this menu. Last edited by speedracer; 08-07-2008 at 11:42 PM. |
| The Following User Says Thank You to speedracer For This Useful Post: | ||
webwonder (08-10-2008) | ||
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|