Cascading Style Sheets Tutorial

Effects: CSS Javascript + forms the background to achieve discoloration

  <! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.0 Transitional / / EN"> 
<HTML>
<HEAD>
  <TITLE> CSS styles, the use of JavaScript (onmouseover / onmouseout) 2 </ TITLE> 
  <META NAME="Generator" CONTENT="EditPlus"> 
  <META NAME="Author" CONTENT=""> 
  <META NAME="Keywords" CONTENT=""> 
  <META NAME="Description" CONTENT=""> 

  <style Type="text/css"> 
  Table 
  ( 

  Background-color: # 000000; 
  Cursor: hand; 
  ) 

  Td 
  ( 
  / * Set up onmouseover events * / 
  Onmouseover: expression (onmouseover = function () (this.style.borderColor = 'blue'; this.style.color = 'red'; this.style.backgroundColor = 'yellow')); 

  / * Set up onmouseout events * / 
  Onmouseout: expression (onmouseout = function () (this.style.borderColor =''; this.style.color =''; this.style.backgroundColor =''}); 
  Background-color: # ffffff; 
  ) 
  </ Style> 
  </ HEAD> 

<BODY>
  <TABLE Cellspacing='1px' border='1'> 
  <TR> 
  <TD> 1 …… </ TD> 
  <TD> …… 2 </ TD> 
  <TD> 3 …… </ TD> 
  </ TR> 
  <TR> 
  <TD> 4 …… </ TD> 
  <TD> 5 …… </ TD> 
  <TD> 6 …… </ TD> 
  </ TR> 
  </ TABLE> 
  </ BODY> 
  </ HTML> 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Tags: Background Attachment, Background Color, Background Image, Background Repeat, div background, div effects

Releated Posts

  • Javascript website effects: fighters in the background of fireworks
  • Using ASP + CSS Random background
  • Using ASP + CSS realize website random background
  • Css shielding layer + Background pop-up pages (compatible with fiefox)
  • CSS graded in the background as well as to the use of matters

This entry was posted on Tuesday, January 22nd, 2008 at 12:00 am and is filed under Css+Div Web Design. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« FIREFOX under IE and the difference between CSS
CSS options »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial