Please Help Javascript

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
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
Close
yeah, that would work
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back