View Full Version : Memory Scroller info

08-07-2005, 04:50 PM
Script: Memory Scroller

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.

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


Thanks !

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

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

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

from the script.

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 !