File Manager
Pro
/data/web/virtuals/8819/virtual/www/mp3/jukebox
PHP 7.4.33
Linux
/data/web/virtuals/8819/virtual/www/mp3/jukebox/EXAMPLE-3.html
1.1 KB
0640
Back
<!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <title>Wimpy Player - Example 3 - establish with Javascript using the "target" option</title> <!-- Wimpy Engine --> <!-- NOTE: This should be located in between the opening <head> and closing </head> tags. --> <script src="wimpy.js"></script> <!-- Create Wimpy Player with Target. Recognize that we are working within the HEAD, while the "target" DIV is located in the BODY. We can do this because we're using the "target" option. --> <script> var myPlayer = new wimpyPlayer({ target : "myPlayerTarget", // This is identical to the "id" in the DIV below. media : "song1.mp3|song2.mp3|song3.mp3", skin : "wimpy.skins/vanilla.tsv", startUpText : "Hello" }); </script> </head> <body> <p>IMPORTANT: The player will only work properly on a live web server!</p> <p> </p> <p> This example shows how to establish a player with javascript, and leverage the "target" player option. -- take a look at the HTML source.</p> <!-- Wimpy Player Target --> <div id="myPlayerTarget"></div> </body> </html>
Cancel
Download
Save changes
File Manager Pro · single-file PHP 7.4.33 on Linux · paths encrypted in URL (AES-256-CTR)