Hi spiper,
Looking at things in context (nice looking site BTW - you must have a natural eye for design if this is your first project) I think this might be the script for you: http://www.dynamicdrive.com/dynamici...ryscroller.htm
What's nice about this script is that instead of pasting all the code into your page (where your current <marquee> is) you can turn it into an external JavaScript file, so you only update one file and any changes show on all your pages.
The other nice feature about this script is that is remembers the postition of the last message, so imagine how much more user-friendly that will be for visitors as they browse around your site - they'll be able to see the messages in sequence without having to watch them all scroll from the begining at each new click.
So, to turn the script into one common, external js file, copy and paste all the code provided in the DD demo page here: http://www.dynamicdrive.com/dynamici...ryscroller.htm and save it in a file called "memoryscroller.js". Upload that to the scripts folder on your server.
Next, take out the opening and closing javascript tag from the very beginning and the very end of your new "memoryscroller.js" file
- so that's the "<script type="text/javascript">" line at the top, and the "</script>" line at the bottom.
Then, on your web pages, in place of your current <marquee>, put this;
Code:
<script type="text/javascript" src="path/to/memoryscroller.js"></script>
Also, to create some space between each message, you could just use a string of (non-breaking spaces) in the place where you define your message;
Code:
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>'
Or alternatively, you could use a <span>;
Code:
var memorycontent='<nobr><span style="font: bold 13px Verdana">Thank you for visiting <a href="http://www.dynamicdrive.com">Dynamic Drive.</a> <span style="display:inline-block;width:50px;"></span> 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>'
Bookmarks