View Full Version : Play button
wazup999
06-12-2007, 01:47 AM
I need help finding a code. The would make it that when a person clicks an image the media player would play/stop/pause/mute... :S
Like powerpod.
I've been looking around but I haven't found it yet.
<?PHP>
06-12-2007, 09:40 AM
Use a custom radio player like powerpod... You want link to it pm me :)
wazup999
06-12-2007, 12:47 PM
I thought of that but i don't want it to look like powerpod.
MrCraig
06-12-2007, 03:36 PM
just use some javascript to stop the radio and use the onclick function?
name your radio oject "radio" then..
<a href="#" onclick="radio.controls.stop()"><img src="PLAYBUTTON" border="0" /></a>
wazup999
06-12-2007, 09:17 PM
Too bad i don't know anything about javascript :(
wazup999
06-12-2007, 09:36 PM
But thanks it works :)
But why does it go back to the top of my page when i click on the image?
-Edit NVM I found it
MrCraig
07-12-2007, 03:33 PM
If you dont want it to go to top of the page. Change the code for
<a href="javascript:radio.controls.stop()"><img src="PLAYBUTTON" border="0" /></a>
it doesnt look as neat though :P
Cool, didn't know you could do this with JS. Nice tip!
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.