Click to See Complete Forum and Search --> : Iframes for SEO?


Lightfoot82
07-26-2005, 04:47 AM
Hi Guys,

I came across a new way to produce Web sites which i really like but im very worried that doing it this way will screw google off bad style.

The content of the pages is all in <Iframes> so that the page template stays the same while the content changes.

Here is the site using iframes

www.albanyassets.com/private

Can someone please help me out?

snaip
07-26-2005, 04:58 AM
Google might index your iFrames, but they will be as separate pages.

mdoigny
07-26-2005, 02:18 PM
Nice site.
Most spiders will scan inside frames and iframes.
You should provide some code to load the container when an iframe is loaded.
Needed: cookies (to store the name of the iframe being accessed) and javascript.
The code in each iframe must put the iframe's name in a cookie and load the main page. The main page must check the exitence of a cookie and load the correct iframe, then delete the cookie.
Fallback (javascript disabled clients): use http meta refresh to load the main frame.... but this could confuse spiders. Provide a link to load the main page.

Lightfoot82
07-27-2005, 03:29 AM
Hi Guys,

Thanx for the help, and the poitive comments - I really think this way of doing the page design, makes the pages really eye catching. So im really fighting to try and employ this method correctly for SEO.

Can you please tell me more about the use of cookies and Javascript etc?

Thanks a million

mdoigny
07-27-2005, 04:45 AM
code on one of the (i)frames named 'mailing.htm'
function setCookie(naam, waarde) //normal cookie code, TTL = 1000 seconds
{
var now = new Date();
now.setTime(now.getTime() + 1000);
var curCookie = naam + "=" +escape(waarde) + ";
expires=" + now.toGMTString() +";
path=/";
document.cookie =curCookie;
}
function getCookie(naam)
{
var dc = document.cookie;
var prefix = naam + "=";
var begin = dc.indexOf("; " + prefix);
if (begin == -1)
{
begin = dc.indexOf(prefix);
if (begin != 0)
return "";
}
else
begin += 2;
var end = document.cookie.indexOf(";", begin);
if (end == -1)
end = dc.length;
return unescape(dc.substring(begin + prefix.length, end));
}
if (getCookie("frame") != "A") //frame == "A" in case loaded from main page
{
setCookie("frame", "mailing.htm");
window.location.href = "index.htm"
}
Code on the container (don't forget the cookie code)

var ll = getCookie("frame");
setCookie("frame", "A"); // A to indicate that the container is loaded
if (ll !="" & ll != "A")
frame.location.href = ll; //frame = name of the iframe
else
frame.location.href = "intro.htm"

This is just code i put together now to get you started. Not tested!

Lightfoot82
07-27-2005, 06:45 AM
I will have a go at it thanks alot for that.