document.getElementById, Need help in coding "document.getElementById" codes |
document.getElementById, Need help in coding "document.getElementById" codes |
bjcombs |
Sep 9 2007, 03:30 PM
Post
#1
|
Group: Members Posts: 7 Joined: 6-September 07 Member No.: 3,738 |
This code i have basically creates a photoalbum. I want to do the same concept idea but with Text (ie. Name of a person) instead of a thumbnail, and when clicked on i want A: Text to appear, or B: a image to appear.
I have a example of the photoalbum on this page: http://woah.a.avalible.address.googlepages.com please review and let me know. Thanks. <div style="TEXT-ALIGN: center" closure hashCode> <div id="viewPort" style="OVERFLOW-Y: scroll; FLOAT: left; OVERFLOW-X: hidden; WIDTH: 240px; HEIGHT: 400px; a: " closure hashCode> <table cellpadding="0" border="0" closure hashCode><tbody closure hashCode><tr closure hashCode><td nowrap closure hashCode><br><br><img onclick="document.getElementById('template1').src='THUMBNAIL URL'" tabindex="0" src="URL of BIG IMAGE" closure hashCode GALLERYIMG="no"><br> </td></tr></tbody></table> </div> </div> <p style="TEXT-ALIGN: center"></p> <br> <p style="TEXT-ALIGN: center" closure hashCode><img id="bigpic" style="BORDER-RIGHT: black 6px solid; BORDER-TOP: black 6px solid; BORDER-LEFT: black 6px solid; BORDER-BOTTOM: black 6px solid" tabindex="0" height="291" alt="PhotoAlbum" src="image9.jpg/image9-large.jpg" width="388" closure hashCode closure hashCode GALLERYIMG="no"><br></p> |
Lo-Fi Version | Time is now: 24th April 2024 - 03:14 AM |