Jquery scrollTop() method


The scrollTop() method sets or returns the vertical scrollbar position for the selected elements. When the scrollbar is on the top, the position is 0.

Syntax



$(selector).scrollTop()




Example 


<!DOCTYPE html>
<html>
<head>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script>
$(document).ready(function(){
    $("button").click(function(){
        alert($("div").scrollTop() + " px");
    });
});
  </script>
</head>
<body>
  <div style="border:1px solid black;width:100px;height:150px;overflow:auto">
    this is nitin kumar . this is nitin kumar. this is nitin kumar  this is nitin kumar . this is nitin kumar .
  </div><br>
  <p>Move the scrollbar down and click the button again and again.</p>
  <button> alert  value of vertical position of the scrollbar</button>
</body>
</html>


HTML marquee Tag

The HTML <marquee> element is used to insert a scrolling area of text. You can control what happens when the text reaches the edges of its content area using its attributes.The <marquee> tag deprecated in HTML5. Do not use this element, instead, you can use JavaScript and CSS to create such effects.

Example -1

<!DOCTYPE html>
<html>
<body>
  <marquee>This is an example of html marquee and this text move from leftside to rightside by default </marquee>
</body>
</html>


Attributes:


Attributes
Value
Description
behavior
scroll
slide
alternate
It defines the scrolling type.
bgcolor
rgb(x,x,x)
#xxxxxx
colorname
It is used to give a background color.
direction
up
down
left
right
It sets the direction for the scrolling content.
height
pixels
%
It defines the marquee's height.
hspace
pixels
It defines horizantal space around the marquee.
loop
number
It defines how many times the content will scroll. If we don't define this, the content will scroll forever.
scrollamount
number
It defines the scrolling amount at each interval in pixels. Default value is 6.
scrolldelay
seconds
It defines how long delay will be between each jump. The default value is 85 and smaller amounts than 60 will be ignored.
truespeed
seconds
If you use this attribute, you can delay the scroll lesser than 60.
vspace
pixels
It defines vertical space around the marquee.




Example -2

<!DOCTYPE html>

<html>

<body>

  <marquee direction="up" behavior="alternate" style="height:100px">TEXT</marquee>

</body>

</html>

HTML tags


HTML tags

This is a list of tags used in the HTML language. Each tag starts with a tag opener (a less-than sign) and ends with a tag closer (a greater than sign). So HTML tags contain three main parts: opening tag, content and closing tag. But some HTML tags are unclosed tags.

Syntax


<tag> content </tag>


Example



<TITLE> ..this is Page title . </TITLE>


Basic HTML

       Tag                             Description

1.     <!DOCTYPE>                 Defines the document type
2.     <html>                           Defines an HTML document
3.     <head>                          Defines information about the document
4.     <title>                            Defines a title for the document
5.     <body>                          Defines the document's body
6.     <h1> to <h6>                Defines HTML headings
7.     <p>                                 Defines a paragraph
8.     <br>                               Inserts a single line break
9.     <hr>                               Defines a thematic change in the content
10. <!--...-->                         Defines a comment

Some Forms and Input Tags
       Tag                             Description
1.     <form>                          Defines an HTML form for user input
2.     <button>                       Defines a clickable button
3.     <select>                         Defines a drop-down list
4.     <optgroup>                  Defines a group of related options in a drop-down lis
5.     <option>                       Defines an option in a drop-down list
6.     <input>                          Defines an input control
7.     <textarea>                    Defines a multiline input control (text area)
8.       <label>                         Defines a label for an <input> element
9.      <fieldset>                      Groups related elements in a form
10.   <legend>                       Defines a caption for a <fieldset> element




How to install and Register ASP.Net with IIS in windows 7

How to install and Register ASP.Net with IIS in windows 7
Today I am going to explain how to register ASP.Net with IIS when installing ASP.Net in IIS so that an ASP.Net page can request to recognize or respond from IIS. If it is not registered with Internet Information Services then you will get the error as in the following.


ASP.Net 2.0
“ASP.NET 2.0 has not been registered on the Web Server. You need to manually configure your Web server for ASP.NET 2.0 for your site to run correctly.”

(OR)

ASP.Net 4.0
“ASP.NET 4.0 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 for your site to run correctly”

Follow these 4 Steps to resolve this issue:


Step -1

To find the location for the aspnet_regiis.exe file, go to the location C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319   as in the following:


 Kindly check, based on your system's bits (32 0r 64) for the .NET Framework location.

Step -2
Go to inside the folder using cd command like this



Step -3

Now register ASP.Net with IIS as in the following command (aspnet_regiis.exe):
Full command Syntax:
“C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe–I”




Step-4
Press enter and wait till installation completion




 Now your IIS is registered successfully.