dresdek
05-12-2006, 04:17 AM
hey, I am having trouble using the memory scroller script (http://www.dynamicdrive.com/dynamicindex2/memoryscroller.htm), It is exactly the type of scroller I am looking for but I am new to javascript and was wondering how you could include an external file as the message's content, such as php or html, instead of typing in a message of the text to be scrolled which occurs here:
var memorycontent='<nobr><span style="font: bold 13px Verdana">Thank you for visiting <a href="http://www.dynamicdrive.com">Dynamic Drive.</a> If you find this script useful, please consider <a href="http://www.dynamicdrive.com/link.htm">linking to</a> or <a href="http://www.dynamicdrive.com/recommendit/">recommending</a> Dynamic Drive.</span></nobr>'
the file is formatted such that it only shows up on one line. Appreciate any help you can give me.
var memorycontent='<nobr><span style="font: bold 13px Verdana">Thank you for visiting <a href="http://www.dynamicdrive.com">Dynamic Drive.</a> If you find this script useful, please consider <a href="http://www.dynamicdrive.com/link.htm">linking to</a> or <a href="http://www.dynamicdrive.com/recommendit/">recommending</a> Dynamic Drive.</span></nobr>'
the file is formatted such that it only shows up on one line. Appreciate any help you can give me.