SCU-test-1

From 2013.igem.org

(Difference between revisions)
 
Line 1: Line 1:
<HTML>
<HTML>
<HEAD>
<HEAD>
-
<SCRIPT LANGUAGE="javascript" >
+
<TITLE>JavaScript Slideshow Template</TITLE>
 +
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 +
<SCRIPT TYPE="text/javascript" >
<!--
<!--
 +
// JavaScript Slideshow by Patrick Fitzgerald
 +
// http://slideshow.barelyfitz.com/
 +
/*==================================================*
 +
$Id: slideshow.js,v 1.16 2003/10/14 12:39:00 pat Exp $
 +
Copyright 2000-2003 Patrick Fitzgerald
 +
http://slideshow.barelyfitz.com/
 +
This program is free software; you can redistribute it and/or modify
 +
it under the terms of the GNU General Public License as published by
 +
the Free Software Foundation; either version 2 of the License, or
 +
(at your option) any later version.
 +
 +
This program is distributed in the hope that it will be useful,
 +
but WITHOUT ANY WARRANTY; without even the implied warranty of
 +
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 +
GNU General Public License for more details.
 +
 +
You should have received a copy of the GNU General Public License
 +
along with this program; if not, write to the Free Software
 +
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 +
*==================================================*/
 +
 +
// There are two objects defined in this file:
 +
// "slide" - contains all the information for a single slide
 +
// "slideshow" - consists of multiple slide objects and runs the slideshow
 +
 +
//==================================================
 +
// slide object
 +
//==================================================
function slide(src,link,text,target,attr) {
function slide(src,link,text,target,attr) {
-
    
+
   // This is the constructor function for the slide object.
 +
  // It is called automatically when you create a new slide object.
 +
  // For example:
 +
  // s = new slide();
 +
 
 +
  // Image URL
   this.src = src;
   this.src = src;
-
+
  // Link URL
   this.link = link;
   this.link = link;
-
+
  // Text to display
   this.text = text;
   this.text = text;
-
+
  // Name of the target window ("_blank")
   this.target = target;
   this.target = target;
-
    
+
   // Custom duration for the slide, in milliseconds.
 +
  // This is an optional parameter.
 +
  // this.timeout = 3000
 +
 
 +
  // Attributes for the target window:
 +
  // width=n,height=n,resizable=yes or no,scrollbars=yes or no,
 +
  // toolbar=yes or no,location=yes or no,directories=yes or no,
 +
  // status=yes or no,menubar=yes or no,copyhistory=yes or no
 +
  // Example: "width=200,height=300"
   this.attr = attr;
   this.attr = attr;
-
    
+
   // Create an image object for the slide
   if (document.images) {
   if (document.images) {
     this.image = new Image();
     this.image = new Image();
Line 30: Line 73:
   //--------------------------------------------------
   //--------------------------------------------------
 +
 
   this.load = function() {
   this.load = function() {
     // This method loads the image for the slide
     // This method loads the image for the slide

Latest revision as of 04:20, 17 August 2013

JavaScript Slideshow Template

Slideshow image