With the same proviso on where these and the inline styles for the img and div tags can go as before, replace:
Code:
<style type="text/css">
.marquee0 {
width: 519px;
float: left;
}
</style>
with:
Code:
<style type="text/css">
.marquee0 {
width: 100%;
float: left;
}
</style>
And replace:
Code:
<div style="overflow: hidden; width: 960px;">
<img src="images/KSLogo2.jpg" style="display: block; float: left;">
<div class="marquee" id="mycrawler2">
<img src="images/B1LBanner.jpg" />
<img src="images/B2Banner.jpg" />
<img src="images/D1Banner.jpg" />
<img src="images/D2Banner.jpg" />
</div>
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler2',
style: {
'padding': '0px',
'width': '519px',
'height': '198px'
},
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,
savedirection: true,
random: true
});
</script>
</div>
with (Note: the img tag has been moved, its src and style changed, events added, the div tag's styles are different, the init has had its width removed):
Code:
<div style="position: relative; width: 960px; overflow: hidden;">
<div class="marquee" id="mycrawler2">
<img src="images/B1LBanner.jpg" />
<img src="images/B2Banner.jpg" />
<img src="images/D1Banner.jpg" />
<img src="images/D2Banner.jpg" />
</div>
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler2',
style: {
'padding': '0px',
'height': '198px'
},
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,
savedirection: true,
random: true
});
</script>
<img src="http://i45.tinypic.com/2hxlkpx.gif" style="display: block; position: absolute; top: 0 left: 0;"
onmousemove="this.parentNode.getElementsByTagName('div')[1].onmousemove(event);"
onmouseout="this.parentNode.getElementsByTagName('div')[1].onmouseout(event);" alt="">
</div>
The browser cache may need to be cleared and/or the page refreshed to see changes.
Bookmarks