parameters: (links=None,table=None,field='image',transition='fade',width=200,height=200)
return_statement: return DIV(SCRIPT("jQuery(document).ready(function() {jQuery('#slideshow%s').cycle({fx: '%s'});});" % (id,transition)),DIV(_id='slideshow'+id,*images))
docstring: ## Embeds a slideshow
          It gets the images from a table
  
          - ``table`` is the table name
          - ``field`` is the upload field in the table that contains images
          - ``transition`` determines the type of transition, e.g. fade, etc.
          - ``width`` is the width of the image
          - ``height`` is the height of the image
docstring_summary: ## Embeds a slideshow
          It gets the images from a table
docstring_tokens: ## Embeds a slideshow It gets the images from a table
function: def slideshow(links=None,table=None,field='image',transition='fade',width=200,height=200):
          """
          ## Embeds a slideshow
          It gets the images from a table
  
          - ``table`` is the table name
          - ``field`` is the upload field in the table that contains images
          - ``transition`` determines the type of transition, e.g. fade, etc.
          - ``width`` is the width of the image
          - ``height`` is the height of the image
          """
  
          import random
          id=str(random.random())[2:]
          if table:
              rows = db(db[table].id>0).select()
              if db[table][field].type=='upload':
                  images = [IMG(_src=URL('default','download',args=row[field])) for row in rows]
              else:
                  images = [IMG(_src=row[field]) for row in rows]
          elif links:
              images = [IMG(_src=link) for link in links.split(',')]
          else:
              images = []
          return DIV(SCRIPT("jQuery(document).ready(function() {jQuery('#slideshow%s').cycle({fx: '%s'});});" % (id,transition)),DIV(_id='slideshow'+id,*images))
function_tokens: def slideshow ( links = None , table = None , field = 'image' , transition = 'fade' , width = 200 , height = 200 ) : import random id = str ( random . random ( ) ) [ 2 : ] if table : rows = db ( db [ table ] . id > 0 ) . select ( ) if db [ table ] [ field ] . type == 'upload' : images = [ IMG ( _src = URL ( 'default' , 'download' , args = row [ field ] ) ) for row in rows ] else : images = [ IMG ( _src = row [ field ] ) for row in rows ] elif links : images = [ IMG ( _src = link ) for link in links . split ( ',' ) ] else : images = [ ] return DIV ( SCRIPT ( "jQuery(document).ready(function() {jQuery('#slideshow%s').cycle({fx: '%s'});});" % ( id , transition ) ) , DIV ( _id = 'slideshow' + id , * images ) )