I don't think that there is any way to do that. The script uses these values for more than simply styling the crawler, and the elements to which they are applied vary depending upon a number of considerations.
If what you want is consistency and a central location to edit them, use an include:
PHP Code:
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
<?php include(mycrawlerstyles.txt); ?>
},
inc: 8, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 4,
neutral: 150,
savedirection: true
});
</script>
Then in mycrawlerstyles.txt you could have:
Code:
'padding': '5px',
'width': '450px',
'background': 'lightyellow',
'border': '1px solid #CC3300'
But, if the entire crawler is used throughout, you could do this for all of the code, even the markup. Or if only the items in the crawler vary, it could be just the script from your post, at that rate you could use an external script, rather than an include.
Bookmarks