JavaScript Tutorial/HTML Tags/td

Материал из Web эксперт
Версия от 11:24, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Change Table cell background color (IE)

   <source lang="javascript">

<html> <head> <title>A Simple Page</title> <script language="JavaScript">

</script> </head> <body onMouseover="chgColor()" onMouseout="chgBack()">

       
       
       

</body> </html></source>


Set and clear table cell content

   <source lang="javascript">

<html> <head> <style type="text/css"> td.menu {font-family:Arial;

       font-weight:bold;
       background-color:blue;
       cursor:hand}

a{

   text-decoration:none;
   color:black;

} </style> <script language="javascript" type = "text/javascript">

</script> </head> <body>

</tr>
     

</body> </html></source>


Table cell onmouseout action event

   <source lang="javascript">

<html> <head> <style type="text/css"> td.menu {font-family:Arial;

       font-weight:bold;
       background-color:blue;
       cursor:hand

} a{

   text-decoration:none;
   color:black;

} </style> <script language="javascript" type = "text/javascript">

</script> </head> <body>

</tr>
     

</body> </html></source>


Table cell onmouseover action event

   <source lang="javascript">

<html> <head> <style type="text/css"> td.menu {font-family:Arial;

       font-weight:bold;
       background-color:blue;
       cursor:hand}

a{

   text-decoration:none;
   color:black;

} </style> <script language="javascript" type = "text/javascript">

</script> </head> <body>

</tr>
     

</body> </html></source>