•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 327,776 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,589 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 361 | Replies: 1
![]() |
here is how to do it in javascript:
html Syntax (Toggle Plain Text)
<!-- your image --> <img src="YOUR_THUM_IMAGE_PATH" onclick="javascript:fillDiv('YOUR_BIG_IMAGE_PATH','div1');" /> <div id="div1" style="width:100; border:thick; display:inline;">click the image to make new image appear here</div> <script type="text/javascript"> function fillDiv(imgurl, div){ document.getElementById(div).innerHTML="<img src='"+imgurl+"' />"; } </script>
toast
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Drop down list Selected Value - Current Page
- Next Thread: ALERT and JAVA Script


Linear Mode