View Full Version : iFrame help, please. ^^

12-30-2007, 07:13 PM
1) Script Title: iFrame Help

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/iframescroll.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.

12-30-2007, 07:23 PM
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.

12-30-2007, 07:26 PM
Well, one.. I don't see the full Dynamic Drive credit in the source:

<!--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:

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

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

Sorry John, you are faster than I

12-30-2007, 08:59 PM
I'll look into the credit-- I know it's there somewhere.
Thanks again.

12-30-2007, 09:01 PM
It's there.
Right above my contents...