www.webdeveloper.com
Results 1 to 5 of 5

Thread: scripts/CSS/frames/redirects and SEs

  1. #1
    Join Date
    Mar 2004
    Location
    Spain
    Posts
    21

    scripts/CSS/frames/redirects and SEs

    Hi. I have a site which uses CSS positioning of iframes to achieve a fairly unusual layout which visitors tell me they really like - so I donīt want to change it - but which is self-castration in SE optimisation terms. The main page that does the layout stuff and loads the iframes doesnīt have any content as such itself, and SEs donīt see the content in the iframes.

    I have tried to get round this by having simple standalone page versions of the iframe content with their own URL, which if arrived at directly (someone comes to them through a SE) do a quick javascript check to see if the user has a modern browser (CSS and JS) and if so reloads the fancy content page with the relevant iframe preloaded, otherwise if it doesnīt recognise the JS a plain vanilla SE-friendly page loads.

    I have a front page which if JS works has links to take you to the fancy page, otherwise it displays links to the plain vanilla pages, effectively acting as a site map. Actually, it works by displaying the non-JS links, and then JS if working sets the display to none for them and replaces with the a link to the fancy page.

    If you have followed me so far - thanks! - the problem I have is that the SEs are not smart enough to see the iframe content etc., but they seem to be clever enough to realise that if you arrive at the site with a JS enabled browser, you donīt get the plain vanilla pages I want the SEīs (and older browsers) to see, and they look at that fancy layout page and see no content. And if I submit the URLs of the plain vanilla pages, they are also clever enough to see that there is a JS reload of the fancy layout page, and again see nothing.

    Can I get round this without having to ditch my layout? All replies much appreciated, thanks.

  2. #2
    Join Date
    May 2004
    Posts
    339
    Quote Originally Posted by terraling
    Can I get round this without having to ditch my layout? All replies much appreciated, thanks.
    Yes. Quit iframes and use either SSI (Server Side Includes) or PHP includes.

  3. #3
    Join Date
    Mar 2004
    Location
    Spain
    Posts
    21
    Thanks, but could you give me a bit more of a clue..? I know a bit about PHP and would learn it properly if I thought I could achieve the same result, but I'm not sure that I can.

    I use iframes to have several overlapping windows which when clicked on come to the fore and display their content (which is otherwise hidden). Fairly easy to do with CSS+JS, with the benefit that it is more-or-less instantaneous to switch between them because the whole page is not being reloaded. If I understand it correctly, PHP includes would mean reloading the whole page each time but with different content. That would spoil the effect somewhat - although thinking out loud, I could maybe use PHP includes for the plain vanilla version of the site and still have a fancy iframes version...

  4. #4
    Join Date
    May 2003
    Location
    Andover, UK
    Posts
    410
    If you look at your site with the Lynx browser, you will effectively see what the spiders see, so if it's there, the content will be indexed.

  5. #5
    Join Date
    Mar 2005
    Location
    CA
    Posts
    323
    Quote Originally Posted by terraling
    Thanks, but could you give me a bit more of a clue..? I know a bit about PHP and would learn it properly if I thought I could achieve the same result, but I'm not sure that I can.

    I use iframes to have several overlapping windows which when clicked on come to the fore and display their content (which is otherwise hidden). Fairly easy to do with CSS+JS, with the benefit that it is more-or-less instantaneous to switch between them because the whole page is not being reloaded. If I understand it correctly, PHP includes would mean reloading the whole page each time but with different content. That would spoil the effect somewhat - although thinking out loud, I could maybe use PHP includes for the plain vanilla version of the site and still have a fancy iframes version...

    It's simple to do via css/javascript. Create a couple of divs with all but one having their display property set to hidden, and on the clicking of a heading you could set it to display and hide the previous one.

    I can get a working example up if you'd like. It works very fast, no reloading of the pages necessary.
    -Anthony

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles