Skip to main content
Known Participant
Apr 28, 2011 9:20 PM UTC
Question

Is there an event?

I have some Javascript that is triggered by an onclick event on a dummy link.  It fades pictures in and out, works fine, but I would like the page to do this automatically when displayed, not requiring a user to do anything, the pictures just fade in and out on their own.

Is there any event in the event list that can do this or is there some clock mechanism that has to be coded in Javascript to keep firing off the function?

Jim

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Apr 28, 2011 9:35 PM UTC

onload()

setInterval()

Translate
James_PTAuthor
Known Participant
Apr 29, 2011 5:03 PM UTC

Thanks,

I tried using the DW Call Javascript behavior using OnLoad, the code looks like this:

<img src="fade1.jpg" name="fade1" width="492" height="299" id="fade1" onload="MM_callJS('myDissolve.start();setInterval(myDissolve.start,2000) ')"/>

I must have a syntax error.  Any thoughts?

Jim

Translate