NameSilo

Please Help Javascript

SpaceshipSpaceship
Watch

jecn100

Established Member
Impact
0
Hi Guys

I have this javascript image slide show script, can any one tell me how I would add a title to each image as it changes.


Thanks
Justin



-------------------------------------------------------------------------------------------

<img src="images/img1.gif" name="myPicture" width="310" height="250" alt="" border="0" class="pic">
<script language="JavaScript">

var myPix = new Array("images/img1.gif","images/img2.gif","images/img3.gif","images/img4.gif")
var thisPic = 0

function doPrevious() {
if (document.images && thisPic > 0) {
thisPic--
document.myPicture.src=myPix[thisPic]
}
}

function doNext() {
if (document.images && thisPic < 3) {
thisPic++
document.myPicture.src=myPix[thisPic]
}
}
// -->
</script>

-------------------------------------------------------------------------------------------
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Maybe change alt="" to alt="title" ;)
 
0
•••
yeah, that would work
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back