thats a javascript question, but ill still help 🙂
to find out if it is in a frame:
<script>
if(top.location==this.location)
{
write("not in frame");
}
else
{
write("in frame");
}
</script>
if you want to conditionally append a header, you can do it through a url argument like so:
<script>
if(top.location!=this.location)
{
location="page?show_header=false"
}
</script>
use the variable show header in your php code to determine if the header is shown. it should probably show the header by default if the variable is not set thru the url.
hope that works,
-paul
http://xhawk.net