Posted by malatestapunk Fri 2nd Mar 2007 10:14 - Syntax is HTML (4.0.1) - 39 views
Download | New Post | Modify | Hide line numbers
Description:
An example of twangoRotator twidget usage.

  1.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. xmlns="http://www.w3.org/1999/xhtml">
  3. A title
  4. type="text/javascript" src="http://feeds.twango.com/js/channelmedia.aspx?channelname=jim.adventure">
  5.  
  6. type="text/javascript" src="rotatorTwidget.js">
  7.  
  8. type="text/javascript">
  9. //<![CDATA[
  10. window.onload = function () {
  11.     new rotatorTwidget (
  12.     // *** OPTIONAL PARAMETERS ***
  13.     //{
  14.             //'divID': 'twangoRotator',   // ID of the DIV element to be transformed into twangoRotator; default is 'twangoRotator'
  15.             //'scrollerHeight': 10,       // height of scroller buttons in pixels; 10 is the default value
  16.             //'onAction': 'onclick',      // javascript event handler that triggers scrolling; 'onclick' is the default value
  17.             //'height': 140,              // overall twidget height, in pixels; default value is 100 + 2*scrollerHeight (120px)
  18.             //'width': 50,                // overall twidget width, in pixels; default is 100
  19.             //'scrollerUpBg': 'up.gif',   // image to be used for 'up' scroller; default is none
  20.             //'scrollerDnBg': 'dn.gif'    // image to be used for 'down' scroller; default is none
  21.     //}
  22.     );
  23. }
  24. //]]>
  25. type="text/css">
  26. /*<![CDATA[*/
  27. /*
  28. *** You can also apply style to the rotator box
  29. */
  30. #twangoRotator {
  31.         background-color: #F6F6F6;
  32.         border: 4px solid #FaFaFa;
  33. }
  34. /*]]>*/
  35.  
  36.  

PermaLink to this entry https://pastebin.co.uk/11288
Posted by malatestapunk Fri 2nd Mar 2007 10:14 - Syntax is HTML (4.0.1) - 39 views
Download | New Post | Modify | Hide line numbers

 

Comments: 0