this js funciton:
function(strIDHead) {
var leftTD = document.getElementById(strIDHead + "_left");
if (leftTD != null) {
leftTD.background = "Images/Button/button_left.gif";
}
}
can only work in ie,i want it work in firefox,how to do it?
ps:i tried
if (leftTD != null) leftTD.background = "url(/Images/Button/button_left.gif)";
cant work either…
Try this:
Or if you can use jQuery (whole function, not just the last line):
Update: Your function header is incorerct, too, unless you want an anonymous function and just forgot to copy the code where it’s assigned somewhere. The correct function would looke like this: