PDA

View Full Version : Text & Image Crawler Script Not Working



rwilson86
02-22-2012, 05:21 PM
1) Script Title: Text and Image Crawler v1.5

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/crawler/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? :-/

jscheuer1
02-22-2012, 06:08 PM
Get rid of:


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


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


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

rwilson86
02-22-2012, 08:48 PM
Hi John,

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

jscheuer1
02-22-2012, 09:28 PM
Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), 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.

rwilson86
02-22-2012, 09:48 PM
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>

jscheuer1
02-23-2012, 03:04 AM
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:

4368