Jamie2993
12-25-2008, 04:53 AM
Hi All,
Im Making A Music Place For My Website,
Was Trying to add a new "addiction",
what this does is:
if you click the link it hides the music player and shows up in a popup.(ive done this) but this is the part i need help.
Is It Possible:
if you click the link again it will close the popup and show the music player?
my code so far:
function Mpop() {
ID = document.getElementById(2);
if(ID.style.display == "")
ID.style.display = "none";
else
ID.style.display = "";
window.open( "http://music.game-dragon.com/bands/pop/pr.html", "myWindow", "status = 0, height = 200, width = 385, resizable = 0");
}
Im Making A Music Place For My Website,
Was Trying to add a new "addiction",
what this does is:
if you click the link it hides the music player and shows up in a popup.(ive done this) but this is the part i need help.
Is It Possible:
if you click the link again it will close the popup and show the music player?
my code so far:
function Mpop() {
ID = document.getElementById(2);
if(ID.style.display == "")
ID.style.display = "none";
else
ID.style.display = "";
window.open( "http://music.game-dragon.com/bands/pop/pr.html", "myWindow", "status = 0, height = 200, width = 385, resizable = 0");
}