PDA

View Full Version : Frames or no frames? that is the question.


dellis203
02-21-2008, 08:19 PM
Hi everyone,
got a situation here, I use frames and iframes in my pages with php and flash. I know Search engines dont like iframes nor frames. I want each page to have a different title in IE for each page. but this is my situation - I do alot of work on websites for bands and musicians and they all want jukeboxes playing continuously through out there site.
I have banged my head around this in order to do this without the use of frames or iframes for the "content" areas.
what I end up doing 90% of the time is create a framed site with the top portion of the frame hidden playing a flash file that calles an mp3 and in the other frame where everything is, is where I have my music controls using the netobject parameter in flash. is there a way to do what I am trying to achieve without the use of frames that anyone can think of.
Thank you for your help
Dave

CyanBlue
02-21-2008, 08:21 PM
Howdy and Welcome... :)

I could be wrong, but I am 80% sure you can only do that by using the frameset... The pages will reload if not...

dellis203
02-21-2008, 08:26 PM
thats my problem! I want to get away with frames. hahahhaha
I have been researching this to no end, and cant find any other way whatsoever, I truly dislike band websites that want there dang jukebox to play continuously! hahahahha

rwd
02-21-2008, 08:57 PM
How are you with JavaScript / Dom manipulation?

You could code the page as xhtml, then onload run a function to rewrite the page as a frameset (creating your jukebox holder in a hidden frame and using innerHTML to copy the content from the existing plain html page into the main frame)

This would maintain seo compatibility - search engines just see the initial html and follow all links within it, and solve your problem with the jukebox not stopping on changing page.

That's probably how I'd approach it to maintain the best possible SEO. Other basic approach would be to have a frameset html with the plain html content in <noframes> tags - downside being code bloat.

Hope that makes some form of sense - 5am..

dellis203
02-21-2008, 09:13 PM
Hi thanks for the hint, dont know javascript / dom manipulation but thats what google and books are for.
I will totally have to look into that. if you have any tuts or know of a good start to give me some idea, that would be great! thanks alot!!

rwd
02-27-2008, 05:54 PM
Hi Delis, sorry for the delay getting back to you - have been stacked with work, I did a quick research and whilst yet I haven't found the right method to create framesets with dom, am pretty sure it is possible - when i get an hour or two spare I will look into it, if thats not in time for you then hopefully the solution will be of use to some googler in the future! Sorry for the delay