Check out OverLib http://www.bosrup.com/web/overlib/ Cutter http://www.falcon-knives.com ----Original Message Follows---- From: "Golden Troll" <gtroll at qwest.net> Reply-To: javascript at LaTech.edu To: "Javascript Weenie" <javascript-weenie at lists.webdevelopersjournal.com>, <javascript at LaTech.edu> Subject: [Javascript] child nodes and the such Date: Sat, 29 Dec 2001 21:49:57 -0800 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 theLink = document.getElementsByTagName("a"); for (var i = 0; i <= document.getElementsByTagName("a").length; i++) { // if (document.getElementsByTagName("a")[i].childNodes){ if ( document.getElementsByTagName("a")[i].childNodes[0].nodeName = "IMG"){ document.getElementsByTagName("a")[i].childNodes[0].title = "Click to Enlarge"; } // } } getImages() } I need this to work in NN6 and IE5+ Can y'all help? BTW did you know Opera6 is W3C DOM compliant? Peace and Respects, Scott Gahres hemp at goldentroll.com http://goldentroll.com _______________________________________________ Javascript mailing list Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx