HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
How to set "button" to link page with "iframe
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
Aliya1725



Joined: 21 May 2008
Posts: 3

PostPosted: Wed May 21, 2008 2:53 am     How to set "button" to link page with "iframe Reply with quote

To someone who can answer my question

First I have to sorry about my English!

This is my problem, please go to this site www.designparty.com/member/510805wad
on "Travel Guide" page, I use iframe to link to other website.

1. I want to make the "object" in iframe shown after click "Travel Guide" button not when I click sub-menu button on the left side.

2. How can I set the link for this case to other html page (index, gallery and aboutus)?

I try to find the answer all day (-_-')

Could you please answer my question?
Thanks in advance.[/b]
sticks464



Joined: 31 Dec 2006
Posts: 914

PostPosted: Wed May 21, 2008 4:30 am     Reply with quote

Do it the same way you did the sub links. Use the attribute target="myf" on the top links. Make sure you name the iframe on all pages, not just the ones with the sub links.
Straystudio



Joined: 14 Apr 2008
Posts: 220
Location: Nord Italy

PostPosted: Tue May 27, 2008 5:44 pm     Re: How to set "button" to link page with "if Reply with quote

Aliya1725 wrote:
1. I want to make the "object" in iframe shown after click "Travel Guide" button not when I click sub-menu button on the left side.

Currently, after click "Travel Guide" coming from "Home", iframe looks empty.
I think to understand, You want it NOT to be empty;
You want instead, http://travel.yahoo.com/ or so already showing.

iframe can have a native "object" incoming through src Attribute; the same as with img Element for images.
I see

<iframe name="myf" width="750" height="350" frameborder="1"></iframe>

with no src Attribute for source; it is coded almost at the end of Your Document.
Simply enter:

<iframe name="myf" width="750" height="350" frameborder="1" src="http://travel.yahoo.com/"></iframe>

This does not affect other Links action: they still will be able to change what shown.
A Link like:

<a href="http://weather.yahoo.com/" target="myf"><img src="images/weather.gif" name="Image11" width="200" height="57" border="0" id="Image11" /></a>

will be making that "myf" named iframe uploading a new file.
Aliya1725



Joined: 21 May 2008
Posts: 3

PostPosted: Tue Jun 03, 2008 11:56 pm     Reply with quote

Thank you all of you!
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial