Loading...
 
Show animated text that scrolls up or down

Plugin Scroll

Added to Tiki5, previously in Mods.

Use this wiki plugin to show animated text that scrolls on the screen.

Parameters

Introduced in Tiki 5. Required parameters are in bold.
Preferences required: wikiplugin_scroll
Parameters Accepted Values Description Default Since
(body of plugin) text
height Number of pixels followed by "px". Height in pixels. Example: 450px. 5.0
width Number of pixels followed by "px". Width in pixels. Example: 600px. 5.0
speed digits Scroll speed in number of seconds (default is 8) 8 5.0

Examples

This code:

{SCROLL(width="400px" height="100px" )}
See this list of items:
# Item 1
# Item 2
# Item 3
# Item 4
# Item 5
# Item 6 
# Item 7
# Item 8
# Item 9
{SCROLL}


Would produce:


See this list of items:

  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4
  5. Item 5
  6. Item 6
  7. Item 7
  8. Item 8
  9. Item 9

') var crossobj=document.getElementById? document.getElementById("content") : document.all.content var contentheight=crossobj.offsetHeight } else if (ns4){ var crossobj=document.nscontainer.document.nscontent var contentheight=crossobj.clip.height } function movedown(){ if (window.moveupvar) clearTimeout(moveupvar) if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100)) crossobj.style.top=parseInt(crossobj.style.top)-speed+"px" else if (ns4&&crossobj.top>=(contentheight*(-1)+100)) crossobj.top-=speed movedownvar=setTimeout("movedown()",20) } function moveup(){ if (window.movedownvar) clearTimeout(movedownvar) if (iens6&&parseInt(crossobj.style.top)

Aliases


Created by system. Last Modification: Monday 29 July, 2019 10:40:26 GMT-0000 by Yves Kipondo.