Results 1 to 2 of 2

Thread: Image Crawler and PHP results

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

    Default Image Crawler and PHP results

    1) Script Title: Image Crawler 1.5

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

    3) Describe problem: I am using a PHP script to populate the Image Crawler with images from an sql database. This works great in Firefox, however IE does not seem to like it. It returns 'object required' errors in the crawler.js as well as the page the script is called on. I have been pouring over the scripts and pages for a few hours and can't get any traction on the problem... Any help would be greatly appreciated!!! Here is the site http://www.rockypointshopper.com

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The one thing that jumps out at me is that the on page init comes before the content that it initializes:

    Code:
    <script type="text/javascript">
    marqueeInit({
    	uniqueid: 'mycrawler2',
    	style: {
    		//'padding': '0px',
    		'width': '800px',
    		'height': '255px',
    		'background': '#000000',
    		//'border': '0px solid #CC3300',
    		//'vertical-align': 'bottom',
    		'color': '#fff',
    		'background-color':'#fff',
    		'font-family': 'sansserif'
    		//'margin': '0 auto'
    	},
    	inc: 18, //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,
    	stopped: true,
    	stopMarquee: true
    });
    </script>
    <div id="apDiv8"></div>
    <div id="apDiv15">
      <div id="apDiv17">
      <div class="marquee" id="mycrawler2">
      <a href="lst_dtl.php?uid=0"><img src="images/welcome.jpg" align="bottom"></a><a href="lst_dtl.php?uid=2"><img src="images/mainstreet2.jpg" align="bottom"></a><a href="lst_dtl.php?uid=3"><img src="images/mainstreet3.jpg" align="bottom"></a><a href="lst_dtl.php?uid=4"><img src="images . . .
    Which is the reverse of how it's supposed to be. So I'm surprised it works in any browser.

    Since PHP and a database are involved making it difficult for me to set up a true local version, let's just try something and see what happens.

    Move the init:

    Code:
    <script type="text/javascript">
    marqueeInit({
    	uniqueid: 'mycrawler2',
    	style: {
    		//'padding': '0px',
    		'width': '800px',
    		'height': '255px',
    		'background': '#000000',
    		//'border': '0px solid #CC3300',
    		//'vertical-align': 'bottom',
    		'color': '#fff',
    		'background-color':'#fff',
    		'font-family': 'sansserif'
    		//'margin': '0 auto'
    	},
    	inc: 18, //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,
    	stopped: true,
    	stopMarquee: true
    });
    </script>
    to the very last thing before the closing </body> tag.

    The browser cache may need to be cleared and/or the page refreshed to see changes.
    - 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
  •