• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

How to embed six midi files

I have a web page that will show six music players (general plug-in of IE and NS). When the users click "Play" on Player A, it will play (A.mid). If click on Player B, it will play (B.mid).

And I have the following code
<EMBED src="music/a.mid.mid" loop="true" autostart="false" volume="50" width="150" height="45" controls="console" type=audio/midi> for each one.

IE is ok, but nothing shown on NS, or required Plug-in or even quit the NS on different computers. I've tested for four computers!!

Can anyone have any solutions? Thanks!
0
mscproj
Asked:
mscproj
1 Solution
 
ycgohCommented:
I believe that you miss a forward slash before music.

i.e. <EMBED src="/music/a.mid...
0
 
mscprojAuthor Commented:
It's incorrect!
0
 
oubelkasCommented:
Are you sure that everything is filled in forms including the buttons, so
<form>
....
<input type="button"...>
....
</form>

Could you post the code you have so far.

Joseph
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
arena225Commented:
In Netscape, you do not have to put double quotes around parameters such as Autostart="false". It may be that NS is misreading these, so you should take them out. Also, as ycgoh said, try /music/a.mid.

Is your file also named a.mid.mid or is this just a typo? If it is not try renaming the file to just a.mid. Windows apps usually don't like to see filenames such as that.

Renee
0
 
mscprojAuthor Commented:
Still not work with NS!
Just as before, works well with IE.
If I install Quicktime Plug-in, NS can work too? Why?
It should be that NS has default midi plug-in!! I can play midi sound file at background, but not in <embed> on several computers in my office?

<%
 ........
..........
database connection code

%>

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE></TITLE>


</style>


</HEAD>

<BODY background="../../images/background.jpg" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">


<center><font size="2" face="Arial"><b>Select background music</b></font></center><br>

<form action="personalizeCard2.asp" method="post" name="regform">

<table border="0" cellspacing="0" cellpadding="2" align="center" width="600">

<%
   FlagFirst = True
   iii = 1
   NoPerRow = 3
   While Not rsResult.EOF %>
<%   If iii = 1 Then %>  
      <tr>
<% End If %>
            
            <td align="center">      
                  <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                              <td align="center"><font size="1" face="Arial"><i><%=rsResult("musTitle")%></i></font></td>
                        </tr>
                        <tr>
                              <td align="center"><EMBED src="music/<%=rsResult("musID")%>.mid" AUTOSTART="false" volume="50" width="150" height="45"></td>                              
                        </tr>
                        <tr>
                        <% If FlagFirst = True Then %>      
                              <td align="center"><input type="radio" name="musID" value="<%=rsResult("musID")%>" checked></td>
                        <% Else %>
                              <td align="center"><input type="radio" name="musID" value="<%=rsResult("musID")%>"></td>
                        <% End If %>
                        <% FlagFirst = False %>
                        </tr>
                  </table>
            </td>
<%
   If iii = NoPerRow Then  %>
      </tr>
<% End If
   iii= iii + 1
   If iii = NoPerRow + 1 Then
      iii = 1
   End If
   rsResult.MoveNext
   Wend
%>

</table>

<br>
<center><input type="submit" value="Next >>"></center>
<input type="hidden" name="picID" value="<%=Request("picID")%>">

</form>
<br>

</BODY>
</HTML>

Thanks!
0
 
arena225Commented:
What version of NS are you using?

Renee
0
 
mscprojAuthor Commented:
4.6 and 4.7
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now