Dear friends
I have a script that puts a different css color and background image onto a menu for the link that has been clicked to open an iframe. This works fine, but because elements of the menu have to already have fixed css !important specifications, the javascript css modification is not 'as strong' as that.
The relevant part of the script is
Code:
for(var i = 0; i < as.length; i++) {
as[i].style.color = 'white'; //default text color
as[i].style.background = '#2175BC'; //default backgroundcolor
if(as[i].href.toLowerCase() == pagename.toLowerCase()) {
as[i].style.background = 'url(http://www.internetevangelismday.com/images/arrowlargeyellow.gif) no-repeat left blue'; //desired highlight bg colour second level menu
}
The value I would like to apply !important strength to is the background image item. Adding !important to the line itself does not work. It might carry a bit more strength too if the background color blue was separated from the background image. Can you see any way to do this?
Best wishes and thanks
Tony
|