PDA

View Full Version : Memory Scroller info



Zipotron
08-07-2005, 04:50 PM
Script: Memory Scroller
http://www.dynamicdrive.com/dynamicindex2/memoryscroller.htm

Hi all !
I've put the memory scroller script in a file .js and it's fine but i want to be able to change the text of the scroller in the html file not fixing it in the .js 'cause i want to reuse the script.

[HTML]
var memorycontent='<nobr><span .....'
<script type="text/javascript" language="JavaScript1.2" src="js/scroller1.js">
</script>

:confused:

Thanks !

Twey
08-07-2005, 05:29 PM
The script sets a cookie called "lastscrollerpos" containing the position. You can edit this.

jscheuer1
08-07-2005, 05:33 PM
Use this in the body then:
<script type="text/javascript">
var memorycontent='<nobr><span .....'
</script>
<script type="text/javascript" src="js/scroller1.js"></script>Don't forget to remove:

var memorycontent='<nobr><span .....'

from the script.

Zipotron
08-07-2005, 07:37 PM
Thanks John, it's working great !
and i'll put some php in it to do a english and french scroller.

bye !