FREE CODE Friday, 10.20.2017, 0:41 AM
Main | Registration | Login Welcome Guest | RSS
[ New messages · Members · Forum rules · Search · RSS ]
۞Forum Statistics۞
NEW TOPPIV
HOT TOPPIC
TOP MEMBERS
NEW MEMBERS
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • shadow text Have(0) reviews faxuhi
  • Beautiful text two Have(0) reviews faxuhi
  • Nice menu with java script <p1> Have(2) reviews faxuhi
  • Mouse Clock Have(1) reviews faxuhi
  • HTML table placeholder Have(0) reviews faxuhi
  • Html graphic bullets Have(0) reviews faxuhi
  • Different times of the world by the users choice from a list Have(0) reviews faxuhi
  • Mouseover Alert HTML Script Have(0) reviews faxuhi
  • Redirect to another page and link automatically to other pg Have(0) reviews faxuhi
  • Combo box link box to browse your website easily Have(0) reviews faxuhi
  • Message to user by clicking a button Have(0) reviews faxuhi
  • Background changing color effect Have(0) reviews faxuhi
  • faxuhi[189]Bài
  • mcsnagger0022[0]Bài
  • thinknoodles[0]Bài
  • karaganis888[0]Bài
  • faxuhi [189]Bài
  • mcsnagger0022 [0]Bài
  • thinknoodles [0]Bài
  • karaganis888 [0]Bài
  • Page 1 of 11
    Forum » Web Javascript » Color Table » Color Table
    Color Table
    faxuhiDate: Monday, 07.25.2011, 3:24 PM | Message # 1
    Colonel
    Group: Administrators
    Messages: 189
    Reputation: 0
    Status: Offline
    Code
    <head><SCRIPT LANGUAGE="JavaScript">

    <!-- Begin
    IE = (document.all);
    if (IE) {
       var chidc = new Array();
       var hexc = new Array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
       var chidn = new Array(100,70,40);
       var step = new Array(10,10,10);
       var chway = new Array(step[0],step[1],step[2]);
       var tone = new Array(1,1,1);
       function chcol() {
         for (i=0; i<3; i++) {
           chidn[i]+=chway[i];
           if (chidn[i]>=255) {
             chidn[i] = 255;
             chway[i] = -step[i];
           }
         else if (chidn[i]<=40) {
             chidn[i] = 40;
             chway[i] = step[i];
             tone[i]>=3? tone[i] = 1:tone[i]++;
           }
           col1 = hexc[Math.floor(chidn[i]/16)];
           col2 = hexc[chidn[i]%16];
           tored = '';
           toblue = '';
           for (j=1; j<tone[i]; j++) tored+='00';
           for (j=3; j>tone[i]; j--) toblue+='00';
           chidc[i] = '#'+tored+col1+col2+toblue;
           td = eval('document.all.chcol'+i);
           td.style.backgroundColor = chidc[i];
         }
         setTimeout('chcol()',100);
       }
    }
    //  End -->
    </script>    </head>

    <DIV ALIGN="center"><FONT SIZE="4"><B></B></FONT>

    <center>

    <table cellspacing=2 cellpadding=0 bgcolor=#999999 width=300>
    <tr>
    <td width=33% align=center id=chcol0 name=id=chcol0>
    <font color=white><b>Welcome to here</b></td>
    </tr><tr><td width=33% align=center id=chcol1 name=id=chcol0>
    <font color=white><b>www.javascriptfreecode.com</b></td></tr><tr>
    <td width=33% align=center id=chcol2 name=id=chcol0>
    <font color=white>
    <b>http://javascriptfreecode.com</b></td>
    </tr>
    </table>
    </center>
    <SCRIPT LANGUAGE="JavaScript">chcol();</script>

    <A href=""><B></B></A></P>

    </DIV>  
    <!-- END MAIN BODY CONTENT-->
     
    Forum » Web Javascript » Color Table » Color Table
    Page 1 of 11
    Search:

    Copyright MyCorp © 2017 Website builderuCoz