[thelist] Adding title with css

Tim Beadle tim.beadle at iop.org
Thu Jun 24 04:53:13 CDT 2004


On Thu, 2004-06-24 at 10:31, Andreas Wahlin wrote:
> ul.pdf a {
> 	title: "PDF-link";
> }
> 
> Is something like this possible?
> Then defining a list of pdf documents would be as simple as

This is possible, but not with CSS. You want to look at using DOM
scripting (JavaScript, essentially), to add that information.

You script (not sure exactly what it would look like - there are others
on the list who could help) would traverse your document looking for <a>
tags where the href contained ".pdf". When it finds one, it would add
the title attribute to the tag.

Regards,

Tim
-- 
Tim Beadle <tim.beadle at iop.org>




Institute of Physics
Registered charity No. 293851
76 Portland Place, London, W1B 1NT, England

IOP Publishing Limited
Registered in England under Registration No 467514.
Registered Office: Dirac House, Temple Back, Bristol BS1 6BE England

This e-mail message has been checked for the presence of computer viruses.



More information about the thelist mailing list