coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: cbarone on December 20, 2003, 02:42:25 PM

Title: Your Help is greatly appreciated - Music Insertion
Post by: cbarone on December 20, 2003, 02:42:25 PM
Hello,

I am trying to insert music on the coppermine slideshow.

http://www.santonefamily.com/gallery/displayimage.php?album=1&pid=16&slideshow=5000

I edited the displayimage.php file with the following code.

<embed src="days.MP3" autostart="true" loop="false" height="45" width="170">
<noembed>Sorry, your browser doesn't support the embedding of multimedia.</noembed>
</embed>

Where should I put this code to have music play when the slideshow is running.

Any tips would be greatly appreciated, cant seem to get it to work.

Note this code works fine and can be seen here.

http://www.santonefamily.com/music.htm

Thank you very much.

Best Regards,

cbarone@dca.net
Title: Your Help is greatly appreciated - Music Insertion
Post by: hyperion on December 20, 2003, 10:54:18 PM
I would start by trying it between the $params statement and the following starttable statement in function slideshow.

echo "<embed src=\"days.MP3\" autostart=\"true\" loop=\"false\" height=\"45\" width=\"170\">\n<noembed>Sorry, your browser doesn\'t support the embedding of multimedia.</noembed>\n</embed>\n";
Title: Your Help is greatly appreciated - Music Insertion
Post by: cbarone on December 22, 2003, 05:16:30 PM
Could you recommend a way to insert a java script popup when someone clicked on the slideshow? I have the code neccessary to do this but dont know where to put it?
Title: Your Help is greatly appreciated - Music Insertion
Post by: cbarone on December 22, 2003, 05:33:45 PM
Your first suggestion worked. Thank you so much!!!

Happy Holidays,

cbarone@dca.net
Title: Your Help is greatly appreciated - Music Insertion
Post by: olegario on February 17, 2004, 09:58:46 PM
This little mod worked great, but I was wondering how did you hide the little media player that comes up in the IE screen?  Take a look at the following link:

https://www.olegario.us/photos/displayimage.php?album=96&pid=2948&slideshow=5000

Thanks.
Title: Your Help is greatly appreciated - Music Insertion
Post by: hyperion on February 18, 2004, 02:26:25 AM
Setting the width and height to zero will give you the desired effect.

echo "<embed src=\"days.MP3\" autostart=\"true\" loop=\"false\" height=\"0\" width=\"0\">\n<noembed>Sorry, your browser doesn\'t support the embedding of multimedia.</noembed>\n</embed>\n";
Title: Your Help is greatly appreciated - Music Insertion
Post by: olegario on February 18, 2004, 03:28:26 PM
Worked perfectly.  Thanks again.