Go Back   Dynamic Drive Forums > DD Scripts > Dynamic Drive scripts help
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 08-07-2008, 07:49 PM
webwonder webwonder is offline
Junior Coders
 
Join Date: Aug 2008
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default Scrollable Menu Links moves in ie

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?
Reply With Quote
  #2  
Old 08-07-2008, 08:46 PM
webwonder webwonder is offline
Junior Coders
 
Join Date: Aug 2008
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #3  
Old 08-07-2008, 09:57 PM
speedracer speedracer is offline
Junior Coders
 
Join Date: Jan 2005
Location: Seattle
Posts: 53
Thanks: 0
Thanked 1 Time in 1 Post
Default

CSS. or:

var menucontents='<nobr><a href="http://www.dynamicdrive.com"><font color="#00FFFF">Dynamic Drive</font></a> |
Reply With Quote
  #4  
Old 08-07-2008, 10:06 PM
webwonder webwonder is offline
Junior Coders
 
Join Date: Aug 2008
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #5  
Old 08-07-2008, 10:24 PM
speedracer speedracer is offline
Junior Coders
 
Join Date: Jan 2005
Location: Seattle
Posts: 53
Thanks: 0
Thanked 1 Time in 1 Post
Default

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">')
Reply With Quote
  #6  
Old 08-07-2008, 10:43 PM
webwonder webwonder is offline
Junior Coders
 
Join Date: Aug 2008
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default

i tried what you said, both ways, but it still does not create the current page state.
Reply With Quote
  #7  
Old 08-07-2008, 11:29 PM
speedracer speedracer is offline
Junior Coders
 
Join Date: Jan 2005
Location: Seattle
Posts: 53
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
The Following User Says Thank You to speedracer For This Useful Post:
webwonder (08-10-2008)
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:34 PM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.