p_midtlyng 0 Newbie Poster

Hello-

I need modify this code so that I can have multiple audio segments on one page, with accompanying text and play button.

The idea is to have dialogues where the user can click on each line, and each character name to have that piece of audio played. My boss wants it dynamically generated, rather than cutting the larger mp3 into smaller parts and embedding individually. I've got this for individual sounds, but I'm not advanced enough to know how to build the whole page.

Any help would be much appreciated.

P.

<?php

$filename=$_GET;
$starttime=$_GET;
$endtime=$_GET;

print '
<html>

<head>
<meta name=Title content="Digital Maya Website Audio">
<meta name=Keywords content="">
<meta http-equiv=Content-Type content="text/html; charset=macintosh">

<LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen>

<title>Website Title</title>

<script>
function EvalSound(soundobj) {
var thissound=document.getElementById(soundobj);
thissound.Play();
}
</script>

</head>

<body bgcolor=white lang=EN-US style="border:0;margin=0;align=center">

<div class=Section1>

<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width=0
height=0>
<param name="src" value="'.$filename.'">
<param name="scale" value="tofit">
<param name="controller" value="true">
<param name="autoplay" value="false">
<param name="loop" value="false">
<param name="starttime" value="'.$starttime.'">
<param name="endtime" value="'.$endtime.'">
<embed src="'.$filename.'" id="s001" scale=tofit width=1 height=1 align=center controller=false autoplay=false
loop=false starttime="'.$starttime.'" endtime="'.$endtime.'" enablejavascript=true
pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime"></EMBED></OBJECT>

<form>
<img src="http://www.webucateus.com/dotnetnuke/Portals/0/Cache/images/soundIcon.gif" height=10 onClick="EvalSound(\'s001\')">
</form>

</div>

</body>
</html>
';
?>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.