Saturday, February 18, 2012

Image fade effect using CSS


This program is for make fade  effect of Image


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="csstest.aspx.cs" Inherits="csstest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
   
   
    <style type="text/css">
    img
    {
    opacity:0.4;
    filter:alpha(opacity=40); /* For IE8 and earlier */
    }
    img:hover
    {
    opacity:1.0;
    filter:alpha(opacity=100); /* For IE8 and earlier */
    }
    </style>
   
</head>
<body>
    <form id="form1" runat="server">
    <div>
     
      <img src="Chrysanthemum.jpg" width="150" height="113" alt="klematis" />
      <img src="Desert.jpg" width="150" height="113" alt="klematis" />
    
    </div>
    </form>
</body>
</html>

No comments:

Post a Comment