Results 1 to 2 of 2

Thread: Does Text and/or Image Crawler Script v1.5 support a php input file?

  1. #1
    Join Date
    May 2013
    Thanked 0 Times in 0 Posts

    Question Does Text and/or Image Crawler Script v1.5 support a php input file?

    Hi All,

    I'd like to use "Text and/or Image Crawler Script v1.5" on a website I'm creating but I have a question. I need to have it read an input .php file
    that I get from another site. Here is the code I'm using at the moment:

    <iframe NAME="Alert1" width="958" height="20" scrolling="no" src=""></iframe>

    As you see, it is in an iframe, and unfortunately is formatted so it will not scroll in firefox (I need to fix that!) I'd appreciate any help you can give me on this.



  2. #2
    Join Date
    Mar 2005
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries


    No. Access to the contents of an off site page in an iframe is denied to javascript. If your host has PHP 5+ and allows remote file reads, you can use a file_get_contents() on the remote file and some javascript on the result to put it's content into a Crawler on your page. But only if you have permission from the remote host to do that. Otherwise you are violating their implied copyright.

    Added Later:
    It just occurred to me that an iframe is an inline element, so you don't need to do anything special. Just put the iframe in the crawler. The script should do the rest:

    <div id="mycrawler" class="marquee">
    <iframe NAME="Alert1" width="958" height="20" scrolling="no" frameborder=0 src=""></iframe>
    And you don't want it to have scrollbars, so that part is fine. Just follow the above with your chosen init, something like:

    <script type="text/javascript">
    	uniqueid: 'mycrawler',
    	style: {
    		'padding': '5px',
    		'width': '450px',
    		'background': 'black',
    		'border': '1px solid #CC3300'
    	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,
    	persist: true,
    	savedirection: true
    Best place for that is right before the closing </body> tag of the page.

    Even with this method, make sure you have the right to display that other site's content before proceeding.
    Last edited by jscheuer1; 05-16-2013 at 03:46 PM. Reason: realized an easier way
    - John

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Text & Image Crawler Script Not Working
    By rwilson86 in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 02-23-2012, 03:04 AM
  2. Text and Image Crawler - multiple lines of text
    By jeffshead in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 08-21-2011, 12:40 PM
  3. DD Text and Image Crawler align img with text-bottom
    By john7p in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 05-16-2010, 02:43 PM
  4. Replies: 3
    Last Post: 04-17-2009, 01:27 PM
  5. Replies: 0
    Last Post: 03-26-2008, 10:08 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts