Hi iveは、JavaScriptを使用してmp3プレーヤーを作成しました。これは、IE10を除くすべてのブラウザーで完全に機能します。
ページの例:http ://www.mupiz.com/noon (曲をクリックしてみてください)
しかし、IE10はリンクをたどり、前にスクリプトを無視します...
これが私のスクリプトです:
var list = $("#playlist").find("a:not(.songLink)");
listNC=new Array();
for (var i=0;i<list.length;i++) { // we get all the song
list[i].rel = i;
$(list[i]).parent().parent().prepend("<td class='notplayed' width='25px'><img src='../../images/lecteur-B-playlist-play.png' style='z-index:10000'/></td>");
listNC[i]=girlify(list[i].href);
list[i].onclick = function(event) { // onclick on each link
if($(this).attr('class')!="songLink"){
soundManager.stopAll();
current = this.rel;
event.preventDefault();
lire_current(); // this play the song
return false; // **this does not work!**
}
};
これはCSSの専用部分です