Jump to content

Action for a button?


Alekken121
 Share

Recommended Posts

Hello, I just try to figure out how i make it like: I hit the button "Hide Media Player", and then the media player just hides! I've got this code:<EMBED src="http://www.freewebs.com/alekken121/uglytsh.wav" autostart="false" loop="true" hidden="false" value="nothidden"></EMBED><BR><INPUT type="button" value="Gjem Media Playeren">Well, im kinda newbie to HTML so, "Heelp!" :)

Link to comment
Share on other sites

Welcome :) You will need to use some DHTML to perform magic, here's the code :)

<input onclick="document.getElementById('player').style.display='block'" type="button" value="Show Media"><input onclick="document.getElementById('player').style.display='none'" type="button" value="Hide Media"><div id="player" style="display:block"><EMBED src="http://www.freewebs.com/alekken121/uglytsh.wav" autostart="false" loop="true" hidden="false" value="nothidden"></EMBED><BR></div>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...