User Name Password Register
DaniWeb IT Discussion Community
All
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 361,919 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,540 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: 435 | Replies: 1
Reply
Join Date: Mar 2008
Posts: 1
Reputation: DWSandyS is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
DWSandyS DWSandyS is offline Offline
Newbie Poster

Easy w Frames tough w CSS

  #1  
Mar 24th, 2008
I am new to Dreamweaver, and stumped. Though I can do it easily with frames I cant get CSS to allow user to click on one of several thumbnails in a left column and show larger image of the clicked thumb in the main area of the SAME page. Is it possible? Thanks for helping.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2007
Location: georgia
Posts: 55
Reputation: hunkychop is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
hunkychop's Avatar
hunkychop hunkychop is offline Offline
Junior Poster in Training

Re: Easy w Frames tough w CSS

  #2  
Mar 24th, 2008
here is how to do it in javascript:

  1. <!-- your image -->
  2. <img src="YOUR_THUM_IMAGE_PATH" onclick="javascript:fillDiv('YOUR_BIG_IMAGE_PATH','div1');" />
  3. <div id="div1" style="width:100; border:thick; display:inline;">click the image to make new image appear here</div>
  4.  
  5. <script type="text/javascript">
  6. function fillDiv(imgurl, div){
  7. document.getElementById(div).innerHTML="<img src='"+imgurl+"' />";
  8. }
  9. </script>
toast
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 10:14 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC