Hi, I have this script within a Form, that is basically an Image Slideshow. What I am asking is how can I modify this script, so all images in the slideshow are the same width, and can then fill the page how I would like them to?
<script>
var current = 0;
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this = initArray.arguments;
}
}
var picz = new initArray(
"Boys/jupp01.jpg",
"Boys/jupp02.jpg",
"Boys/jupp03.jpg",
"Boys/jupp04.jpg",
"Boys/jupp05.jpg",
"Boys/jupp06.jpg",
"Boys/jupp07.jpg",
"Boys/jupp08.jpg",
"Boys/jupp09.jpg",
"Boys/jupplisa01.jpg",
"Boys/jupplucy01.jpg",
"Boys/juppkat01.jpg"
);
document.write('<img name="jscriptimg" src=http://www.webdeveloper.com/forum/archive/index.php/"'+picz[0]+'">');
function checkIt(val) {
var goodnum = current+val;
if (goodnum < 0) alert("You can't go any further back!");
else if (goodnum > picz.length-1) alert("You can't go any further forward!");
else document.jscriptimg.src = picz[goodnum];
current = goodnum;
}
</script>
Cheers
Ed
<script>
var current = 0;
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this = initArray.arguments;
}
}
var picz = new initArray(
"Boys/jupp01.jpg",
"Boys/jupp02.jpg",
"Boys/jupp03.jpg",
"Boys/jupp04.jpg",
"Boys/jupp05.jpg",
"Boys/jupp06.jpg",
"Boys/jupp07.jpg",
"Boys/jupp08.jpg",
"Boys/jupp09.jpg",
"Boys/jupplisa01.jpg",
"Boys/jupplucy01.jpg",
"Boys/juppkat01.jpg"
);
document.write('<img name="jscriptimg" src=http://www.webdeveloper.com/forum/archive/index.php/"'+picz[0]+'">');
function checkIt(val) {
var goodnum = current+val;
if (goodnum < 0) alert("You can't go any further back!");
else if (goodnum > picz.length-1) alert("You can't go any further forward!");
else document.jscriptimg.src = picz[goodnum];
current = goodnum;
}
</script>
Cheers
Ed