XML/SWF Slideshow  2.64 | XML/SWF Charts | SlickBoard(New)

 next > 




<action type='string'


action executes a command to control the behavior of the slideshow.


  • type: The command to execute. Valid values are:

    • pause: Pauses the slideshow. For example, use this to pause the first slide to let the user start the slideshow, or use it to pause the last slide to prevent the slideshow from looping. To pause the slideshow without pausing the music, loop one slide instead of pausing it (set the next slide to the current slide)

    • play: Plays the slideshow. This is useful only if the slideshow is paused, and the user clicks a link that jumps to a slide with the "play" action. The "delay" must be zero to trigger this action even when the slideshow is paused

    • link: This simulates a click on the first link that belongs to the current slide. To simulate a click on a different link, add the link index to the word "link". Examples: Link0 activates the first link that belongs to the current slide. Link1 activates the second link that belongs to the current slide. Use this action to launch pop-up windows, or open other web pages. This does not execute other actions in links. It only launches URLs and jumps to other slides. See link for more information

    • controlOn, controlOff, or controlAuto: This shows or hides the control bar. See control for more information

    • volume (to, duration): This adjusts the volume from the current level to the level specified in the to parameter. This must be a number from 0 (silent) to 100 (loud.) The volume is adjusted over the duration in seconds specified in the duration parameter. A duration of 0 adjust the volume immediately. A larger duration adjusts the volume gradually. Use this to create volume fade-in and fade-out effects. For example, to fade-out the volume over 2 seconds, use this: volume (0, 2)

    • multiple actions: To perform any combination of the above actions, type the action names separated by underscores. Example: controlOn_link_pause

  • delay: The delay in seconds before executing the action. If this is zero, then the action executes at the start of the slide (no delay.) If this is smaller than transition duration, then it executes during the transition. If this is greater than transition duration, then it executes after the transition is over. This must be smaller than the slide's duration to execute the action. This must be zero to trigger the action even when the slideshow is paused (if the user navigates by clicking the forward and backward buttons on the control bar, or by clicking a link that jumps to the slide with the action.) The default is zero


The "link" action is available to registered users only. Unregistered software links all slideshows to this website.




   <!-- add 3 slides -->
      <image url='images/plant0.jpg' />
      <!-- show the control bar, and pause the slideshow 2 seconds into the first slide -->
      <action type='controlOn_pause' delay='2' />
      <image url='images/plant1.jpg' />
      <image url='images/plant1.jpg' />
      <!-- pause on the last slide, and activate the second link, without a user click -->
      <action type='pause_link1' delay='2' />
         <!-- the second link isn't clickable (width=0). It's activated by the above action and launches google -->
            <area url='http://www.yahoo.com' target='_blank' />
            <area url='http://www.google.com' target='_blank' width='0' />


For more examples, see the gallery section and click the link below each slideshow to see the PHP code.


 next > 

Copyright 2004-2020, maani.us