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.

Results 1 to 9 of 9
  1. #1
    Bic
    Bic is offline
    Junior Member Bic's Avatar
    Join Date
    Oct 2003
    Posts
    28
    Member #
    3513
    Heres my code:
    Code:
     <table width="100%" cellpadding="0" cellspacing="0" style="border-top:1px #000000 solid;border-bottom:1px #000000 solid;">
                  <tr> 
                    <td onmouseover="changethiscellbgcolor"><div align="center"><strong><font size="1" face="verdana">INDEX</font></strong></div></td>
                    <td onmouseover="changethiscellbgcolor"><div align="center"><strong><font size="1" face="verdana">NEWS</font></strong></div></td>
                    <td onmouseover="changethiscellbgcolor"><div align="center"><strong><font size="1" face="verdana">WORK</font></strong></div></td>
                    <td onmouseover="changethiscellbgcolor"><div align="center"><strong><font size="1" face="verdana">DOWNLOADS</font></strong></div></td>
                    <td onmouseover="changethiscellbgcolor"> <div align="center"><strong><font size="1" face="verdana">ABOUT</font></strong></div></td>
                  </tr>
                </table>
    How do i get it so when the mouse is over that specific cell that the bgcolro changes?
    BOXWARE.NET Productions - Tomorrow's not promised, so lookout for the rampaging beer cans.

  2.  

  3. #2
    Member
    Join Date
    Feb 2003
    Posts
    34
    Member #
    677
    Hm... try this:

    Paste in your head:


    <script language="javascript">
    //<!--
    function chooseaname()
    {
    document.bgColor="red"
    }
    //-->
    </script>



    Then in each cell have:

    onMouseover="chooseaname()"


    This is what I would use, except that I don't think 'onMouseOver' works with cells, or tables for the matter. Good luck.

  4. #3
    Bic
    Bic is offline
    Junior Member Bic's Avatar
    Join Date
    Oct 2003
    Posts
    28
    Member #
    3513
    Thanks man, but it dosnt work. Ive seen this done before and it probably so easy i just cant figure it out. Thanks anyways.
    BOXWARE.NET Productions - Tomorrow's not promised, so lookout for the rampaging beer cans.

  5. #4
    Member
    Join Date
    Feb 2003
    Posts
    34
    Member #
    677
    Are you sure it was a table? It could've been an image map, or just a rollover.

    ?

  6. #5
    Bic
    Bic is offline
    Junior Member Bic's Avatar
    Join Date
    Oct 2003
    Posts
    28
    Member #
    3513
    Yea it was a table.
    BOXWARE.NET Productions - Tomorrow's not promised, so lookout for the rampaging beer cans.

  7. #6
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  8. #7
    Junior Member romenov's Avatar
    Join Date
    Oct 2003
    Location
    Belgium
    Posts
    29
    Member #
    3470
    Try this one
    Code:
    <td onMouseover="this.style.backgroundColor='#9d9d9d'" onMouseout="this.style.backgroundColor=''" align="left" height="18">

  9. #8
    Bic
    Bic is offline
    Junior Member Bic's Avatar
    Join Date
    Oct 2003
    Posts
    28
    Member #
    3513
    Thank you so much.
    BOXWARE.NET Productions - Tomorrow's not promised, so lookout for the rampaging beer cans.

  10. #9
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    don't use camelCase on your attributes. The HTML DTD is all lower case, like so:
    Code:
    <td onmouseover="return;" onmouseout="return;">


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 06:26 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com