Not counting whatever the normal scrollbar(s) for the window are, there should only be a horizontal scrollbar below the images, and only if javascript is not available. It is possible that IE may make a brief horizontal bar even with javascript enabled, to avoid that add (highlighted):
Code:
<style type="text/css">
#mycrawler2 {
width: 750px;
height: 195px;
overflow: auto;
white-space: nowrap;
padding: 2px 0;
}
#mycrawler2 img {
vertical-align: top;
}
</style>
<script type="text/javascript">
document.write('<style type="text/css">#mycrawler2 {overflow: hidden; height: 180px;}<\/style>');
</script>
Now it is my understanding that if javascript is not available that it would be nice to have all of the images displayed in the same position and width, but with a horizontal scrollbar. And that is just what will happen. But if you would prefer to make up your own noscript content, we can do something else:
Code:
<style type="text/css">
#mycrawler2 {
width: 750px;
height: 195px;
overflow: auto;
white-space: nowrap;
padding: 2px 0;
display: none;
}
#mycrawler2 img {
vertical-align: top;
}
</style>
<script type="text/javascript">
document.write('<style type="text/css">#mycrawler2 {display: block; overflow: hidden; height: 180px;}<\/style>');
</script>
This should make the crawler invisible for non-javascript enabled browsers, allowing you to place a <noscript></noscript> tag either immediately before or immediately after the mycrawler2 division. You may place your non-javascript content in the noscript tag.
Bookmarks