I use frames on my site, but people often link to my search or search results externally (which I want to encourage, if I can figure this out...)
What I want to do is to put a javascript in all my templates
if(window==top.window)
{top.window.location='http://myurl.com/cgi-bin/reframe.pl'}
</script>and then have a small cgi script which will print
<FRAMESET>
<FRAME NAME="left" SRC="left.htm">
<FRAME NAME="body" SRC="Where the visitor was just Redirected From">
<FRAME NAME="right" SRC="right.htm">
</FRAMESET></HEAD></HTML>Is this possible?
I love working with Links mods, but my perl knowledge is still not up to this small task. Any help creating the perl reframer script or pointing me in the right direction would be greatly appreciated!
Thanks.
What I want to do is to put a javascript in all my templates
Code:
<script langugage="JavaScript"> if(window==top.window)
{top.window.location='http://myurl.com/cgi-bin/reframe.pl'}
</script>
Code:
<HTML><HEAD> <FRAMESET>
<FRAME NAME="left" SRC="left.htm">
<FRAME NAME="body" SRC="Where the visitor was just Redirected From">
<FRAME NAME="right" SRC="right.htm">
</FRAMESET></HEAD></HTML>
I love working with Links mods, but my perl knowledge is still not up to this small task. Any help creating the perl reframer script or pointing me in the right direction would be greatly appreciated!
Thanks.