Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-06-2005, 05:40 PM   PM User | #1
skyguy
New to the CF scene

 
Join Date: Mar 2004
Location: Surrey
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
skyguy is an unknown quantity at this point
iFrame - www.tvringtones.co.uk

Hi,

I wonder if anyone could visit my site and tell me where I am going wrong. I can't seem to get my links to open in the iframe of my homepage www.tvringtones.co.uk , only my homepage.htm opens in it?!?

All assistance will be greatly appreciated.
skyguy is offline   Reply With Quote
Old 05-06-2005, 06:28 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
At the moment, your links are targeted to _top meaning they will open above the page. You need to give your iframe a name, and set your links to target the name of the iframe.
Code:
<a href="blah.html" target="nameoftheiframe"><img src="blah.jpg" width="" height="" alt=""></a>
_Aerospace_Eng_ is offline   Reply With Quote
Old 05-06-2005, 07:10 PM   PM User | #3
skyguy
New to the CF scene

 
Join Date: Mar 2004
Location: Surrey
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
skyguy is an unknown quantity at this point
Hi again, and thanx for your speedy response.

Sorry I'm new to iframes. I have changed all my links in the nav bar to target iframehome (the name of my iframe) and still they pop up in a new window! I am not sure where I am going wrong but if someone could take a look at my source code and tell me what's up I'd be extremely greatful.

Thanx again..
skyguy is offline   Reply With Quote
Old 05-06-2005, 07:45 PM   PM User | #4
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
The part where you went wrong, was when I said a NAME not an ID, change your iframe code to this
Code:
<iframe onLoad="autoResize('iframehome');" src="iframehome.htm" width="100%" id="iframehome" name="iframehome" scrolling="no" marginheight="0" frameborder="0"></iframe>
_Aerospace_Eng_ is offline   Reply With Quote
Old 05-06-2005, 08:15 PM   PM User | #5
skyguy
New to the CF scene

 
Join Date: Mar 2004
Location: Surrey
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
skyguy is an unknown quantity at this point
Excellent! Many Many thanx for your help!
skyguy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:35 AM.


Advertisement
Log in to turn off these ads.