Posts

Showing posts from December, 2014

Use of CSS without frames

1) style1.html <html> <head> <title>Style sheet 1 </title> <link rel=stylesheet type=text/css href=style1.css> </head> <body> <h1>India is my country</h1> <h2>India is my country</h2> <h3>India is my country</h3> <h4>India is my country</h4> <h5>India is my country</h5> </body> </html> style1.css <style type=text/css> <!-- body{background-color:black}; h1{color:blue; background-color:red;     text-decoration:line-through;     position:absolute;top:200px;left:400px;     font-family:"Comic Sans MS";     text-align:center}; h2{color:yellow;background-color:blue;     text-decoration:line-through;     position:absolute;top:120px;left:330px;     font-family:"Lucida Handwriting";     text-align:center}; h3{color:red;background-color:white;  ...

ASP.NET (Hit Counter)

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!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>Hit Counter</title> </head> <body>     <form id="form1" runat="server">     <div>     <%  Application.Lock()         Application("counter") = Application("counter") + 1         Application.UnLock()         Response.Write("<h1 align=center>")         Response.Write("Total number of visits to the website are ")         Response.Write(Application("counter"))    ...