BACKGROUND IMAGE SLIDE SHOW JAVA SCRIPT

Step by Step how to install java script effect for background image slideshow , you can follow instruction as below to implement in your website or blog :

============================================================
Script:     2-Way Background Images SlideShow
            Positionable Images or Full Page-Space Display

Functions:

Runs an image slideshow in the background of the page,
underneath the page content. Used with the accompanying
sytle script, images are discretely positionable in the page
space, just like a regular slideshow. Leave out the style
script, and the slideshow runs with full page-space
presentation.
 
Browsers:  IE 4.0+ or NS 6.0 (degrades gracefully in others)

Author:    etLux
============================================================

-------------------------------
Step One: Installing the Script
-------------------------------

<script language="JavaScript">
<!--

// (C) 2003 CodeLifter.com
// Free for all users, but leave in this  header

// =======================================
// set the following variables
// =======================================

// Set speed (milliseconds)
var speed = 1000

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'slideshow1_1.jpg'
Pic[1] = 'slideshow1_2.jpg'
Pic[2] = 'slideshow1_3.jpg'
Pic[3] = 'slideshow1_4.jpg'
Pic[4] = 'slideshow1_5.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runBGSlideShow(){
   if (document.body){
   document.body.background = Pic[j];
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runBGSlideShow()', speed)
   }
}

//-->
</script>



--------------------------------
Step Two: Starting the SlideShow
--------------------------------

Modify your <body> tag to add the following onload event

<body onload="runBGSlideShow()">



----------------------------------------
Step Three:  Installing the Style Script
----------------------------------------

Method One - Positionable Images
----------

Put the following style sheet in the <head> of
your page.  Normally it will go *before* the script above.

<style>
body{
background-repeat: no-repeat;
background-position: 200 100;
}
</style>

Set the position x y in pixels in the background-position
element to position the images in the page.  Do not use
commas between the values!


Method Two - Full Page-Space Background
----------

Easy - just omit the style script above from the page.
The background images will then repeat across the page, as
usual.

============================================================
ReadmoreBACKGROUND IMAGE SLIDE SHOW JAVA SCRIPT

BACKGROUND COLOR CHANGER JAVA SCRIPT

Step by Step how to install java script effect for background changer , you can follow instruction as below to implement in your website or blog :


<!-- TWO STEPS TO INSTALL BACKGROUND COLOR CHANGER:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function newbg(thecolor)
{
document.bgColor=thecolor;
}
//  End -->
</script>

</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

<BODY>

<div align="center">
<form>
  <input type="button" value="White" onclick="newbg('white');">
  <input type="button" value="Blue" onclick="newbg('blue');">
  <input type="button" value="Beige" onclick="newbg('Beige');">
  <input type="button" value="Yellow" onclick="newbg('yellow');">
</form>
</div>


<!-- Script Size:  1.12 KB -->
ReadmoreBACKGROUND COLOR CHANGER JAVA SCRIPT

OPTIMIZED POPUP JAVA SCRIPT

Step by Step how to install java script effect for optimized popup, you can follow instruction as below to implement in your website or blog :


<!-- ONE STEP TO INSTALL OPTIMIZED POPUP:

  1.  Copy the coding into the HEAD of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
netscape = "netscape.html"; // set your browser pages
explorer = "explorer.html";
unknown  = "unknown.html";

// Determine the popup window properties
// options include:  top, left, toolbars, scrollbars,
// menubar, location, statusbar, and resizable

windowprops = "top=0,left=0,resizable=yes"
+ ",width=" + screen.width + ",height=" + screen.height;

ns = (navigator.appName == 'Netscape');
ie = (navigator.appName == 'Microsoft Internet Explorer');
url = (!ns & !ie) ? unknown : ( ns ? netscape : explorer);
window.open(url, "popupPage", windowprops);
//  End -->
</script>

<!-- Script Size:  1.06 KB -->
ReadmoreOPTIMIZED POPUP JAVA SCRIPT