Hey guys. I have a thumbnail gallery that replaces the src of the main image onclick. What I would like to do is display the title attribute (or even better yet if possible, an html snippet unique to each image) when the new image is placed. The thumbnail gallery switcher works fine, but I can't get the title attribute to display. I tried this method:
Any ideas? If its not too difficult I'd prefer the unique html snippet, but if its a hassle this will be fine. Thank you guys!Code:<div id="large"><img src="images/1.jpg" id="large" title="image 1" name="ID#-04" alt="fda" /> </div> <script type="text/javascript"> document.write(document.getElementById("large").title); </script>


Reply With Quote
Bookmarks