...

View Full Version : direct hits



beardie
01-18-2005, 08:00 PM
for example: if google finds a content page of my site, and thus direct hits the page, but the page is actualy a content page for an iframe, can i place some code into the page that will enable the browser to load the index and thus menus and place the requested page into the frame back into the frame

the site is at
www.impactrecords.co.uk

glenngv
01-19-2005, 02:38 AM
Put this in each every page


<head>
<script type="text/javascript">
if (top == window) location.href = "index.asp?page=" + escape(location.href);
</script>
</head>

Then in index page, retrieve the querystring 'page' ang put it in the iframe source.
It is easier to do this if you are using a server-side language.

beardie
01-30-2005, 07:18 PM
er, not sure what to do, im still a pretty nubie as far as javascript goes, can you explain a little more step bt step with examples..

would be much appreciated



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum