PDA

View Full Version : Does JavaScript Slideshow work in PHP



Chardonnety
02-24-2011, 11:14 PM
does it work just the same as any html document, i've also tried the code in html and it still doesn't work, i linked my document to both fadeslideshow.js and the 1.4.2 library and nothing works this is my code... i paste over the same object because am still creating... can someone please help?

NOTE: THIS IS A PHP FILE


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery1.4.2.js"></script>

<script type="text/javascript" src="js/fadeslideshow.js">

/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>

<script type="text/javascript">

var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [845, 308], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["../css/images/missionstatement.png", "", "_new", "PAUSED"],
["../css/images/missionstatement.png", "", "", "PAUSED"],
["../css/images/missionstatement.png", "", "", "PAUSED"],
["../css/images/missionstatement.png", "", "", "PAUSED"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:3000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})

</script>
<title>Untitled Document</title>
</head>
<body>
<div id="fadeshow1" src=""></div><!--webbot bot="HTMLMarkup" endspan i-checksum="5151" -->

</body>
</html>