.
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.
Code:
<script type="text/javascript" src="../js/crawler.js"></script>
should be:
Code:
<script type="text/javascript" src="../js/crawler.js">
/* Text and/or Image Crawler Script v1.53 (c)2009-2011 John Davenport Scheuer
as first seen in http://www.dynamicdrive.com/forums/
username: jscheuer1 - This Notice Must Remain for Legal Use
*/
</script>
If you're worried about the comment not validating, it is valid. But the validator doesn't agree. You can do it like so:
Code:
<script type="text/javascript" src="../js/crawler.js">
// Text and/or Image Crawler Script v1.53 (c)2009-2011 John Davenport Scheuer
// as first seen in http://www.dynamicdrive.com/forums/
// username: jscheuer1 - This Notice Must Remain for Legal Use
</script>
That said, it looks OK in Opera and Chrome. In IE 10 the images are each only 1px wide. Here, in the almoltaqa.com.eg/beta/js/main.js file:
Code:
$.ajax({
url: '../helper/siteHandler.php',
data: {action:"getCompanies"},
dataType:"json",
success: function(data) {
str = '';
$.each(data, function(k,v){
str+= '<a href="'+v.com_link+'" style="margin:5px 10px" target="_blank"><img width=auto height="51" src="../uploaded/logos/'+v.com_pic+'" title="'+v.com_name+'"/></a>' ;
});
//alet(str);
$("#mycrawler2").html(str);
marqueeInit({
uniqueid: 'mycrawler2',
style: {
'padding': '2px',
},
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
});
}
});
Let's zoom in on the above highlighted line:
Code:
str+= '<a href="'+v.com_link+'" style="margin:5px 10px" target="_blank"><img width=auto height="51" src="../uploaded/logos/'+v.com_pic+'" title="'+v.com_name+'"/></a>' ;
See the width and height? Using auto there is invalid. To get the effect I'm sure you're after, use css style instead:
Code:
str+= '<a href="'+v.com_link+'" style="margin:5px 10px" target="_blank"><img style="width: auto; height: 51px" src="../uploaded/logos/'+v.com_pic+'" title="'+v.com_name+'"/></a>' ;
The browser cache may need to be cleared and/or the page refreshed to see changes.
Bookmarks