Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14
  1. #11
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    Liked
    1 times
    i know, as i said, it didn't work...

    i am waiting for somebody to come and try to fix it, or for me to spot my mistake
    JR

  2.  

  3. #12
    Senior Member
    Join Date
    Apr 2003
    Location
    Hamden Ct
    Posts
    103
    Member #
    1121
    Oops, didn't read that. Haha.

  4. #13
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    Liked
    1 times
    this should work...

    Code:
    <html>
    <head>
    <title>Link Fade</title>
    <script type="text/javascript">
    var colors = new Array()
    colors[0] = "#aaaaaa";
    colors[1] = "#bbbbbb";
    colors[2] = "#cccccc";
    colors[3] = "#dddddd";
    colors[4] = "#eeeeee";
    colors[5] = "#ffffff";
    i = 0;
    
    function linkfader(tableid) {
    	document.getElementById(tableid).style.backgroundColor = colors[i];
    	i = i + 1;
    	if (i == 6) {
    	i = 0
    	} else {
    	timer = setTimeout("linkfader('" + tableid + "')", 100)
    	}
    }
    </script>
    <style type="text/css">
    .menu {
    	border-width: 1px; 
    	border-style: solid; 
    	border-color: #000000;
    	background-color: #ffffff;
    	cursor: hand;
    	font-family: verdana;
    	font-size: 12px;
    	color: #000000;
    }
    </style>
    </head>
    
    <body>
    <table width="90" height="25">
    <a href="#" onMouseOver="linkfader('link1')">
    <tr>
    <td align="center" class="menu" id="link1">Link 1</td>
    </tr>
    </a>
    <a href="#" onMouseOver="linkfader('link2')">
    <tr>
    <td align="center" class="menu" id="link2">Link 2</td>
    </tr>
    </a>
    </table>
    </body>
    </html>
    
    JR

  5. #14
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    Liked
    1 times
    it does get kinda screwy though when you put your mouse over the second button without going off the 1st one. I will try to fix that
    JR


Page 2 of 2 FirstFirst 1 2

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:17 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com