PDA

View Full Version : too many ID's



S71NG3R
01-27-2012, 12:29 PM
Hi

Firstly love the site, Using it for all my pages, Big up to all.

I am using the script crawler.
http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm

I need to use it more than once in my page. But my page does not validate
because ID is used more than once. I have tried changing the second one
but then the script doesnt work. The easiest would be to make two external
links and to just change the ID inside the second external script. But i can't find the ID inside the external script. Can someone help ? :)

jscheuer1
01-27-2012, 01:31 PM
I have tried changing the second one
but then the script doesnt work.

That's actually the way to do it. When you changed the id, you must have missed something and/or done something causing the problem.

If you add another crawler with a changed id here:


<div class="marquee" id="mycrawler">
Those confounded friars dully buzz that faltering jay. An appraising tongue acutely causes our courageous hogs. Their fitting submarines deftly break your approving improvisations. Her downcast taxonomies actually box up those disgusted turtles.
</div>

You must also add another marqueeInit after it with the same changed id here:


<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'padding': '5px',
'width': '450px',
'background': 'lightyellow',
'border': '1px solid #CC3300'
},
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>

But it might be some other problem or that and some other problem or problems.

If you want more help, please post a link to the page on your site that contains the problematic code so we can check it out.