wonker
06-25-2007, 11:08 AM
Hello I have juste descovered your forum and it seems very interesting !
My problem is actually quite complicated :
This is what I have done already :
I've got a menu on the left and the same menu but with different layout at the top.
So far I have used CSS hover to achieve a change of background and color of
text with le left menu
And also CSS hover ro change color of text of top menu.
And I have used javascript to make a distinct rollover image that changes when you mouse over the left menu different items.
This is what I want to do :
Make the top menu's respective items change color when I point the mouse over the left men's items.
Quite easy except that the CSS hover does no longer work after this so I have had to replace css hover with javascript and I also want the oposit to work, when I point the mouse over an item on the top menu, I want the text, background and icon of left menu to change as if I had passed the mouse over the left menu item...
Each time I add a javascript, the CSS stop's working... should I remove all CSS for this hover or is there another way to do this? because it seems like I need alot of code to get anywhere (3 commands for mouseover and 3 for mouseout per item in top menu ....)
I'm new to javascript, and advice about achieving this with the minimum code would be greatfull !
Also, I'm not sure if it's because I have not uploaded it yet but with firefox only the first javascript command seems to work ...
IE if I use :
<a href="#" onmouseover="distance.src=image2.src;dist1.style.color='#CCC' ... </a>
it works fine with IE but with firefox, the image changes to image2.src but the text colour of dist1 does not change...
Thanks ;)
My problem is actually quite complicated :
This is what I have done already :
I've got a menu on the left and the same menu but with different layout at the top.
So far I have used CSS hover to achieve a change of background and color of
text with le left menu
And also CSS hover ro change color of text of top menu.
And I have used javascript to make a distinct rollover image that changes when you mouse over the left menu different items.
This is what I want to do :
Make the top menu's respective items change color when I point the mouse over the left men's items.
Quite easy except that the CSS hover does no longer work after this so I have had to replace css hover with javascript and I also want the oposit to work, when I point the mouse over an item on the top menu, I want the text, background and icon of left menu to change as if I had passed the mouse over the left menu item...
Each time I add a javascript, the CSS stop's working... should I remove all CSS for this hover or is there another way to do this? because it seems like I need alot of code to get anywhere (3 commands for mouseover and 3 for mouseout per item in top menu ....)
I'm new to javascript, and advice about achieving this with the minimum code would be greatfull !
Also, I'm not sure if it's because I have not uploaded it yet but with firefox only the first javascript command seems to work ...
IE if I use :
<a href="#" onmouseover="distance.src=image2.src;dist1.style.color='#CCC' ... </a>
it works fine with IE but with firefox, the image changes to image2.src but the text colour of dist1 does not change...
Thanks ;)