PDA

View Full Version : Xhtml Frame...? Please Help..


mikey3521
09-06-2005, 07:10 PM
Hello I am having a problem which might even beable to be resolved without frames im not sure? Hopfully someone here can help.

http://www.stephenkingphotography.ca/

Alright if you view that site, I need to embed a flash .swf into it somewhere which will play music threwout the whole site, problem being that if you change the page the .swf would be reloaded and the song would start again:(

So my first thought was maybe a frame? I could frame the footer as right now im just calling an external php file via Include that way I can edit 1file and it fixes everypage, so if I wanted to frame just the footer thatway it wouldn't be reloaded every page click how would I go abouts doing this?

also if anyone else has a better idea please do tell, right now its all xhtml1.1 strict id like to keep it as complient as I can.. Thanks again for your help :D

to contact me personally please don't hesitate to e-mail me or add me to msn messager at

mikey3521@hotmail.com

Thank you again.
~Mike

gsnedders
09-06-2005, 07:22 PM
Firstly, you should not serve XHTML 1.1 as text/html.

Secondly, if you're going to have music, make sure there's an easy and obvious way to turn it off. I know I'm not the only one who listens to music while surfing.

Thirdly, You could do it with frames having the page in one and having another, with 0px height, with the .swf in it.

_Aerospace_Eng_
09-06-2005, 07:24 PM
The frameset isn't the way to go. This will kill your search engine ranking. What about a popup window that is initiated by the user? You could use an iframe but that might hurt your SE ranking as well. Why are you even using XHTML 1.1? You aren't even passing off your page as application/xhtml+xml, its still text/html. Its recommended that XHTML 1.1 be passed off as application/xhtml+xml. XHTML 1.0 is acceptable to be passed off as text/html.

Changed mime type. This is what happens when you only get 3 hours of sleep.

Alex Vincent
09-07-2005, 04:57 AM
Aero: I think you mean application/xhtml+xml :)