Results 1 to 5 of 5

Thread: iFrame help, please. ^^

  1. #1
    Join Date
    Dec 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default iFrame help, please. ^^

    1) Script Title: iFrame Help

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ramescroll.htm

    3) Describe problem: I am currently recreating the homepage and index for a Neopets website that I co-own, (www.blueberrygraphics.co.nr) and I am trying to get a iFrame to work in the coding. This iFrame is sized correctly, but I cannot get it to show the correct page. Can someone look at the page source and tell me what I did wrong? The page is www.freewebs.com/bbgtesting.
    Thanks!
    ~Sarah

  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

    You cannot have the src attribute for the iframe be the same as the page that it is on. If that is not how you wrote your code, then freewebs has altered it.
    - John
    ________________________

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

  3. #3
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Well, one.. I don't see the full Dynamic Drive credit in the source:

    Code:
    <!--Scrollable iframe script- By Dynamic Drive-->
    <!--For full source code and more DHTML scripts, visit http://www.dynamicdrive.com-->
    <!--This credit MUST stay intact for use-->
    Only part of it is there.

    But it looks like your problem is here:

    Code:
    iframe id="datamain" src="www.freewebs.com/bbgtesting"
    The src isn't a valid address. What ever page you want to load needs to be called as well

    Code:
    iframe id="datamain" src="www.freewebs.com/bbgtesting/pageToLoad.html"
    Then make sure that the second half of the JS code is at the very bottom of pageToLoad.html

    Edit:
    Sorry John, you are faster than I
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  4. #4
    Join Date
    Dec 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks.

    Thanks.
    I'll look into the credit-- I know it's there somewhere.
    Thanks again.
    ~Sarah

  5. #5
    Join Date
    Dec 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks.

    It's there.
    Right above my contents...

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
  •