[Javascript] child nodes and the such
Peter-Paul Koch
gassinaumasis at hotmail.com
Sun Dec 30 05:07:24 CST 2001
>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
More information about the Javascript
mailing list