Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: direct hits

  1. #1
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    direct hits

    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

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Put this in each every page
    Code:
    <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.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •