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 3 of 3
  1. #1
    Junior Member
    Join Date
    Apr 2003
    Posts
    8
    Member #
    1029
    I'm new to web design and so was interested in a feature on "www.counter-strike.net". The backgrounds of cells in some of the tables change colour when you mouse over them. Viewing the source showed me how this was accomplished. I show a similar code below:

    <table width="100%" height="50" onmouseover="this.style.backgroundColor='red';" onmouseout="this.style.backgroundColor='green';">
    <tr><td width="100%" height="50">Hello!</td></tr>
    </table> (All one line)

    Expecting this to be some kind of link to an external style sheet, I tried it anyway for myself. It worked! My question is, what is the code? I don't recognise any of the bold. It doesn't look like any HTML I've ever seen and the semicolon looks like JavaScript or CSS (remember, I'm new to this!!). Could someone tell me what this is called and where I can find more information about it?

    Thanks in advance!

    Matt

  2.  

  3. #2
    Senior Member splufdaddy's Avatar
    Join Date
    Feb 2003
    Location
    Boston, MA
    Posts
    4,488
    Member #
    735
    The code in bold is Javascript. W3CSchools.com is a good place to learn javascript. Javascriptkit.com is a good place for free javascripts that you can use on your site, and also disect to see how they work.

  4. #3
    Senior Member rjahrman's Avatar
    Join Date
    Feb 2003
    Posts
    180
    Member #
    705
    If you're _really_ getting into web design you could get a book on it. However, that would give you a lot more than you will probably use.

    I recommend http://javascript.internet.com/ for examples of scripts. Also, one of the best tutorials I've seen is at http://www.wdvl.com/Authoring/JavaScript/Tutorial/.


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