PDA

View Full Version : crawler doesnt show images when hosted



bootersbooters
02-16-2013, 01:21 AM
1) Script Title: Crawler works fine when running on my PC

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

3) Describe problem: I tried using the above script for images to crawl at the bottom, http://metjntuh.com/index1.html but the images are not displayed after hosting them in the host. But they runfine on a PC.

mlegg
02-16-2013, 02:31 AM
in Firefox I used the web developer toolbar and edited the / at the end of your image codes and it worked.

<img src=images/img1.jpg/>

Moderator's Note:

You can use that syntax (with the slash) if you want to. After all, it's required for validation to the DOCTYPE of the page. But then you also have to make the src attribute valid by quoting it, ex:


<img src="images/img1.jpg"/>

Another thing I see that will cause problems in at least some browsers is the nested <div> tag (red):



<div class="marquee" id="mycrawler2">
<div align="center"> <img src=images/img1.jpg/> <img src=images/img2.jpg/> <img src=images/img3.jpg/> <img src=images/img4.jpg/> <img src=images/img5.jpg/></div>
</div>

For best results, get rid of that.

bootersbooters
02-16-2013, 04:38 PM
Thanks a lot :) u made my day :)

that worked out :)