Skip to main content
Known Participant
April 28, 2011
Question

Is there an event?

  • April 28, 2011
  • 1 reply
  • 391 views

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 has been closed for replies.

1 reply

April 28, 2011

onload()

setInterval()

James_PTAuthor
Known Participant
April 29, 2011

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