Anita2105
10-31-2009, 11:11 AM
Hi,
I've designed a really nice looking thumbnail gallery and found a way to display the linked images within an iframe. The divs, iframe, thumbnails and main pictures are all styled with css and everything works perfectly. It is important that the pictures open within the page itself and not as a lightbox. I would prefer to open the pictures in a div but it is too difficult for me at this stage so an iframe does the trick just fine. I want simplicity since I'm doing a mock-up for an online store.
This is my current problem - I want the first thumbnail's linked picture (tr1a) to pre-load and visible in the iframe when the page is loaded. I don't want the iframe to be a 550 x 450 white block of empty space. Here is the code for the thumbnails and the iframe:
<div id="maincontent">
<div id="iframewrap">
<iframe name="picframe" scrolling="No" frameborder="0" id="picframe"></iframe>
</div>
<a href="pictures/citylimits/tr1a.jpg" target="picframe"><img src="pictures/citylimits/tr1a_s.jpg" class="picframe" width="65" height="49" /></a>
<a href="pictures/citylimits/tr1b.jpg" target="picframe"><img src="pictures/citylimits/tr1b_s.jpg" class="picframe" width="65" height="49" /></a>
<a href="pictures/citylimits/tr1c.jpg" target="picframe"><img src="pictures/citylimits/tr1c_s.jpg" class="picframe" width="65" height="49" /></a>
<a href="pictures/citylimits/tr1d.jpg" target="picframe"><img src="pictures/citylimits/tr1d_s.jpg" class="picframe" width="65" height="49" /></a>
</div>
So, can I accomplish this with css or do I have to use a script?
Can anyone help?
The client is breathing all over my neck!
Anita.
I've designed a really nice looking thumbnail gallery and found a way to display the linked images within an iframe. The divs, iframe, thumbnails and main pictures are all styled with css and everything works perfectly. It is important that the pictures open within the page itself and not as a lightbox. I would prefer to open the pictures in a div but it is too difficult for me at this stage so an iframe does the trick just fine. I want simplicity since I'm doing a mock-up for an online store.
This is my current problem - I want the first thumbnail's linked picture (tr1a) to pre-load and visible in the iframe when the page is loaded. I don't want the iframe to be a 550 x 450 white block of empty space. Here is the code for the thumbnails and the iframe:
<div id="maincontent">
<div id="iframewrap">
<iframe name="picframe" scrolling="No" frameborder="0" id="picframe"></iframe>
</div>
<a href="pictures/citylimits/tr1a.jpg" target="picframe"><img src="pictures/citylimits/tr1a_s.jpg" class="picframe" width="65" height="49" /></a>
<a href="pictures/citylimits/tr1b.jpg" target="picframe"><img src="pictures/citylimits/tr1b_s.jpg" class="picframe" width="65" height="49" /></a>
<a href="pictures/citylimits/tr1c.jpg" target="picframe"><img src="pictures/citylimits/tr1c_s.jpg" class="picframe" width="65" height="49" /></a>
<a href="pictures/citylimits/tr1d.jpg" target="picframe"><img src="pictures/citylimits/tr1d_s.jpg" class="picframe" width="65" height="49" /></a>
</div>
So, can I accomplish this with css or do I have to use a script?
Can anyone help?
The client is breathing all over my neck!
Anita.