5
Alert a message before leaving a web page using javascript
This script will alert a message to the visitors before they move to another webpage or even try to cancel or close a webpage.This script confirms site exit with an alert box.
Here is the sample script.
<html>
<head>
<script...
Calendar Script Using Javascript [Updated]
Here is a simple script for creating calendar on webpages
<script LANGUAGE="JavaScript">
//Code from Mistonline.in
<!-- Begin
monthnames = new Array(
"January",
"Februrary",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"Decemeber");
var...
Display total number of posts and comments in wordpress
This tutorial will show you how to display the total number of posts and comments in wordpress.All you have to do is edit your theme say your footer or header or sidebar as you wish and then add the following lines.
< ?php
$numposts =...
Redirect URL including query string using htaccess
Redirect URL from one domain to another including query string using .htaccess, very simple.
Create a .htaccess file in the root directory of domain1.com and then add the following lines.That will take care of the rest.
For example
http://www.domain1.com/view.php?id=1&show=2...
Change Mouse cursor of your webpage using css
This is a very simple approach to change your mouse cursor within your website. Here is the code.Just add this along with your other css tags inside the <style> tag.
<style type="text/css">body, a, a:hover
{cursor:...
Simple jquery image slider
This is just an easy to use image slider for your webpage.We use jCarousel which is a jQuery plugin for controlling a list of items in horizontal or vertical order. The items, which can be static HTML content or loaded with (or without) AJAX,...
Beautiful Christmas countdown timer complete webpage with css download free
Very good looking and elegant, easy to edit Christmas countdown webpage with css and download it for free.
To change the countdown date open index.html and find the line that contains
austDay = new Date(austDay.getFullYear() + 1, 1 –...
Insert text and smilies in to textarea using javascript
This tutorial will show you how to insert text and smilies in to textarea using javascript.
Here is the HTML code
<html>
<head>
<title>Inserting text and smileys,,</title>
</head>
<body>
<script language="Javascript">
var...
Changing the image by dynamically changing the image source using javascript
Here i am going to post a simple code that will help you to change the IMAGE SRC[SOURCE] ie, the script will change the displayed image dynamically in to another by clicking the hyperlink.
Grab the code here
<html>
<head><title>Change...
Drop down menu going behind flash element
This is a common issue that webmasters/webdevelopers face when they have a webpage with a combination of javascript or css or DHTML dropdown menu and a flash swf file.Sometimes we can see that the Drop down menu going behind flash element.This...
Detect browser and redirect using javascript
Very simple tutorial using javascript to detect the browser and redirect to specific webpage using javascript.
Detecting Internet Explorer
Detecting Internet Explorer is easy, as the user agent string – available in navigator.userAgent...
Javascript Countdown script for Christmas or NewYear Part 2
This is another script with much more flexible and simple approach for the date/time countdown part of your website.Just add the below script.This can be used especially for your Christmas/NewYear countdown display on your website.
<html>
<head>
<title>Chistmas...
New Year and Christmas count down script using javascript
Very simple and powerful count down script using simple javascript for this New Year 2011 and Christmas along with the current time showing script as a Christmas Gift.Take a look
<script Language="JavaScript">
//Please dont...
