Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-07-2006, 10:37 PM iframe help
Average Talker

Posts: 18
Trades: 0
I am using Dreamweaver 8 and I wanted to show visitors, a porfolio of my website designs. So I want visitor to click on a small image picture and a larger image appears the left of the small image. I was wondering if I should use an iframe to do this or is there a simpler way to do this.

I tried to use the iframe approach, but when I click on the small picture, no large picture appears. I don't know how to set up the iframe properties such as the Layer ID = iFrame or z-index=0. I have attached the code below: -

<div id="iFrame1" style="position:absolute alt="" align="left" class="left"; z-index:0">
<iframe name="iFrame1" width=197 height=152 src="iframe.html" scrolling="no" frameborder="0"></iframe>
</div>

<div id="image1" style="position:absolute; overflow:hidden; left:643px; top:283px; width:60px; height:48px; z-index:1"><a href="iframe.html#bookmark1" target="iFrame1"><img src="../images/Pic Images/DSCF2719-small-framed.jpg" border=0 width=60 height=48></a></div>
<div id="image2" style="position:absolute; overflow:hidden; left:643px; top:336px; width:60px; height:48px; z-index:2"><a href="iframe.html#bookmark2" target="iFrame1"><img src="../images/Pic Images/BE-small-framed.jpg" border=0 width=60 height=48></a></div>
<div id="image3" style="position:absolute; overflow:hidden; left:643px; top:387px; width:60px; height:48px; z-index:3"><a href="iframe.html#bookmark3" target="iFrame1"><img src="../images/Pic Images/WBL-small-framed.jpg" border=0 width=60 height=48></a></div>
<br>

Could you please help me?

Thank you in advance.

wire_jp

Last edited by wire_jp; 08-08-2006 at 06:37 AM..
wire_jp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-07-2006, 11:58 PM Re: iframe help
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
The basics of what you've done looks right assuming you have a file named iframe.html that's located in the same folder as the main file that contains the code.

A couple of things I noticed. In <div id="IFrame"> the way you have the syle set is off. You're mixing html attributes with the css. The alt and class need to be outside of the style="" and there isn't css style align property. It would be text-align in css.

<div id="iFrame1" class="left" style="position:absolute; text-align=left; z-index:0">

would work as css, but when I look at it the div as you have set up it isn't really doing anything. I think you can probably remove it safely. It's also possible using the same value for the id on the div and the name on the iframe is causing problems.

Another thing is you mentioned wanting to display images in the iframe. I'm not sure then why you're linking to an html file. Wouldn't you just link directly to the images that you want to show?
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-08-2006, 01:33 AM Re: iframe help
Average Talker

Posts: 18
Trades: 0
Thanks, vangogh for the help. I made some changes but now an "x" shows up in the iframe (refer to the attached screenshot). I have the iframe.html in the same folder as the main file which contains the code. The code is attached below:

<div id="iFrame1" style="position:absolute; left:430px; top:312px;z-index:0">
<iframe name="iFrame1" width=197 height=152 src="iframe.html" scrolling="no" frameborder="0"></iframe>
</div>

<div id="image1" style="position:absolute; overflow:hidden; left:644px; top:312px; width:60px; height:48px; z-index:1"><a href="iframe.html#bookmark1" target="iFrame1"><img src="../images/Pic Images/DSCF2719-small-framed.jpg" border=0 width=60 height=48></a></div>
<div id="image2" style="position:absolute; overflow:hidden; left:644px; top:363px; width:60px; height:48px; z-index:2"><a href="iframe.html#bookmark2" target="iFrame1"><img src="../images/Pic Images/BE-small-framed.jpg" border=0 width=60 height=48></a></div>
<div id="image3" style="position:absolute; overflow:hidden; left:644px; top:415px; width:60px; height:48px; z-index:3"><a href="iframe.html#bookmark3" target="iFrame1"><img src="../images/Pic Images/WBL-small-framed.jpg" border=0 width=60 height=48></a></div>
<br>

Thanks,

wire_jp

Last edited by wire_jp; 08-08-2006 at 06:35 AM..
wire_jp is offline
Reply With Quote
View Public Profile
 
Old 08-08-2006, 06:38 AM Re: iframe help
Average Talker

Posts: 18
Trades: 0
I managed to get the problem solve. Thanks for the help.

Cheers,

wire_jp
wire_jp is offline
Reply With Quote
View Public Profile
 
Old 08-10-2006, 12:34 AM Re: iframe help
bretrichter's Avatar
Experienced Talker

Posts: 42
Trades: 0
Maybe you could help me then!

Iv poster http://www.webmaster-talk.com/websit...re-better.html
please help
bretrichter is offline
Reply With Quote
View Public Profile Visit bretrichter's homepage!
 
Old 08-10-2006, 07:23 AM Re: iframe help
Average Talker

Posts: 18
Trades: 0
Someone pointed me to these links below (I found the second link easier to use): -

You could do something like this using the Set Text of Layer behaviour in DW
http://www.dreamweaverresources.com...textoflayer.htm

or if you find that too difficult the Showpic extension maybe what you need:
http://www.projectseven.com/extensi...w_pic/index.htm

wire_jp is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to iframe help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34084 seconds with 12 queries