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 1 of 2 1 2 LastLast
Results 1 to 10 of 14
  1. #1
    Senior Member
    Join Date
    Apr 2003
    Location
    Hamden Ct
    Posts
    103
    Member #
    1121
    Is there anyway to make fading tables like the the ones found on HomeLAN Xtreme using javascript instead of images?

  2.  

  3. #2
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    where are the fading tables, i don't see them?...

    i think it is possible, i will have a go, not promising anything though
    JR

  4. #3
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    just a quick go, using 1 menu button to see if this is what you want.

    if you would like i will make one that can use multiple menu buttons and that is easy to add to. I will also need to know what colours etc. you want to use
    JR

  5. #4
    Senior Member
    Join Date
    Apr 2003
    Location
    Hamden Ct
    Posts
    103
    Member #
    1121
    That's perfect. Thanks alot.

  6. #5
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    if you need any help making the whole menu i can do it if you are having any problems
    JR

  7. #6
    Senior Member
    Join Date
    Apr 2003
    Location
    Hamden Ct
    Posts
    103
    Member #
    1121
    If you could make it so that I can use it with more than one table, that would be awesome.

  8. #7
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    different tables or table cells?

    also, what colour do you want it?
    JR

  9. #8
    Senior Member
    Join Date
    Apr 2003
    Location
    Hamden Ct
    Posts
    103
    Member #
    1121
    I'm not sure of the colors that I want right now. Couldn't I just change them by changing the colors in the array?

    Different table cells.

  10. #9
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    i can't seem to do it, if i post the erroneous code somebody should take a look and try to fix it
    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 settimer(tableid) {
    	timer = setTimeout("linkfader('" + tableid + "')", 100)
    }
    
    function linkfader(tableid) {
    	document.getElementById(tableid).style.backgroundColor = colors[i];
    	i = i + 1;
    	if (i == 6) {
    	i = 0
    	} else {
    	settimer("'" + tableid + "'");
    	}
    }
    </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="settimer('link1')">
    <tr>
    <td align="center" class="menu" id="link1">Link 1</td>
    </tr>
    </a>
    <a href="#" onMouseOver="settimer('link2')">
    <tr>
    <td align="center" class="menu" id="link2">Link 2</td>
    </tr>
    </a>
    </table>
    </body>
    </html>
    JR

  11. #10
    Senior Member
    Join Date
    Apr 2003
    Location
    Hamden Ct
    Posts
    103
    Member #
    1121
    When I tried it out, it doesn't fade, just changes a color. You have to go over it alot of times to get it to fade. Is there anyway to fix that?


Page 1 of 2 1 2 LastLast

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 07:20 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com