Category Archives: Javascript
How to: Create A Single Page Website with HTML
March 20, 2013
General, How To:, HTML, CSS, Javascript Author: Praveen
In The Website Designing there are many more page designing methods. The Single page site designing is also a attractive and it looks awesome.
This is a New style of page designing and most of the designers and readers will like it. This type will suite to the Portfolio sites and Gallery sites.It is an Vertical Scroll one Page website.
This can be done with simple the simple HTML and CSS. But the scrolling animation had to be done with the JQuery and JScript.
Here the simple code for the Single Page Website
[code type=html]
One Page Site-Tobby news
About Us
Gallery
Javascript History Methods
April 8, 2012
Javascript Author: prasad
Javascript allows you to use history function, which would act like back and forward button in web browser. Apart from forward and backward function, javascript allows you to move back or forward to more than one step.
If you are taking time of 5 seconds to click "OK" button in alert box, then history function will work after 5 seconds only.
history.back();
History.back(); method will get backs to webpage that you have visited before your current page.
[code type=javascript]
<script type="text/javascript">
alert("The value of computer is 2500 INR");
history.back();
&l
Javascript Alert Box in PHP
April 8, 2012
Javascript, php Author: prasad
Alert box in webpage is used to alert the user of the webpage. PHP is a sever side scripting language, so it can't able to do alert box in client side( browser), this is the reason why we are integrating javascript in php coding.
First type of alert box by alert("");
[code type=javascript]
<script type='text/javascript'>
alert("This is alert box 1");
</script>
[/code]
Second type of alert box window.alert("");
[code type=javascript]
<script type='text/javascript'>
window.alert("This is alert box 1");
</script>
[/code]
Here is t
Simple Slideshow in Javascript
March 13, 2012
Javascript Author: prasad
Slideshow in a website is an added advantage to cover peoples, By using javascript we can make simple slideshow. But the following javascript for slideshow won't involve any transition.
In this slideshow we are using three images first.jpg, second.jpg, third.jpg.
Have three image named firstcar.gif, secondcar.gif, thirdcar.gif . The following coding should be inside the head tag
[code type=javascript]
<head>
<script type="text/javascript">
<!--
var image1=new Image()
image1.src="first.jpg"
var image2=new Image()
image2.src="second.jpg"
v








