[Help] Wapka.MOBI Javascript code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Help] Wapka.MOBI Javascript code

    Please fix this code for me I'm using it in wapka
    Code:
    <script type="text/javascript">
    <!--
    var top = "::top::"; 
    var lock = "::lock::"; 
    var locktop = "::lock::::top::"; 
    if(top == "top"){ 
    document.write('<img src="/img/2932/2932357_f1aeefa1ad.gif" alt="" />');
    
    }else if(lock == "lock"){ 
    document.write('<img src="/img/2932/2932350_04a3c20827.gif" alt="" />');
    
    }else if(locktop == "locktop"){ 
    document.write('<img src="/img/2932/2932356_70292643d2.gif" alt="" />');
    
    } else { 
    document.write('<img src="/img/2932/2932587_85eb730a6a.gif" alt="" />');
    
    }
    //-->
    </script>
    ::top:: = top
    ::lock:: = lock

    It only displays the LAST code in } else { even in var top = "::top::"; i changed ::top:: to top. Still not working

    #2
    [QUOTE=anthrax68;95370]wtf
    Code:
    <script type="text/javascript">
    <!--
    var top = "arrtop"; 
    var lock = "arrlock"; 
    var locktop = "arrlocktop"; 
    if(top == "arrtop"){ 
    document.write('<img src="/img/2932/2932357_f1aeefa1ad.gif" alt="" />');
    
    }else if(lock == "arrlock"){ 
    document.write('<img src="/img/2932/2932350_04a3c20827.gif" alt="" />');
    
    }else if(locktop == "arrlocktop"){ 
    document.write('<img src="/img/2932/2932356_70292643d2.gif" alt="" />');
    
    } else { 
    document.write('<img src="/img/2932/2932587_85eb730a6a.gif" alt="" />');
    
    }
    //-->
    </script>

    Comment


      #3
      Javascript:
      PHP Code:
      <script type="text/javascript">
      var 
      randomnumber Math.floor(Math.random()*4);
      if(
      randomnumber == 0){ 
      document.write('<img src="/img/2932/2932357_f1aeefa1ad.gif" alt="" />');

      }else if(
      randomnumber == 1){ 
      document.write('<img src="/img/2932/2932350_04a3c20827.gif" alt="" />');

      }else if(
      randomnumber == 2){ 
      document.write('<img src="/img/2932/2932356_70292643d2.gif" alt="" />');

      } else { 
      document.write('<img src="/img/2932/2932587_85eb730a6a.gif" alt="" />');

      }
      </
      script
      PHP:
      PHP Code:
      <?php

      $randomnumber 
      rand(0,3);
      if(
      $randomnumber == 0){ 
      echo 
      '<img src="/img/2932/2932357_f1aeefa1ad.gif" alt="" />';

      }else if(
      $randomnumber == 1){ 
      echo 
      '<img src="/img/2932/2932350_04a3c20827.gif" alt="" />';

      }else if(
      $randomnumber == 2){ 
      echo 
      '<img src="/img/2932/2932356_70292643d2.gif" alt="" />';

      } else { 
      echo 
      '<img src="/img/2932/2932587_85eb730a6a.gif" alt="" />';

      }
      ?>

      Comment

      Working...
      X