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>
Tags: Background Attachment, Background Color, Background Image, Background Repeat, div background, div effects






Leave a Reply