Hi site point people,
I have been playing with javascript and I have one issue I can't workout. below in my code on a click the td will change
its background image and text color. The issue I have I can't get the color to work but the image is find. Any help would be
great thanks
Code:<td> <a href="javascript:cont(specialId)" class="position-one"><span>water</span></a> </td>Code:function cont(specialId){ document.getElementById(specialId).style.backgroundImage = "url(select-buttons/selected.png)"; document.getElementById(specialId).style.color = "orange"; }



Reply With Quote
, then you would also need to wrap the argument in your call to cont in quotes.

Bookmarks