Results 1 to 2 of 2

Thread: too many ID's

  1. #1
    Join Date
    Jan 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default too many ID's

    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/dynamici...wler/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 ?
    Last edited by S71NG3R; 01-27-2012 at 12:40 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    <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:

    Code:
    <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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •