Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Is there an event?

Explorer ,
Apr 28, 2011 Apr 28, 2011

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

TOPICS
Server side applications
393
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 28, 2011 Apr 28, 2011

onload()

setInterval()

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 29, 2011 Apr 29, 2011
LATEST

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines