Lydklip i windows media player.
HejJeg har følgende kode til at afspille nogle musikeksempler. Men når jeg klikker på det link, som skal starte min mp3 fil, så skifter den vindue, fremfor at det er afspilleren som starter.
<html>
<head>
<title>Lydklip</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" Type="text/css">
</head>
<body>
<div id="hovedindhold">
<p style="font-size: 40pt; font-family: georgia, times new roman; color: black; margin-top:10px; margin-bottom: 0px;"><br>
<font face="Georgia" size="5"></font></p>
<p>
</p>
<OBJECT
ID="mediaPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="fileName" VALUE="musik/725_66_1_vers.mp3">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="true">
</OBJECT>
</div>
<div id="venstremenu">
<script type="text/javascript" src="musik.js">
</script><noscript>
<p>Denne menu kræver at du har slået javascript til i
din browser. Slå javascript til, eller brug vores <a href="sitemap.htm">sitemap</a></p>
</noscript></div>
<div id="ekstramenu">
<p style="font-size: 10pt; font-family: verdana; color: darkblue; font-variant: small-caps; margin-top:5px; margin-bottom:0px;">
Klik her for:<br>
<a href="musik/slide.mp3" title="Klik her for at høre et lydklip" >Blues Slide - Lidt bluesy ting, spillet på akustisk guitar</a><br>
<a href="musik/197_361_1_vers.mp3" title="Klik her for at at høre et lydklip">Smagsprøve 2<br>
</a> <a href="musik/121_42_1_vers.mp3" title="Klik her for at at høre en smagsprøve (DDS 121)">Smagsprøve 3</a></p>
</div>
</body>
</html>
