If you're using them as inline styles simply remove the curly braces.
As for the image do the same and add a space between the colon and 'url'.
- style="background-image: url('location');"
Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
oo.... thats working now!!
Thanks a lot!!! :)
Can you please tell me one more thing...
[HTML]<a class="button" id="ax1" href="javascript
:void(0)" onclick='edit('x1')"> Edit </a>[/HTML]
and function edit(id) is
- function edit(id) {
-
var anc = document.getElementById('a'+id);
-
anc.innerHTML = anc.innerHTML==" Save " ? " Edit " : " Save ";
-
}
This is working fine with Firefox and IE, ie, the name of the A element gets changed from ' Save ' to ' Edit ' and ' Edit ' to ' Save ' on every click. But Opera and Safari are not doing any change.
If I remove the
from both, then its working fine with all.
But since its a button kind of look, so I need to give space on both sides of the name.
How can I solve this?