SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: iframe syntax

  1. #1
    SitePoint Addict
    Join Date
    May 2006
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    iframe syntax

    <iframe class="" src="name="zenfolio"" style="width: src="http://elitesportimages.zenfolio.com/f402582467"px; height: 100%; " frameborder="0" scrolling="" onload="scro11me(this)"></iframe>

    this code isn't working and I'm not sure why.

    Elite Sport Images | All Photographs

    this link works.

    I don't understand what the px stands for.

    Any help would be appreciated

    TIA
    Pat

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,208
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    I don't see an iframe on that page, but the px shouldn't be there in the code you posted.

  3. #3
    SitePoint Addict
    Join Date
    May 2006
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Elite Sport Images

    this is the link that isn't working.

    Quote Originally Posted by ralph.m View Post
    I don't see an iframe on that page, but the px shouldn't be there in the code you posted.

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,208
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Hm, this is your iframe code, which is a bit of a mess:

    Code:
    <iframe class="" src="name="zenfolio"" style="width: src="http://elitesportimages.zenfolio.com/f402582467"px; height: 100%; " frameborder="0" scrolling="" onload="scro11me(this)"></iframe>
    Code:
    src="name="zenfolio""
    That needs to be cleaned up. You need to put a url to the page being pulled in, such as

    Code:
    src="some-page.html"
    Code:
    style="width: src="http://elitesportimages.zenfolio.com/f402582467"px; height: 100%; "
    Eek, that's messed up. src doesn't belong there. You want something like

    Code:
    style="width: 500px; height: 100%;"


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
  •