Pages

Web hosting

Monday, 22 July 2013

HTML Heading


HTML Heading

<!DOCTYPE html>
<html>
<body>

<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>

</body>
</html>
Try It Yourself >>
-: More HTML Example :-

HTML Heading Align Attribute

<!DOCTYPE html>
<html>
<body>

<h1 align="center">This is heading 1</h1>
<h2 align="left">This is heading 2</h2>
<h3 align="right">This is heading 3</h3>
<h4 align="justify">This is heading 4</h4>

</body>
</html>
Try It Yourself >>
-: More HTML Example :-

Thursday, 18 July 2013

HTML Tutorial


HTML

With HTML you can create your own Web site.
This tutorial teaches you everything about HTML.
HTML is easy to learn - You will enjoy it.
Examples in Each Chapter Click

Monday, 15 April 2013

Drop down menu with page redirection

<html>
  <head>

<script language="javascript" type="text/javascript" >
    function jumpto(x)
    {
    if (document.form1.jumpmenu.value != "null")
    {
    document.location.href = x
    }
    }
</script>
  </head>

  <body>

<p>Drop down Menu:</p>
<form name="form1">
<select name="jumpmenu" onChange="jumpto(document.form1.jumpmenu.options[document.form1.jumpmenu.options.selectedIndex].value)">
  <option>Jump to...</option>
  <option value=http://yogeshtourism.blogspot.in/>Gujarat Tourism</option>
  <option value=http://yognet.blogspot.in/>JavaScript</option>
  <option value=http://www.w3schools.com/>HTML</option>
  <option value=http://www.quackit.com/css/>CSS</option>
  <option value=http://www.quackit.com/sql/tutorial/>SQL</option>
  <option value=http://www.quackit.com/database/tutorial/>Database Tutorial</option>
  <option value=http://www.quackit.com/web_hosting/>Web Hosting Tutorial</option>
</select>
</form> 
 
  </body>
</html>
-->
Jump Menu:

Thursday, 7 March 2013

HTML code for find distance with map

HTML code for find distance with map
<html>
       <head>
          <title>Bing Distance Calculator | http://sharp-coders.blogspot.com</title>
         
          <script src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2" type="text/javascript"></script>
          <script type="text/javascript">
             var map = null;
          
             function GetMap()
             {
                map = new VEMap('myMap');
                map.LoadMap();
          
                var options = new VERouteOptions();
                options.RouteCallback = onGotRoute;
    options.DistanceUnit = VERouteDistanceUnit.Kilometer;
    options.UseTraffic = true;
    //here you can add more options ... you can get a list of options that can be used from bing map's website
                map.GetDirections([document.getElementById("origin").value, document.getElementById("destination").value],
                                   options);
             }
             function onGotRoute(route)
             {
               // Unroll route
               var legs     = route.RouteLegs;
               var turns    = "Total distance: " + route.Distance.toFixed(1) + " Km\n";
               var numTurns = 0;
               var leg      = null;
    document.getElementById("distance").value = route.Distance.toFixed(1) + " Km\n";
               // Get intermediate legs
                for(var i = 0; i < legs.length; i++)
                {
                   // Get this leg so we don't have to derefernce multiple times
                   leg = legs[i];  // Leg is a VERouteLeg object
                    
                   // Unroll each intermediate leg
                   var turn = null;  // The itinerary leg
                    
                   for(var j = 0; j < leg.Itinerary.Items.length; j ++)
                   {
                      turn = leg.Itinerary.Items[j];  // turn is a VERouteItineraryItem object
                      numTurns++;
                      turns += numTurns + ".\t" + turn.Text + " (" + turn.Distance.toFixed(1) + " Km)\n";
                   }
                }
    document.getElementById("instructions").value = turns;
                //alert(turns);
             }
          </script>
       </head>
       <body onload="GetMap();">
<table align="center">
<tr><td>Origin:</td><td><input type="text" id="origin"></td></tr>

<tr><td>Destination:</td><td><input type="text" id="destination"></td></tr>

<tr><td></td><td><input onclick="GetMap()" type="button" value="Calculate" /></td></tr>

<tr><td>Distance:</td><td><input type="text" id="distance"></td></tr>

<tr><td>Instructions:</td><td>
     <textarea cols="30" id="instructions" rows="7"></textarea></td></tr>
</table>
     <br /><br />
          <div id="myMap" style="height: 400px; position: relative; width: 400px;">
</div>
<a href="http://sharp-coders.blogspot.com/" target="_blank">http://sharp-coders.blogspot.com</a>
       </body>
    </html>


Thursday, 21 February 2013

JEE Main

12th Science JEE Main exam books
click for download

Monday, 18 February 2013

OSI Reference Model


 
The OSI Model consists of the following seven layers:
  1. Application
  2. Presentation
  3. Session
  4. Transport
  5. Network
  6. Data Link
  7. Physical
What do the 7 layers really do?
 
When data is being transferred and shared over a network, it must pass through each of the 7 layers in one machine, from the application layer down, before zipping across a network and working its way up the layers in the receiving machine.
The OSI Model
 
The main use of the model is to help network designers understand the functionality involved with the development and flow of data communications. Included within this model are the protocols for network properties and transmission methods.
The model is divided into 7 layers, with individual characteristics and tasks within each layer. Each layer must communicate with the layer directly above and below through a series of standards and protocols.

Illustration with Images Text
Application Layer: Provides network services to user applications. It is responsible for exchanging information between programs running on the machine, such as an e-mail program, and other services running on a network, such as a print server or another computers' application.
Presentation Layer: Concerned with how data is converted and formatted for data transfer. Examples of format conversions include ASCII text for documents and .gif and JPG for images. This layer performs code conversion, data translation, compression and encryption.
Session Layer: Determines how two devices establish, maintain and manage a connection - how they talk to each other. These connections are called sessions.
Transport Layer: Responsible for breaking the data into segments, establishing an end-to-end logical connection between machines, and providing for error handling.
Network Layer:  Responsible for determining addressing on the network, determining the routes that information will take on its journey, and managing network traffic congestion. Data at this level is packaged into packets.
Data Link Layer: Provides the link for how data, packaged into frames is communicated through hardware to be transported across a medium. It communicates with network cards, manages physical layer communications between connecting systems and handles error notification.
Physical Layer: Specifies how data is processed into bits and physically transferred over medium, such as cables. It's responsible for activating and maintaining the physical link between systems.

Thursday, 7 June 2012

DCN GTU Question

GTU Exam Dec. - 2011
Subject: Data Communication and Network       Date: 07/12/2011


Question -3 (b)         5 Mrks
What is IP Address? Explain different class of IP address and find the class of following IP address: 192.168.1.5

Answer
IP address:
                Internet Protocol Address (or IP Address) is 32 bit an unique address that computing devices use to identify itself and communicate with other devices in the Internet Protocol network. Any device connected to the IP network must have an unique IP address within its network.


Class of IP address:
                IP addressing supports five different address classes: A, B,C, D, and E. Only classes A, B, and C are available for commercial use.

From
To
Class – A
0.0.0.0
127.255.255.255
Class – B
128.0.0.0
191.255.255.255
Class – C
192.0.0.0
223.255.255.255
Class – D
224.0.0.0
239.255.255.255
Class - E
240.0.0.0
255.255.255.255


 
          Class A
        In class-A first number is network Id (N.H.H.H).For example  in IP address: 4.22.145.90 number - 4 is network Id.
        In class-A 0 not be used as Net ID.
        In class-A total 126 different network generate from 1-126.
        127 is reserved for loop back functions.
        Total 16,777,214 Hosts per one network and total 126 x 16,777,214 host in class – A.

          Class B
        In class-B first two numbers is network Id (N.N.H.H). For example  in IP address: 129.6.8.4 number – 129.4 is network Id.
        The rang of class – B is 128-191.
        The first IP Address is the NET ID.
        The last IP Address is the Broadcast Address
        In class – B 16,384 Different Networks
        Total 65543 Hosts per one network

          Class C
        In class-C first three numbers is network Id and last is hostid(N.N.N.H). For example in IP address: 197.76.9.23 number – 197.76.9 is network Id.
        The rang of Class – C is 192-223
        The first IP Address is the NET ID
        The last IP Address is the Broadcast Address
        In class – C 2,097,152 Different Networks
        254 Hosts per Network

          CLASS D – Used for multicast broadcasts
  • CLASS E – Experimental addresses not available to the public
IP address: 192.168.1.5 is in Class – C because first number 192 in range of class – C.


 Note: This also topic-1 of Chapter-7

Friday, 4 May 2012

Assignment - 3 is ready online now.

Download it and write.

Download

Best Of Luck.