Accueil/modules/ouifm/js/ouifm.js
2010-09-27 10:48:53 +00:00

12 lines
1.3 KiB
JavaScript

$(document).ready(function(){
$('body').append('<img src="images/interface/music.png" id="ouifm-menu"/>');
$('#menu-bar').prepend($('#ouifm-menu'));
$('#ouifm-menu').click(function(){
var radioUrl_adswizz="http://ouifm.ice.infomaniak.ch/ouifm-high.mp3";
// radioUrl_adswizz=com_adswizz_synchro_decorateUrl(radioUrl_adswizz);
var player_object_adswizz='<object data="http://www.ouifm.fr/scripts_player/miniPlayer.swf" name="name_player_radio_1829" id="id_player_radio_894_1829" type="application/x-shockwave-flash" height="28" width="144"><param value="false" name="menu"><param value="always" name="AllowScriptAccess"><param value="transparent" name="wmode"><param value="noscale" name="scale"><param value="lt" name="salign"><param value="#ffffff" name="bgcolor"><param value="high" name="quality"><param value="false" name="allowfullscreen"><param value="objId=id_player_radio_894_1829&amp;paramCurrentAudioMode=liveMP3&amp;paramServerUrl=&amp;paramStreamName=&amp;paramStreamUrl='+escape(radioUrl_adswizz)+'&amp;paramBackgroundColor=0x000000&amp;paramButtonsColor=0xcccccc&amp;paramErrorColor=0xff0000&amp;paramAutoplay=1&amp;paramSoundValue=100&amp;paramFlashCookie=0&amp;paramCallback=1" name="flashvars"></object>';
$('#ouifm').html(player_object_adswizz);
});
});