Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] child nodes and the such
- From: javascript@xxxxxxxxxx (Peter-Paul Koch)
- Subject: [Javascript] child nodes and the such
- Date: Sun, 30 Dec 2001 11:07:24 +0000
>I'm trying to write a function to add title tool tips to each of my
>images that are linked to bigger images I've tried the following
>function and it doesn't seem to work
>//
>function getImages(){
var imgs = document.getElementsByTagName('IMG');
for (var i=0;i<imgs.length;i++)
if (imgs[i].parentNode.tagName == 'A')
imgs[i].title = 'The title';
ppk
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
- Prev by Date: [Javascript] child nodes and the such
- Next by Date: [Javascript] Can I tell when an animated Gif is finished?
- Previous by thread: [Javascript] child nodes and the such
- Next by thread: [Javascript] child nodes and the such
- Index(es):