Jump to content

ged12345

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by ged12345

  1. Hey all, A weird question here - I have an mp3 player embedded in a php file - these are the lines to set it up: <script type="text/javascript" src="<?php $siteDomain; ?>/flashmp3player/swfobject.js"></script> <script type="text/javascript" src="<?php $siteDomain; ?>/flashmp3player/ep_player.js"></script> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("<?php $siteDomain; ?>/flashmp3player/ep_player.swf", "ep_player", "301", "16", "9", "#FFFFFF"); so.addVariable("skin", "<?php $siteDomain; ?>/flashmp3player/skins/micro_player/skin.xml"); so.addVariable("playlist", "<?php $siteDomain; ?>/flashmp3player/playlist.xml"); so.addVariable("autoplay", "true"); so.addVariable("shuffle", "false"); so.addVariable("repeat", "true"); so.addVariable("buffertime", "1"); so.addVariable("key", "YOURUNIQUEKEY"); so.addParam("allowscriptaccess", "always"); so.write("flashcontent"); // ]]> </script> This is in a file called musicplayer.php I use frameset to call this and the main page, so that the mp3 player isn't reloaded on each separate page, causing a break in the music. The other file called is a php page also. I want to be able to switch the music on and off from the mainpage, as I want the mp3 player to be hidden otherwise (for the moment). The included .js files have an API to turn the music on and off - one of the calls being: EP_stop('ep_player'); Now, my question is, is it at all possible to reference this js script from this other .php;/html file and use the above call in another completely different page. I'm unfamiliar with javascript and any help would be exceedingly useful. Thanks, ged12345
  2. Hey there, My question is this - I have a free flash player loaded within my html code - but the way my pages work is through php. I have a header.php file, an indexmain.php file and a footer.php file within each of my index.php files for each part of the site. The mp3 player is loaded in the header.php file. Everytime I load a page other than the main page, the flash player is reloaded, the song stops and then starts again. I want the mp3 player to loop the song continually, throughout the website. The javascript is: <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("<?php $siteDomain; ?>/flashmp3player/ep_player.swf", "ep_player", "301", "16", "9", "#FFFFFF"); so.addVariable("skin", "<?php $siteDomain; ?>/flashmp3player/skins/micro_player/skin.xml"); so.addVariable("playlist", "<?php $siteDomain; ?>/flashmp3player/playlist.xml"); so.addVariable("autoplay", "true"); so.addVariable("shuffle", "false"); so.addVariable("repeat", "true"); so.addVariable("buffertime", "1"); so.addVariable("key", "YOURUNIQUEKEY"); so.addParam("allowscriptaccess", "always"); so.write("flashcontent"); // ]]> </script> It works fine otherwise - is there someway to pass the javascript variable assigned above for the mp3 player to each new page, so I can redisplay the mp3 player but not restart the song? Or is there a way to keep my top menu (the header section) without reloading it each time, and just reload indexmain.php, the middle section? Thanks, ged12345
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.