...

View Full Version : can anyone help with my slideshow?



dolittle
01-22-2005, 05:10 PM
hi soz, and hello everyone, i am new to java scripting. i hav just made a slideshow for my website, and i wanted to get rid of the next and prev text and replace with buttons, i have done this but the < and > text is still there. how would i get rid? thank you.... heres the code

<title>Image Slideshow</title>
<script language="Javascript" type="text/javascript">
myPix = new Array("http://homepages.tesco.net/dolittle/me02.jpg","http://homepages.tesco.net/dolittle/setup.jpg","http://homepages.tesco.net/dolittle/me01.jpg","http://homepages.tesco.net/dolittle/System.jpg")
thisPic = 0
imgCt = myPix.length - 1

function chgSlide(direction) {
if (document.images) {
thisPic = thisPic + direction
if (thisPic > imgCt) {
thisPic = 0
}
if (thisPic < 0) {
thisPic = imgCt
}
document.myPicture.src=myPix[thisPic]
}
}
</script>
</head>
<body bgcolor="#FFFFFF">
<p align="center"><img src="http://homepages.tesco.net/dolittle/System.jpg" name="myPicture" width="500" height="384" alt="Slideshow" /></p>
<h1 align="center"><a href="javascript:chgSlide(-1)">&lt;&lt; <input type=button onClick="previous();" value="&lt;&lt;" title="Previous"></a>&nbsp;&nbsp;<a href="javascript:chgSlide(1)"><input type=button onClick="next();" value="&gt;&gt;" title="Next"> &gt;&gt;</a></h1>

Willy Duitt
01-22-2005, 05:35 PM
hi soz, and hello everyone, i am new to java scripting. i hav just made a slideshow for my website, and i wanted to get rid of the next and prev text and replace with buttons, i have done this but the < and > text is still there. how would i get rid? thank you.... heres the code

??hsirgne n tad taeper u nc silliw niyas b u tow huh

dolittle
01-22-2005, 06:49 PM
umm????

Mr J
01-22-2005, 09:20 PM
If you have written the code surely you know how to amend the many errors that are in there?

dolittle
01-22-2005, 11:55 PM
no i have writen it from a book, and ive copyed a bit from someone elses script and added it cuz i wanted buttons. so no one can help then? :confused:

Willy Duitt
01-23-2005, 02:01 PM
no i have writen it from a book, and ive copyed a bit from someone elses script and added it cuz i wanted buttons. so no one can help then? :confused:

??hsirgne n tad taeper u nc silliw niyas b u tow huh

.....Willy

Mr J
01-23-2005, 02:53 PM
Ok, Please try the following




<HTML>
<HEAD>
<TITLE>Document Title</TITLE>

<script language="javascript">
<!--
myPix = new Array("http://homepages.tesco.net/dolittle/me02.jpg","http://homepages.tesco.net/dolittle/setup.jpg","http://homepages.tesco.net/dolittle/me01.jpg","http://homepages.tesco.net/dolittle/System.jpg")
thisPic =0
imgCt = myPix.length - 1

function chgSlide(direction) {
if (document.images) {
thisPic = thisPic + direction
if (thisPic > imgCt) {
thisPic = 0
}
if (thisPic < 0) {
thisPic = imgCt
}
document.myPicture.src=myPix[thisPic]
}
}
//-->
</script>
</HEAD>
<BODY>
<center>
<img src="http://homepages.tesco.net/dolittle/me02.jpg" name="myPicture" width="500" height="384" alt="Slideshow" /><BR>
<input type=button onclick="chgSlide(-1)" value="&lt;&lt;" title="Previous"><input type=button onClick="chgSlide(1)" value="&gt;&gt;" title="Next">
</center>
</BODY>
</HTML>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum