# Dynamic scroller using menus

**URL:** <https://forum.kirupa.com/t/dynamic-scroller-using-menus/88928>\
**Category:** Uncategorized\
**Created:** [May 3, 2005, 5:21pm UTC](https://forum.kirupa.com/t/dynamic-scroller-using-menus/88928 "2005-05-03T17:21:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webtow](https://avatars.discourse-cdn.com/v4/letter/w/df788c/32.png) [@webtow](https://forum.kirupa.com/u/webtow)\
**Post date:** [May 3, 2005, 5:21pm UTC](https://forum.kirupa.com/t/dynamic-scroller-using-menus/88928/1 "2005-05-03T17:21:18Z")

</div>

Ok Novice here…  
So i successfully followed the instructions to create a dynamic scroller… now  
lets say i have 5 menu options that when clicked, would put other text in the  
same text box. In other words, if i clicked about us’ the text from the kirupa.txt file would call ’ about=yayaya’ and put in the scrolling box.

i imagine id need to put an action script as an on.click or something… but have no idea…

for ref: this is the default text that simply loads the text file:

loadText = new loadVars();  
loadText.load("kirupa.txt");  
//creating the loadVarsText function  
loadText.onLoad = function() {  
scroller.text = this.kirupatext;  
};
