Android

Android is the most popular operating system in smart phone world.

View Post

Microsoft

Microsoft is developer of windows operating system..

View Post

Wordpress

Word press is one of the most popular tool for blog site.

View Post

Technology

Advertise Here

Entertainment

CSS

Graphics Tutorial

Photoshop

Monday, March 14, 2016

CSS Button Project

Sampili Tuition     6:42 AM     No comments

Animated Button

In this tutorial I will show you how to make an animated button using css and html.



The complete code is.

<!--DOCTYPE html--> <html> <head> <style> .button { display: inline-block; border-radius: 4px; background-color: #f4511e; border: none; color: #FFFFFF; text-align: center; font-size: 28px; padding: 20px; width: 200px; transition: all 0.5s; cursor: pointer; margin: 5px; } .button span { cursor: pointer; display: inline-block; position: relative; transition: 0.5s; } .button span:after { content: &#187;; position: absolute; opacity: 0; top: 0; right: -20px; transition: 0.5s; } .button:hover span { padding-right: 25px; } .button:hover span:after { opacity: 1; right: 0; } </style> </head> <body> <h2>Animated Button</h2> <button class="button" style="vertical-align:middle"><span>Hover </span></button> </body> </html>

Black and white & color combination in photoshop

Sampili Tuition     5:46 AM     No comments
Black & white and color combination in photoshop

Black and white to color photograph in photoshop

Sampili Tuition     5:31 AM     No comments
How to convert black and white photograph to color in photo shop cs6

Blending image in photoshop

Sampili Tuition     5:16 AM     No comments



How to blend two image in Photoshop cs6

Making smart phone in Blender

Sampili Tuition     5:12 AM     No comments


How to make a smart phone in blender.

Blender Tutorial-Making a laptop

Sampili Tuition     4:44 AM     No comments



How to make a Laptop in Blender

Sunday, March 13, 2016

Javascript Statements

Sampili Tuition     4:41 AM     No comments
JavaScript Statements
A JavaScript statement is a command to a browser. The purpose of the command is
to tell the browser what to do.
The following JavaScript statement tells the browser to write “Hello Dolly” to the
Web page:
document.write("Hello Dolly");
It is normal to add a semicolon at the end of each executable statement. Most
people think this is a good programming practice, and most often you will see this
in JavaScript examples on the Web.
The semicolon is optional (according to the JavaScript standard), and the browser
is supposed to interpret the end of the line as the end of the statement. You often
will see examples without the semicolon at the end.

JavaScript Code
JavaScript code (or just JavaScript) is a sequence of JavaScript statements. Each
statement is executed by the browser in the sequence it is written.
This example will write a heading and two paragraphs to a Web page as shown in
Figure 2.1.
Try it yourself >>
<html>
<body>
<script type="text/javascript">
document.write("<h1>This is a heading</h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
</script>
</body>
</html>

JavaScript Blocks
JavaScript statements can be grouped together in blocks. Blocks start with a left
curly bracket { and end with a right curly bracket }.
The purpose of a block is to make the sequence of statements execute together.
The following example writes a heading and two paragraphs to a Web page as
shown in Figure 2.2.

<html>
<body>
<script type="text/javascript">
{
document.write("<h1>This is a heading</h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
}
</script>
</body>
</html>


The preceding example is not very useful. It just demonstrates the use of a block.
Normally, a block is used to group statements together in a function or in a condition
(in which a group of statements should be executed if a condition is met).

JavaScript Comments
JavaScript comments can be added to explain the JavaScript script or to make the
code more readable.
Single line comments start with //.
The following example uses single-line comments to explain the code.

<html>
<body>
<script type="text/javascript">
// Write a heading
document.write("<h1>This is a heading</h1>");
// Write two paragraphs:
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
</script>
</body>
</html>

JavaScript Multiline Comments
Multiline comments start with /* and end with */.
The following example uses a multiline comment to explain the code.
Your result is shown in Figure 2.4.

Try it yourself >>
<html>
<body>
<script type="text/javascript">
/*
The code below will write
one heading and two paragraphs
*/
document.write("<h1>This is a heading</h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
</script>
</body>
</html>
Using Comments to Prevent Execution
In the following example, the comment is used to prevent the execution of a single
code line (can be suitable for debugging):
Your result is shown in Figure 2.5.

Try it yourself >>
<html>
<body>
<script type="text/javascript">
//document.write("<h1>This is a heading</h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
</script>
</body>
</html>

In the following example, the comment is used to prevent the execution of a code
block (can be suitable for debugging):
Try it yourself >>
<html>
<body>
<script type="text/javascript">
/*
document.write("<h1>This is a heading</h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
*/
</script>
</body>
</html>

Your result would be a blank screen.

Using Comments at the End of a Line
In the following example, the comment is placed at the end of a code line. Your
result is shown in Figure 2.6.
Try it yourself >>
<html>
<body>
<script type="text/javascript">
document.write("Hello"); // Write "Hello"
document.write(" Dolly!"); // Write " Dolly!"
</script>
</body>
</html>



Today is


Tutorials

Recommended

Find Us On Facebook

Company

Blender

Legal Stuff

FAQ's

Blogroll

Javascript

Subscribe to Newsletter

We'll never share your Email address.
© 2015 Sampili. Blogger Templates Designed by Bloggertheme9. Powered by Blogger.