Abi oncelikle anladığıma göre siteye MP3 yerleştirmek istiyorsun...
Dilerim ki yardımcı olabilirim..
1> siteye girişte sadece tek bir MP3 çalmasını istiyorsan bunun iki yolu var
A- playerı goster, kod:
<EMBED SRC="your_song_url.mp3" width=200 height=45 autostart=true loop=infinite>
B- gizli player, kod:
<EMBED SRC="your_song_url.mp3" width=hiden height=hiden autostart=true loop=infinite>
2> Random player.. siteye her girişte farklı bir MP3 çalmasını istiyorsan.. bende hazır iki kod var
A)
<script language="javascript">
//two steps to apply this script//
//insert the script between the <BODY> and </BODY>//
//modifie your song URL and title//
//**--created by Life4renT--**//
song = new Array(10);
title = new Array(10);
song[0] ='song.mp3'
song[1] ='song.mp3'
song[2] ='song.mp3'
song[3] ='song.mp3'
song[4] ='song.mp3'
song[5] ='song.mp3'
song[6] ='song.mp3'
song[7] ='song.mp3'
song[8] ='song.mp3'
song[9] = 'song.mp3'
song[10] = 'song.mp3'
title[0] = 'title'
title[1] = 'title'
title[2] = 'title'
title[3] = 'title'
title[4] = 'title'
title[5] = 'title'
title[6] = 'title'
title[7] = 'title'
title[8] = 'title'
title[9] = "title"
title[10] = 'title'
index = Math.floor(Math.random() * song.length);document.write("<DL>\n");
document.write("<EMBED SRC="+song[index]+" width=200 height=45 autostart=true loop=infinite");
document.write(' TEXT="#FFFFFF">');
document.write("<BR>");
document.write("<font face=verdana size=4 color=#000000>");
document.write("You are listening to: ");
document.write("</font>")
document.write("<font face=verdana size=4 color=red>");
document.write(title[index]);
document.write("</font>")
document.write("</DL>\n");
</script>
B)
<script language="javascript">
//two steps to apply this script//
//insert the script between the <BODY> and </BODY>//
//modifie your song name and title//
//**--created by Life4renT--**//
var numsound = 2
day = new Date()
seed = day.getTime()
ran = parseInt(((seed - (parseInt(seed/1000,10) * 1000))/10)/100*numsound + 1,10)
if (ran == (1)){
sound=("song.mp3")
title=("title")
leng=200
}
if (ran == (2)){
sound=("song.mp3")
title=("title")
leng=200
}
if (ran == (3)){
sound=("song.mp3")
title=("title")
leng=200
}
if (ran == (4)){
sound=("song.mp3")
title=("title")
leng=200
}
if (ran == (5)){
sound=("song.mp3")
title=("title")
leng=200
}
document.write('<EMBED SRC="'+ sound +'" WIDTH=200 HEIGHT=45 AUTOSTART="true" LOOP="false">')
document.write('<p> </p>')
document.write('<FONT face=verdana SIZE=4 color=red>' + title + '</Font><BR>')
</script>
________________
My LiFe Is FoR rEnT