Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Mar 2004
    Location
    Surrey
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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>

  • #3
    New to the CF scene
    Join Date
    Mar 2004
    Location
    Surrey
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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..

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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>

  • #5
    New to the CF scene
    Join Date
    Mar 2004
    Location
    Surrey
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Excellent! Many Many thanx for your help!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •