bonjour a tous et a toutes !
Je sollicite votre aide pour arranger un script defectueux.
Je m'explique:
Je vient de crée un forum chez l'hebergeur forum actif. J'ai trouvé un script d'un lecteur radio regroupant une trentaine de radio.
Ce script fonctionne super bien si je le met dans :
Dans Module/ Gestion des pages HTML/ creer une page HTML
ou
Dans Général / Page d'accueil / configuration / Message sur la page d’accueil
pour ces 2 rubrique le code fonctionne super bien
Mais par contre si on crée un nouveau forum (nouvelle rubrique) est que l'on mette le code dans case HTML (en description)
L’image apparait normalement mais aucun lien ou autre fonctionne.
D'après un personne très sympathique que je salut en passant le code serais bourré d'erreur.
Ma question est pouvez vous me l'arranger pour qu'il fonctionne avec une nouveau forum (nouvelle rubrique).
voila le code
<script type="text/javascript">
var colorjs='#EFF8FF';var iDOM = (document.getElementById ? true : false);
var iIE4 = ((document.all && !iDOM) ? true : false);
var iNS4 = (document.layers ? true : false);
var cookieEnabled=(navigator.cookieEnabled)? true : false;
function getReferc(id) {
}
function backgroundblink(target, i){
var elem = document.getElementById(target);
if(!elem) return false;
if (i==1){
elem.style.backgroundColor = colorjs;
elem.style.border = "2px inset "+colorjs;
}
if(i == 2){
elem.style.backgroundColor = "#FFFFFF";
elem.style.border = "1px solid #999999";
}
return true;
}
function afficher_region(){
getReferc('cache_region').style.display='';
getReferc('cache_region').style.visibility='visible';
}
var time_start = new Date();
var milisecunde1 = time_start.getTime();
function song(){
if(document.getElementById('cancion').value != "")
document.getElementById('music').innerHTML='<object
id="NSPlay" width="30%" height="48"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 "
type="application/x-mplayer2"
data="'+document.getElementById('cancion').value+'"></object>';
}
function vip_mail(){
vip_access=getReferc('theform').username.value;
vip_passwd=getReferc('theform').passwd.value;
if(activer_maj == 0){return true;}
else{
if(vip_access.length == 0){
alert("");
blinkBlink('username1');
window.scrollTo(0,0);
return false;
}
if(vip_passwd.length == 0){
alert("");
blinkBlink('passwd1');
window.scrollTo(0,0);
return false;
}
if(vip_access.length > 0 && vip_passwd.length > 0){
getReferc('theform').username.value = FormatPseudo(vip_access);
result=verifPseudoreedite(FormatPseudo_BD(vip_access),vip_passwd);
var Resultatlow = result.toLowerCase();
if(result.indexOf("//reediter//")!=-1 ){
var User_test=0;
debut=0;
fin=result.indexOf("//reediter//");
var Id_user=trim(String(result.substring(debut,fin)));
if((User_test=parseInt(Id_user))>0){
}
}
}
}
}
function verifPseudoreedite(pseud,pass){
if(window.XMLHttpRequest) // FIREFOX
xhr_object = new XMLHttpRequest();
else if(window.ActiveXObject) // IE
xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
else
xhr_object.send(data);
if(xhr_object.readyState == 0) {
}
}
function FormatPseudo_BD(nick) {
var i, c, outnick = '';
for (i = 0; i < nick.length; i++) {
c = nick.substring(i,i+1);
if (c == ' '){ if(i 0 || i nick.length - 1)
c = '';
} if (c 'é') c 'e'; if (c 'à') c 'a'; if (c == 'è') c='e'; if (c 'ç') c 'c'; if (c == 'ù') c='u'; if (c 'ï') c 'i'; if (c == 'â') c = 'a';
outnick += c;
}
return outnick;
}
{
}
function blinkExecute(target,color) {
getReferc(target).style.backgroundColor = color;
}
function blinkBlink(target) {
color1 = "#ff0000";
color2 = "#ffffff";
for(i=0;i<5;i=i+2) {
}
getReferc(target).focus();
}
</script>
<tbody><tr class="hautdepage">
<td class="musica">
<select id="cancion" name="cancion" onChange="javascript:song();SetCookie();" size="1" style="black: 100%;">
<option style="color: rgb(0, 0, 51);"
value="http://www.di.fm/wma/eurodance.asx "selected="selected">Euro
Dance</option>
<option style="color: rgb(102, 0,
0);" value="mms://wstream5e.di.fm/futuresynthpop">Synthpop
channel</option>
<option style="color: rgb(51, 0, 255);" value="http://www.mkmradio.com/MKMRADIO.wax ">M.K.M</option>
<option style="color: rgb(51, 0, 204);" value="http://radio.funradio.fr/funradio.asx ">Fun Radio</option>
<option style="color: rgb(255, 0, 0);"
value="http://www.radiocontact.be/fr/Player/streamingRCFR.asx ">Contact</option>
<option style="color: rgb(204, 0, 255);"
value="http://viphttp.yacast.net/V4/player_rfm/rfm.asx ">RFM</option>
<option style="color: rgb(153, 51, 204);"
value="http://www.tv-radio.com/station/voltage/voltage-20k.asx ">voltage</option>
<option style="color: rgb(153, 102, 153);" value="mms://vipbu.yacast.fr/encodercheriefm">cherie-fm</option>
<option style="color: rgb(255, 0, 102);"
value="http://player.nostalgie.fr/V4/nostalgie/nostalgie.asx ">Nostalgie</option>
<option style="color: rgb(153, 51, 102);"
value="http://player.skyrock.com/V4/skyrock/skyrock.asx ">Skyrock</option>
<option style="color: rgb(0, 0, 51);"
value="http://viphttp.yacast.fr/V4/virgin/virgin.asx ">Virgin
Radio</option>
<option style="color:
rgb(102, 0, 0);"
value="http://www.techno4ever.net/t4e/stream/dsl_listen.asx ">Techno
4 ever</option>
<option style="color: rgb(51, 153,
51);"
value="http://player.rireetchansons.fr/V4/rireetchansons/rireetchansons.asx ">Rire
et chansons</option>
<option style="color:
rgb(0, 0, 51);"
value="http://www.sky.fm/wma/hit70s.asx ">Ann&eacute;e
70</option>
<option style="color: rgb(0, 153,
102);" value="http://www.sky.fm/wma/the80s.asx ">Ann&eacute;e
80</option>
<option style="color: rgb(0, 204,
204);"
value="http://www.sky.fm/wma/classical.asx ">Classique-1</option>
<option style="color: rgb(255, 102, 255);"
value="http://www.omroep.nl/concertzender/live64.asx ">Classique-2</option>
<option style="color: rgb(51, 204, 0);"
value="http://www.streamaudio.com/stations/asx/WLEN_IR.asx ">Classique-3</option>
<option style="color: rgb(51, 153, 51);" value="http://www.di.fm/wma/djmixes.asx ">DJ-Mix</option>
<option style="color: rgb(153, 102, 0);" value="http://player.nrj.fr/V4/nrj/nrj.asx ">NRJ</option>
<option style="color: rgb(102, 0, 0);"
value="http://www.1club.fm/go/asx.aspx?station=dancehits&amp;bitrate=lo ">Dance-1</option>
<option style="color: rgb(51, 0, 204);"
value="http://www.1club.fm/go/asx.aspx?station=thebeat&amp;bitrate=lo ">Dance-2</option>
<option style="color: rgb(153, 102, 153);"
value="http://www.di.fm/wma/eurodance.asx ">Euro Dance</option>
<option style="color: rgb(51, 0, 255);" value="http://www.di.fm/wma/harddance.asx ">Hard Dance</option>
<option style="color: rgb(153, 51, 204);" value="http://www.di.fm/wma/hardcore.asx ">Hardcore</option>
<option style="color: rgb(255, 0, 0);"
value="http://www.streamaudio.com/stations/asx/WEDR_FM.asx ">Hip-Hop</option>
<option style="color: rgb(255, 0, 102);" value="http://www.sky.fm/wma/newage.asx ">New Age</option>
<option style="color: rgb(51, 153, 51);"
value="http://www.streamaudio.com/stations/asx/KISS_FM.asx ">Rock</option>
<option style="color: rgb(128, 0, 0);" value="http://www.sky.fm/wma/altdiagnosis.asx ">Rock-2</option>
<option style="color: rgb(102, 102, 153);"
value="http://www.sky.fm/wma/altrock.asx ">Rock
Alternatif</option>
<option style="color:
rgb(153, 102, 153);"
value="http://www.sky.fm/wma/classicrock.asx ">Rock
Classic</option>
<option style="color:
rgb(255, 102, 0);" value="http://www.sky.fm/wma/indierock.asx ">Rock
Ind&eacute;pendan</option>
<option
style="color: rgb(153, 102, 0);"
value="http://www.sky.fm/wma/smoothjazz.asx ">Smooth
Jazz</option>
<option style="color: rgb(0, 102, 102);" value="http://www.sky.fm/wma/jazz.asx ">Modern Jazz</option>
<option style="color: rgb(204, 102, 204);" value="http://www.sky.fm/wma/salsa.asx ">Salsa</option>
<option style="color: rgb(153, 51, 102);" value="http://www.di.fm/wma/techno.asx ">Techno</option>
<option style="color: rgb(255, 0, 0);" value="http://www.di.fm/wma/gabber.asx ">Hard Techno</option>
<option style="color: rgb(255, 102, 51);" value="http://www.sky.fm/wma/tophits.asx ">Top hits</option>
<option style="color: rgb(0, 102, 102);" value="http://www.di.fm/wma/trance.asx ">Trance</option>
<option style="color: rgb(102, 153, 51);"
value="http://www.di.fm/wma/vocaltrance.asx ">Trance-2</option>
<option style="color: rgb(51, 0, 204);" value="http://www.di.fm/wma/goapsy.asx ">Trance-3</option>
<option style="color: rgb(51, 0, 0);" value="http://www.di.fm/wma/classictechno.asx ">Electro</option>
<option style="color: rgb(190, 31, 224);"
value="http://www.streamaudio.com/stations/asx/WBHK_FM.asx ">Urban</option>
<option style="color: rgb(0, 102, 153);"
value="http://www.di.fm/wma/drumandbass.asx ">Drum and
Bass</option>
<option style="color: rgb(153, 204, 51);" value="http://www.sky.fm/wma/classicrap.asx ">Rap</option>
<option style="color: rgb(153, 0, 51);" value="http://www.sky.fm/wma/world.asx ">Mondial</option>
<option style="color: rgb(102, 153, 51);"
value="http://www.sky.fm/wma/rootsreggae.asx ">Reggae</option>
<option style="color: rgb(204, 0, 255);" value="http://www.sky.fm/wma/country.asx ">Country</option>
<option style="color: rgb(204, 0, 0);"
value="http://www.di.fm/wma/soulfulhouse.asx ">Sulfoul
House</option>
<option style="color: rgb(102, 153, 51);" value="http://www.di.fm/wma/house.asx ">House</option>
<option style="color: rgb(0, 0, 0);" value="http://www.di.fm/wma/ambient.asx ">Ambient</option>
<option style="color: rgb(51, 0, 0);" value="http://s3.onlinestream.de:6030 ">Power Beat</option>
<option style="color: rgb(102, 102, 153);"
value="http://www.antenne.net/livestream/live32.asx ">Ant
Steiermark</option>
</select>
</html>
Afficher la suite