Wie kann man die Suchbox durch Flash mp3-Player ersetzen?
Verfasst: 04.02.2011 10:39
Hallo,
ich möchte in meinem Forum (das Rohgerüst sie etwa so aus) die Forumssuche in der oberen rechten Ecke durch einen Flash mp3-Player ersetzen.
Hier gibts eine Demo Playlist.
Der Player lässt sich in seiner höhe natürlich anpassen.
Es folgt ein Ausschnitt aus der Installationsanleitung:
Gruß,
ango
ich möchte in meinem Forum (das Rohgerüst sie etwa so aus) die Forumssuche in der oberen rechten Ecke durch einen Flash mp3-Player ersetzen.
Hier gibts eine Demo Playlist.
Der Player lässt sich in seiner höhe natürlich anpassen.
Es folgt ein Ausschnitt aus der Installationsanleitung:
Vielen Dank für eure Bemühungen schonmal im Vorraus!Step 2
You need to embed player into your webpages. You can copy and paste code from flashmp3player.html or from here.
Note: You can change the location of files in the following code. The path can be relative or absolute (except for mp3 folder, which should always be relative to php script).
Add this to the head of your webpage:Add this to the body of your webpage, where you want player to appear:Code: Alles auswählen
<!-- Location of javascript. --> <script language="javascript" type="text/javascript" src="swfobject.js" ></script>
Note: You can change player width and height (using pixels or percents).Code: Alles auswählen
<!-- Div that contains player. --> <div id="player"> <h1>No flash player!</h1> <p>It looks like you don't have flash player installed. <a href="http://www.macromedia.com/go/getflashplayer" >Click here</a> to go to Macromedia download page.</p> </div> <!-- Script that embeds player. --> <script language="javascript" type="text/javascript"> var so = new SWFObject("flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file. You can change player width and height here (using pixels or percents). so.addParam("quality","high"); so.addVariable("content_path","mp3"); // Location of a folder with mp3 files (relative to php script). so.addVariable("color_path","default.xml"); // Location of xml file with color settings. so.addVariable("script_path","flashmp3player.php"); // Location of php script. so.write("player"); </script>
Add this somewhere in the body of your webpage:Code: Alles auswählen
<!-- Please place this link anywhere on the page that uses Flash MP3 Player. You can style it anyway you want, but do not change or delete it. Read the license! Thanks. :-) --> Powered by <a href="http://www.flashmp3player.org">Flash MP3 Player</a>
Gruß,
ango