Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] child nodes and the such
- From: javascript@xxxxxxxxxx (Cutter Bl)
- Subject: [Javascript] child nodes and the such
- Date: Mon, 31 Dec 2001 08:58:00 -0500
Check out OverLib http://www.bosrup.com/web/overlib/ Cutter http://www.falcon-knives.com ----Original Message Follows---- From: "Golden Troll" <gtroll@xxxxxxxxx> Reply-To: javascript@xxxxxxxxxx To: "Javascript Weenie" <javascript-weenie@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>, <javascript@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx http://goldentroll.com _______________________________________________ Javascript mailing list Javascript@xxxxxxxxxx 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
- Prev by Date: [Javascript] unsubscribe
- Previous by thread: [Javascript] child nodes and the such
- Next by thread: [Javascript] Can I tell when an animated Gif is finished?
- Index(es):