PDA

View Full Version : Can you put a radio on a site with no iframes?



Moh
09-03-2007, 07:28 PM
I was woundering, can u put a radio on a site, where the full site changes if u click a differnt page, but the radio still plays?
And when u click a link, its still playing, and u can stop it by clicking stop (If u
know what I Mean)

Chickenblob
09-03-2007, 07:29 PM
Might be able to but I don't think you can unless you have the radio playing in a pop-up window.

PinkFM
09-03-2007, 07:36 PM
Isn't that what habbox does?

timROGERS
09-03-2007, 07:38 PM
Yeah you can. It's a strange way, but if you replace the main content text using Javascript, you can.

Blob
09-03-2007, 07:39 PM
AJAX .

Invent
09-03-2007, 07:40 PM
Yeah I think the only way would be using something like Javascript (AJAX), PHP or something like that..

But it would be much easier to just have a frameset and have a small frame at the bottom with the radio player :)

F32
09-03-2007, 08:07 PM
INCLUDES FTW.

timROGERS
09-03-2007, 08:13 PM
It's not really AJAX, it's only AJAX if it interacts with a server side script :P It's easier to use iFrames, I don't know why everyone refuses to use them nowadays.

If you put the homepage content into a span with the id "maincontent", you could have the follow action on a link:



var content = document.getElementById('maincontent');
content.innerHTML = "The new HTML for the main content area";

beer
09-03-2007, 10:14 PM
i think its cos hes using joomla lol. just have a pop up 1.

Want to hide these adverts? Register an account for free!