View Single Post
  #9 (permalink)  
Old 04-12-06, 06:49 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
This code should do the trick. Not tested though.
Code:
...
Note that neither of the scripts will work if the user has disabled javascript. It might also not work in some old browsers because of getElementById.

I'd want to run them onload since it might not catch all links/images otherwise.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.

Last edited by TwoD; 04-14-06 at 05:35 AM. Reason: Removed bad code to avoid confusion.
Reply With Quote