PDA

View Full Version : Help me with document.write - I'm such an idiot


Jedi-Master
06-08-2005, 06:23 PM
Alright, so you have two websites up, a normal one, and a pop-up.

Now the popup has multiple links (lets just say 3). So it has three links and each of them are hrefs to "javascript:changeotherpage(directory/name.mp3,'Name of Song')" (One question would be Where I would put the quotes in the ())

Ok so changeotherpage(mp3/name) would do something like document.write("whaterverwhatever <embed src=\"" + mp3 "\"> whateverwhatever" + name + "whatever in the end of the html page") except I want it to be put on a frame (frameset) on the normal site, so make links like A href="javascript:changeotherpage(whatever.mp3,whatever the name is)

Then the other page would be something like

Now Playing: Name of Song

and it will also embed the thing that i want.


Hope you don't fall asleep before reading it all! (seriously.)

_Aerospace_Eng_
06-08-2005, 06:34 PM
So basically you want to have a popup window that has an embedded media player in it, then in the frameset you want it to say the name of the song playing correct? Have you even tried coding this or are you expecting someone to do it for you?

Jedi-Master
06-08-2005, 06:40 PM
the frameset is in the other webpage (which is up). and the popup is what controls the frameset in the other page with document.write except for the other page.

_Aerospace_Eng_
06-08-2005, 06:42 PM
You wouldn't be able to use document.writes from the popup, unless you are going to write a whole new page to the frame. Like I said have you even tried to attempt this so we can see where you might have gone wrong, or are you expecting someone to do it for you?

Jedi-Master
06-08-2005, 07:08 PM
No, im doing it by myself.

Anyway i think its possible, can you just tell me how to document.write to another page?