• Hi all. This is the first time I've posted here although I've been lurking for some time in hopes of an announcement on the next gen of 1st page.

    I'm the webadmin of a fairly large aquarium hobbyist site that utilizes frames for navigation purposes (I know, I know... but they're the best I could manage at the time I created the site and sadly this is still true today)

    I'm strictly an amateur webdesigner and am conversant only with html and css...I've also tinkered with some existing javascript scripts to get them to do things slightly differently. However, I'm pretty much clueless when it comes to creating javascript code.

    The problem I am faced with is that search engines take visitors directly to pages that are intended to be viewed within the context of the frameset. (All the frame-haters can gloat at will here).

    I was prepared to live with this until I visited a website that had a restore frames link that appeared to restore the frameset and at the same time kept the original page in the main 'frame' window. Now I could easily do this if I only had a handful of pages by creating separate frameset pages for each and every page on the site. However, there are probably a couple thousand pages on the site by now and the task would be herculean. (If the frame-haters could just keep the gloating down to a loud roar that'd be appreciated...thanks). To my frustration I can no longer find that whizbang site to reverse engineer things based on what they had.

    So, after all my meandering, my question to those of you with a clue or two more than I have, is as follows:

    Can I create a generic frameset page that sets the mainframe's src property to the url of whatever page refers to that frameset page. I imagine that there must be some way to do this that involves the document.referrer property but I can't figure it out for the life of me. I've done some surfing for answers to this question but have only found something written in php (no-comprehendez vouz) that caused 1stpage to lock up when I attempted to chuck it into the html of a test page.

    For the record, the website I'm talking about is www.saltcorner.com but I just need a generic code script to modify as appropriate. The idea is that I could place a universal link on each 'content' page on the site that points to the frameset page. When someone clicks on the restore frames link, it will restore the frames and keep the content frame directed at the same page the viewer was originally looking at.

    I apologize for the long post and will greatly appreciate any assistance rendered.
    Sincerely,
    Craig Dolphin


  • There is a smiley in your code. Use [code] tags.

    And by the way: i was not wrong!
    With the statement: 'Java = serverside, JS= clientside' I was wrong, i admit.
    But JS is not the same as Java.


  • I got so into proving pascal wrong that i forgot the point of this hread:

    put this ito the pages you dont want unframed: