J'ai commencer un peu , mais je sens que c'est faux
Code : Tout sélectionner
<script type="text/javascript">
function change(type){
switch (type) {
$.getJSON("https://api.dailymotion.com/video/XxxX&fields=onair", function(json){
if(json.onair == true){attr("src","images/webtv/webtv_on.jpg");
}
});
break
default:
break;
}
});
});
</script>