PDA

View Full Version : wepage heading



dude9er
January 11th, 2006, 04:56 PM
I'm building a travel website that links out to other travel websites.

I'm looking for a tutorial on how to put the HEADING of my webpage on the top of the browser when i link out to OTHER webpages.

The only example I know of that does this is about.com. Can someone help with this concept? How it works? and any tutorials or code I can look at to get me going in the right direction?


Thanks in advance.

antizip
January 11th, 2006, 05:06 PM
its pretty easy actually ... there is some server side scripting involved tho.
The link to the page should be something like:


<a href="topFrame.php?page=http://www.google.com">Google</a>


topFrame.php


<frameset rows="200,*">
<frame src="YOURTOPFRAME.php?page=<?=$_GET['page']?>" name="top">
<frame src="<?=$_GET['page']?>" name="content">
</frameset>


YOURTOPFRAME.php


<html>
...
<a href="<?=$_GET['page']?>" target="_parent">Close Frame</a>
...
</html>


something like that :P

dude9er
January 15th, 2006, 11:18 PM
I've tried the above PHP code but the framed site I'M trying to frame keeps going all crazy. Any ideas?

http://www.affinity-nra-travel.com/bwv/topFrame.php?page=http://www.brendanvacations.com/africa.asp?id=2

unchew
January 15th, 2006, 11:52 PM
just make two frames, one top for the header and the bottom one for the content. Then just change in the link code "_self" or "_blank" to the name of your bottom frame. That should do it!