 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
Aliya1725
Joined: 21 May 2008 Posts: 3
|
Posted: Wed May 21, 2008 2:53 am How to set "button" to link page with "iframe |
|
|
|
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: 993
|
Posted: Wed May 21, 2008 4:30 am |
|
|
|
| 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: 238 Location: Nord Italy
|
Posted: Tue May 27, 2008 5:44 pm Re: How to set "button" to link page with "if |
|
|
|
| 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
|
Posted: Tue Jun 03, 2008 11:56 pm |
|
|
|
| Thank you all of you! |
|
|
|
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
|
|
|
|
|
 |
|
|
|
|
|
|
|