Beverleyh meant:
Code:
<div style="position:absolute; TOP:517px; LEFT:10px;">
<div class="marquee" id="mycrawler">
<img src="images/shastadaylight.gif" alt="" />
<img src="images/sanfranciscochief.gif" alt="" />
</div>
</div>
And she's right. You cannot apply style directly to the class="marquee" div.
Alternatively you can use the style property of the init, see the script's documentation for specifics. Do not do both. Example of using the init's style property:
Code:
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'padding': '5px',
'width': '450px',
'background': 'lightyellow',
'border': '1px solid #CC3300'
},
inc: 5, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 2,
neutral: 150,
persist: true,
savedirection: true
});
</script>
Zooming in on the highlighted section, you would do like:
Code:
style: {
'position': 'absolute',
'top': '517px',
'left': '10px',
'height': '250px' //change the height to the desired height
},
Further, to your question about the div tag - The div is a generic block level tag with no other special properties. Any good HTML reference will tell you about it. It's a lot like the p tag, except that it is not self closing (means it needs a closing </div> tag to close it, a p tag will close, in addition to the usual ways, when it hits the next opening block level element) and unlike p, div has no default margin.
Bookmarks