View Full Version : Need help with frames

02-21-2005, 02:28 AM
I am working on a site. The site is a hockey site which is part of a bigger league. I have permission from the league to frame their main website. I want to frame a certain portion (minus the navigation and the top banner).

I have been unable to do this. I thought it was possible. The navigation is about 130px wide on the left of the page and the top banner is about 200px high. Can anyone help? I would be happy to PM someone for further assistance.

My php skills are terrible, so if someone knows an easier way to do it that way, please let me know. Thanks in advance.

02-21-2005, 05:25 PM
I can't say I understand why you are attempting what you've described, but assuming it's a legit request, it's probably doable.

Start by posting the code you're currently using, in [ code ] tags please.

02-21-2005, 05:37 PM
Here is some of the code.

I am trying to frame this page: http://www.pijhl.com/sites/9994/page.asp?Site=9994&LeagueID=9994&SeasonID=17&DivisionID=12&page=Teams&TeamID=18&Section=Home

What I have come up with so far is this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Abbotsford Pilots - Junior Hockey Team</title>

<div style="position: absolute; top: 10%; left: 10%; border: 2px ridge gray; width: 600px; height: 800px; overflow: hidden;">
<iframe style="position: relative; top: -190px; left: -150px; border: none; width: 1000px; height: 800px;"
src="http://www.pijhl.com/sites/9994/page.asp?Site=9994&LeagueID=9994&SeasonID=17&DivisionID=12&page=Teams&TeamID=18&Section=Home" scrolling="auto">

It does not do exactly as I want, but close. I would like the window to be scrollable within the frame. In FF, it seems to refresh poorly. If you visit the first link, you will see the navigation on the left and the banner above the print friendly icon that I am trying to remove.

Can someone possibly show me some php that will pull the data within the content?

Thanks for your help...

02-21-2005, 06:20 PM
it's probably doable

Well, the solution you're attempting (and all my attempts) have the drawback of covering at least part of the iframe's scrollbar. :(


You may be able to manipulate the position of the framed page with javascript, and extracting the data through PHP may work too.

If you don't get some more responses here, PM a moderator to have it moved to one of those forums.