06-13-2004, 02:34 PM
I have disabled an embeded object by document.body.removeChild(ref);
It works but to call the function which embed the object AGAIN, I have to reload the page.
Is there any better solution? I don't want to reload the page.
06-14-2004, 06:41 AM
You don't have to reload. Please show us the code.
But why not just hide it and then show it later?
06-14-2004, 07:11 AM
06-14-2004, 11:59 AM
The problem is that ref.style.display='none' doesn,t work on sound. The panel disappears but not the sound.
I have 2 buttons:
and I want the user is free to choose these buttons OVER AND OVER AGAIN
06-14-2004, 12:29 PM
06-15-2004, 06:12 AM
Ok. I chose the wrong way and it works :thumbsup:
I had a function for embedding the object. This one been called by the "music on" button.
I made a function exactly the same function (with out any conditions etc. ) which embed an object which has hidden="true" and a src that doesn't exist.
This function been called with "music off".
This is maybe not the best way. But I just wanted to give user an extra option. The control keys for the music are actually on the player panel.
06-15-2004, 06:31 AM
Have you read the link I posted?
06-15-2004, 07:19 AM
Yes glenngv, thanks for that link. I got the idea there, but not 100% because I had another program structure. So it became a combination of his idea and mine.