is there shorter script for Cross Browser marquee?

how can i add this script as include and to add the marquee text from out side the script?
i mean to include script as js but to send the text for the script from the main page.

i tried icluding as js and to write <%=%> inside the text but in not working...