Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 2nd, 2005, 02:01 PM
normh normh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 19 normh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 56 sec
Reputation Power: 0
Layer in Dreamweaver Loading

Hello,

Question using layer in Dreamweaver, I am trying to make a "photo gallery” what I want to do is have thumb nails and when you click on a thumb nail it will show a layer that have a bigger image on it. I have made the whole page, however when the page loads it has to load all of the layers first, which can take a while.

Is there a way to have layers not load on page load but to load on showing a layer?

If not any other ideas on making a good "photo gallery" that would be easy to add to?

Thanks,

Norman

Reply With Quote
  #2  
Old February 3rd, 2005, 12:07 AM
ibejohn's Avatar
ibejohn ibejohn is offline
fan boy..................
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Santa Monica,California
Posts: 286 ibejohn User rank is Private First Class (20 - 50 Reputation Level)ibejohn User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 15 h 46 m 44 sec
Reputation Power: 5
Well i guess you could use some javascript for this.
Make a function that uses "document.write" to write in the img scr in the layer when the thumbnail is clicked.

Reply With Quote
  #3  
Old February 3rd, 2005, 12:42 AM
fln_admin fln_admin is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 6 fln_admin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 39 sec
Reputation Power: 0
Code:
<script language="javascript" type="text/javascript">
<!--
   function ShowLargerImg(image)
   {
      document.images.largePic.src = 'whateversourceyouwant.gif';
      // Call function to show layer here
   }
-->
</script>

<div id="PicLayer">
   <img name="largePic" src="blank.gif" />
</div>
<a href="javascript:ShowLargerImg('vacation.gif')>Vacaction Pic</a>


This shouldn't be used directly in your code but it's basically an example. What you want to do is have the image in a layer and maybe when the page first loads, you want to use a blank image.

You can also incorporate a preloader into the function if you wanted to so that it doesn't show the image before it loads.

Last edited by edwinbrains : February 3rd, 2005 at 02:35 PM.

Reply With Quote
  #4  
Old February 3rd, 2005, 02:35 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 39 m 19 sec
Reputation Power: 92
fln_admin: I added [code] tags around your code to make it easier to read. You may like to do this in the future.
__________________
- Edwin -

The General Rules Thread | The General FAQ Thread

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Layer in Dreamweaver Loading


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway