Results 1 to 6 of 6

Thread: Text & Image Crawler Script Not Working

  1. #1
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Text & Image Crawler Script Not Working

    1) Script Title: Text and Image Crawler v1.5

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

    3) Describe problem: As soon as I place this code;

    <script type="text/javascript" src="crawler.js">
    /* Text and/or Image Crawler Script v1.5 (c)2009-2011 John Davenport Scheuer
    as first seen in http://www.dynamicdrive.com/forums/
    username: jscheuer1 - This Notice Must Remain for Legal Use
    updated: 4/2011 for random order option, more (see below)
    */

    </script>

    into the <head> my crawler dissappears on my homepage - www.allcarehomejobs.co.uk.... Anyone know what the problem is? :-/

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,957
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    Get rid of:

    Code:
    <div class="marquee" id="mycrawler2">
    <img src="http://img42.imageshack.us/img42/6331/beachgl.jpg" /> <img src="http://img222.imageshack.us/img222/8854/waterox.jpg" /> <img src="http://img405.imageshack.us/img405/7314/cocovv.jpg" /> <img src="http://img853.imageshack.us/img853/5038/bonsaiy.jpg" />
    </div>
    
    <script type="text/javascript">
    marqueeInit(,
    	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>
    Change this:

    Code:
    <div class="marquee" id="mycrawler2" style="margin-top: -15px;">
    <img src="http://www.mane-man.co.uk/joico.gif" /> <img src="http://www.mane-man.co.uk/joico.gif"" /> <img src="http://www.mane-man.co.uk/joico.gif"" /> <img src="http://www.mane-man.co.uk/joico.gif"" />
    </div>
    <p><script type="text/javascript">
    marqueeInit(,
    	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></p>
    to:

    Code:
    <div class="marquee" id="mycrawler2">
    <img src="http://www.mane-man.co.uk/joico.gif" /> <img src="http://www.mane-man.co.uk/joico.gif"" /> <img src="http://www.mane-man.co.uk/joico.gif"" /> <img src="http://www.mane-man.co.uk/joico.gif"" />
    </div>
    <script type="text/javascript">
    marqueeInit({uniqueid: 'mycrawler2',
    	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>
    - John
    ________________________

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

  3. #3
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John,

    thank you for your kind reply but it still hasn't solved the problem :-(

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,957
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    Your page is in violation of Dynamic Drive's usage terms, which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.


    I noticed that before but forgot to comment on it.

    OK, your live page does not show the changes I suggested. When it does, including the restoration of the script credit - if there are still problems I can and will advise you further.
    - John
    ________________________

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

  5. #5
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John,

    Sorry - I have restored the credit script (Had simply deleted that to see if that changed anything)

    I have copied in this code to my webpage;

    <div class="marquee" id="mycrawler2">
    <img src="http://www.mane-man.co.uk/joico.gif" /> <img src="http://www.mane-man.co.uk/joico.gif"" /> <img src="http://www.mane-man.co.uk/joico.gif"" /> <img src="http://www.mane-man.co.uk/joico.gif"" />
    </div>
    <script type="text/javascript">
    marqueeInit({uniqueid: 'mycrawler2',
    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>

    - Which shows exactly that in my admin panel, but when I view the source code it just shows;

    <div class="marquee" id="mycrawler2">
    <img src="http://www.mane-man.co.uk/joico.gif" /> <img src="http://www.mane-man.co.uk/joico.gif"" /> <img src="http://www.mane-man.co.uk/joico.gif"" /> <img src="http://www.mane-man.co.uk/joico.gif"" />
    </div>
    <script type="text/javascript">
    marqueeInit();

    </script>

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,957
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    Thanks.

    I'm not sure what the problem is then. Perhaps it's something with your host. If so and they have support it might be best to ask them.

    All I can tell you is how the file should look when I do a 'view source' on it. It can be difficult installing any script if you cannot upload the file directly via ftp.

    If uploading the file directly via ftp is an option, do that.

    I know some setups require you to paste code into a host provided editor that then is supposed to integrate it into a template. But, as the ins and outs of those types of setups vary from host to host, I can't give you specific advice on that. Your host and/or their support forum (if any) should be able to.

    All you need to know is how to get the code you want into the page.

    Anyways, just in case you want or need it, here's a working demo:

    Attachment 4368
    - 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
  •