begin process at 2012 05 29 02:45:20
  Trouver un code source :
 
dans
 
Accueil > Forum > 

Javascript / DHTML / Ajax

 > 

JavaScript et le navigateur

 > 

Autre

 > 

Une ame charitable pour arrander un script


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

Une ame charitable pour arrander un script

vendredi 22 février 2008 à 16:27:36 | Une ame charitable pour arrander un script

balous001

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">   
          <p>
            <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><br>         
<span id="music"><img src="http://photo.load.az/pix/df48b8b714a492896515117909de0de8.gif" alt="Play Radio" style="width: 26%; height: 48px; cursor: pointer;" onClick="javascript:song();"></span>

      </p>
    </body></html>


vendredi 22 février 2008 à 16:30:19 | Re : Une ame charitable pour arrander un script

NHenry

Membre Club Administrateur CodeS-SourceS
Bonjour

Merci de poster sur le bon site (là tu es dans les forums communs) va sur : www.javascriptfr.com

Dans Word, j'Excel. (juste pour la citation)
VB (6, .NET1&2), C++, C#.Net1
Mon site
vendredi 22 février 2008 à 16:33:26 | Re : Une ame charitable pour arrander un script

balous001

merci de m'avoir aiguillé !
et desolé !
vendredi 22 février 2008 à 16:43:11 | Re : Une ame charitable pour arrander un script

balous001

Desolé de vous embeter une seconde fois
Mais pouvez vous m'indiquez exactement ou aller.
Car je suis novice et malheureusement votre site est bien grand pour moi !

Merci



Cette discussion est classée dans : function, var, vip, if, getreferc


Répondre à ce message

Sujets en rapport avec ce message

Problème pour appeler une fonction en javascript [ par Joke758 ] J'essaie d'appeler la fonction AM.PassportEncrypt.EncryptData("test1", null, "pwd", null) mais je ne sais pas pourquoi ça ne fait rien..voici ma sourc Player multi format sécuriter java & php [ par c2bomb ] bonjour a tous,je cherche a afficher mon player,dans une fenetre style popup,mais hélas je suis vraiment nulle en javascript...si quelq'un peut m'aide Liste déroulante avec recherche par clavier [ par chahy ] Bonjour les amiesj'ai un petit probléme que je n'arrive pas a le resoudre , je veux que le resultat trouvez avec cette Liste déroulante avec recherche modification lightbox .... bouton close en haut a droite [ par petardier ] bonjour,je souhaite modifier une light box en mettant le bouton close en haut a gauche , plutot qu'en bas.Ainsi, quand une image est plus grande que l changer le sens d'un texte qui défile [ par anthony428 ] Bonjour à tous, je viens de plonger les mains dans un site dont je suis chargé de faire la refonte et je souhaiterais changer le sens du texte qui d Chargement ajax du contenu au clic sur marqueur Google Maps V3 [ par vince240986 ] Bonjour, Voilà plusieurs jours que je bloque sur la création d'une fonction. L'idée est la suivante, j'ai crée une appli avec une base de données et mon diapo ne s'affiche pas sans connection [ par hitu ] Bonjour j'ai réalisé un diaporama mais celui ne s'affiche pas quand je ne suis pas connecté! Merci d'avance voici mon code: [code=as][code=html] jquery liscroller aide ! [ par phoenixgreg ] Hi tt le monde ! Voilà j'ai mon petit script jquery liscroller, il fonctionne très bien, le texte défile mais j'aimerais qu'il défile à la vertical ( besoin d,aide sur un jeu en php [ par alfredo09 ] bonjours a tous je joue a un jeu en php world of stargate et je me sert d,un script pour planifier mes soldats. il faut 8 minutes pour crée 3 soldats


Nos sponsors


Sondage...

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 9,641 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales