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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Zdarzenia klienckie</title>
    <link href="chapterStyles.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
    .normal { 
        border: 3px double #999999;
        padding: 0.25em;
        background-color: aliceblue;
        color: DimGray;
        font: bold 12px Verdana,Helvetica,Arial,sans-serif ;
    }
    .over {
        border: 3px double DarkRed;
        padding: 0.25em;
        background-color: lightcyan;
        color: DarkRed;
        font: bold 12px Verdana,Helvetica,Arial,sans-serif ;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
         <div id="container">
            <h1>Użycie zdarzeń klienta</h1>

            <asp:Button ID="btnTest" runat="server" 
               Text="Kliknij mnie" CssClass="normal"
               OnClientClick="alert('Wysyłanie danych na serwer, proszę czekać');" 
               OnMouseOver="this.className='over';"
               OnMouseOut="this.className='normal';"
            />
         </div>
    </form>
</body>
</html>
