Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Rotating Images - how to pause on mouseover?
Old 08-04-2009, 02:39 PM Rotating Images - how to pause on mouseover?
Junior Talker

Posts: 1
Name: Kristen
Trades: 0
I know I am soo close but I just can't figure this out. I would like it to pause on mouseover and then resume when the mouse is moved away. I took out the site specific information - I have the full addresses and image names in the real code. The rotating images portion works without issue.

Is this the correct code? Where do I put it?

onmouseover="slideshowimages.pause(0)" onmouseout="slideshowimages.resume(0)"

Here's my header code

<script language="JavaScript1.1">

var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}

function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks[i]=slideshowlinks.arguments[i]
}

function gotoshow(){
window.location=slidelinks[whichlink]
}

</script>

And the body code

<script>

slideshowimages("graphic.jpg","chaos.jpg","princip als.jpg", "about.jpg", "know.jpg")
slideshowlinks("graphic.html","logo.html","leaders hip.html","about.html","know.html")

var slideshowspeed=3000

var whichlink=0
var whichimage=0
function slideit(){
if (!document.images)
return
document.images.slide.src=slideimages[whichimage].src
whichlink=whichimage
if (whichimage<slideimages.length-1)
whichimage++
else
whichimage=0
setTimeout("slideit()",slideshowspeed)
}
slideit()

</script>

Last edited by Passalande; 08-04-2009 at 02:41 PM..
Passalande is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Rotating Images - how to pause on mouseover?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.07978 seconds with 12 queries