home *** CD-ROM | disk | FTP | other *** search
/ Netscape Plug-Ins Developer's Kit / Netscape_Plug-Ins_Developers_Kit.iso / plugins / electric / Electrifier1.0.sit.hqx / Electrifier 1.0 / Authoring with Electrifier < prev    next >
Encoding:
Text File  |  1996-08-15  |  4.8 KB  |  106 lines

  1. Instructions
  2.  
  3. Electrifier authoring uses simple HTML attributes.
  4.  
  5. To display a still picture, use the <embed> tag to specify the filename, which should end with ".qdgx". Still pictures are automatically smoothed (antialiased). You can use the <noembed></noembed> tag to specify an alternate block of HTML to display if the client doesn't have Electrifier.
  6.  
  7. For example, the statement <embed src="logo.qdgx" width=288 height=288 scale=90> will draw a picture named logo.qdgx at 90% of its normal size if the client has Electrifier installed. The picture will be centered inside its rectangle, which has a width and height of 288 pixels.
  8.  
  9. The statement <embed src="logo.qdgx" width=288 height=288 scale=90><noembed><img src="logo.jpg"></noembed> will draw logo.qdgx as above if the client has Electrifier installed, and will draw logo.jpg otherwise. 
  10.  
  11. To animate a picture, use the "stretch" and/or "spin" attributes. The plug-in will animate the picture from the start size and angle (as specified using the "scale" and "rotate" attributes) to the end size and angle (as specified using the "stretch" and "spin" attributes).
  12.  
  13. The "move", "loop" and "time" attributes can be used to select additional options, including perspective. The "trails" attribute lets you set whether the animation leaves a trail of old images behind╤this can be used with translucent pictures and the "stretch" attribute to produce a "warp speed" effect.
  14.  
  15. Memory Requirements
  16.  
  17. The plug-in uses as little memory as possible. If other applications request memory that is being used by the plug-in, the plug-in will reduce its memory requirements appropriately (at the expense of speed and/or quality). If the picture is being animated, it may appear to flicker if memory is low.
  18.  
  19. Specifications
  20.  
  21. Notes
  22.  
  23. Ñ When uploading a file with Fetch, select Raw Data from the Default non-text format pop-up menu in Upload Preferences.
  24. Ñ Your server must be configured to recognize pictures in Electrifier format. Consult your server documentation for information on configuring MIME types. The MIME type/subtype is "image/x-qdgx" and the suffix is "qdgx".
  25. Ñ If the perspective effect is extreme, the plug-in may crash. Use the "scale" command to reduce the size of the picture so that the perspective effect is reduced.
  26.  
  27. Required attributes
  28.  
  29. width
  30.     horizontal dimension (in pixels)
  31.  
  32. height
  33.     vertical dimension (in pixels)
  34.  
  35. Optional attributes
  36.  
  37. General
  38.  
  39. bgcolor
  40.         the background color of the picture (normal is the web browser background color)
  41.     specified as "#rrggbb", where each red/green/blue component is specified in hexadecimal
  42.  
  43. pluginspage
  44.         the page to be shown if the client doesn't have Electrifier, specified as a URL (normal is the
  45.         Netscape plug-ins database page)
  46.                 "http://www.electrifier.com/": takes the user to the Electrifier home page to download the plug-in (preferred)
  47.  
  48. Still
  49.  
  50. scale
  51.     the size (as a percentage) at which to draw the picture (normal is 100)
  52.  
  53. rotate
  54.     the angle (in degrees) at which to draw the picture (normal is 0)
  55.  
  56. Animation
  57.  
  58. stretch
  59.     the end size (as a percentage) at which to draw the picture (normal is 100)
  60.  
  61. spin
  62.     the end angle (in degrees) at which to draw the picture (normal is 0)
  63.  
  64. move
  65.     the animation movement type (normal is off)
  66.         off: no movement
  67.         h: moves from left to right
  68.         v: moves from top to bottom
  69.         hv: moves from top-left corner to bottom-right corner
  70.         hperspective: moves from left to right in perspective
  71.         vperspective: moves from top to bottom in perspective
  72.         twirl: moves in a spiral (the number of circles per loop is set with the numcircles attribute)
  73.         circle: moves in a circle (the number of circles per loop is set with the numcircles attribute)
  74.  
  75. movereverse
  76.     the reverse option for movement (normal is off)
  77.         off: standard movement
  78.         on: reversed movement (e.g. move=h results in right to left movement)
  79.  
  80. loop
  81.     the animation loop type (normal is on if any other animation attributes are specified, off otherwise)
  82.         on: continuous loop from start to end, and back to initial
  83.         forward: continuous loop from start to end
  84.         off: animates from start to end, and then stops
  85.  
  86. time
  87.     the time (in 1/60ths of a second) for a single animation from start to end (normal is 300)
  88.  
  89. trails
  90.     the animation trails option (normal is off)
  91.         off: no trails
  92.         on: leaves a trail of old images
  93.  
  94. sequence
  95.     the sequencing option (normal is off)
  96.         off: uses the entire image
  97.         on: cycles between the parts of the specified image, for frame-based animation
  98.  
  99. dithering
  100.     the dithering option for monitors that display 256 or fewer colors (normal is off)
  101.         off: no dithering
  102.         on: dithers colors (has no effect on monitors that display thousands or millions of colors)
  103.  
  104. numcircles
  105.     the number of circles per loop, used by the circle and twirl types of movement (normal is 1)
  106.