Results 1 to 2 of 2

Thread: Iframe Script Modify

  1. #1
    Join Date
    Dec 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframe Script Modify

    I use this I frame script

    <td height="20" align="center" valign="top" bgcolor="#E8F6FC"><IFRAME name=stbbox src="/specials.php" width="687" height="200">
    <p>&nbsp;</p>
    </IFRAME></td>

    I want to be able to have links that change the iframe location how would i code the link

    Thxs Steve

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's not really a script, rather HTML code, a fine point really but worth noting. As HTML code goes, it could be better formed but, at least it should be valid in most browsers if not to spec for the w3c. To answer your question, all you need is a link that targets the iframe by name, ex:

    HTML Code:
    <a href="somepage.htm" target="stbbox">Some Page</a>
    By the way, your iframe html would be better like so:

    HTML Code:
    <td height="20" align="center" valign="top" style="background-color:#E8F6FC;color:#000;">
    <iframe name="stbbox" src="/specials.php" width="687" height="200"> 
    <p>Your browser doesn't support the iframe feature of this page, please upgrade.</p>
    </iframe></td>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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