Script Categories













Background Effects >>> 2 Way Background Images Slide.

Runs an image slideshow in the background of the page, underneath the page content. Used with the accompanying style 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. IE 4.0+ or NS 6.0 (degrades gracefully in others).

Step 1: Add the below code to the <HEAD> section of your page:

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
// (C) 2001 www.CodeLifter.com
// http://www.codelifter.com
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
// 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] = '1.gif';
Pic[1] = '2.gif';
Pic[2] = '3.gif';

// 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);
 }
}
window.onload= runBGSlideShow;
//  End -->
</script>
 

Step 2: The script uses three images as part of its interface. You can create your own, or use the three below (resized for easier download):

(right click images, and select "Save Image As")
Upload them into the same directory as your webpage.

Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

komiku baca komik gratis online


©