View Full Version : Using divs inside crawler

01-19-2010, 12:09 AM
1) Script Title: Text and Image Crawler

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm

3) Describe problem: Great script, does everything I need, only it seems to break when images are wrapped in a div, like so:


<div class="marquee" id="mycrawler2">

<div><img src="http://i40.tinypic.com/9tlic8.jpg" /></div>

<img src="http://i43.tinypic.com/1zbqs5t.jpg" /> <img src="http://i44.tinypic.com/2419ul3.jpg" /> <img src="http://i43.tinypic.com/296nh3r.jpg" /> <img src="http://i40.tinypic.com/mk7ki.jpg" />

<script type="text/javascript">
uniqueid: 'mycrawler2',
style: {
'padding': '2px',
'width': '600px',
'height': '180px'
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

Same thing happens in Chrome and IE as well. I've tried using display:inline but that just makes things even worse.

Any ideas how to go about fixing this? Thank you.

01-19-2010, 05:51 AM
Don't use divs.