Can CSS be used to change the title attribute in this img tag to something more pleasant than P10305…? All the images I need to target are in tables (as shown below)
I would like to change all image title attribute in a website to the name of the company. Is it possible?
<td><img border="0" title="THIS THING HERE" src="http://the website I'm working on.jpg" /></td>
Many thanks
Mike
This isn’t possible with CSS, as CSS only affects styles. What you’re asking for is a content change.
The change you want is possible with Javascript, however. If you happen to be using Prototype, it’s pretty easy:
jQuery should make this similarly easy too.
Hope that helps!