Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: Marquee & external.js file.

  1. #11
    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

    Well I meant that switching to that other script might also fix the problem in Chrome. You could still have individual content for individual pages, and the main Crawler script is already external.

    Now that I see the page in Chrome, I see that the trail is #bdffff colored. But that color, neither its hex value nor its decimal equivalent, appears anywhere in the page's source code, its generated source code, or in its associated stylesheets, or scripts. So I've no idea where it's coming from. Using the Crawler script may solve the problem, if so, use it.

    Just tried it, it works. Download the script from:

    http://www.dynamicdrive.com/dynamici...wler/index.htm

    and put its tag in the head of the page as instructed. Then replace:

    Code:
    <script src="cross_marq.js" type="text/javascript">
    /*Cross browser Marquee script- (c) Dynamic Drive (www.dynamicdrive.com)
    For full source code, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com
    Credit MUST stay intact*/
    </script>
    with:

    Code:
    <div class="marquee" id="mycrawler"><b>To Webactivate your Business for the future......<i>call 087 7884703</i></b></div>
    <!--[if lt IE 8]>
    <br>
    <![endif]-->
    <script type="text/javascript">
    (function(){
    	var el = document.getElementById('mycrawler'), baseHTML = el.innerHTML,
    	spacer = '<span style="width:150px;display:inline-block;">&nbsp;</span>';
    	el.innerHTML = spacer + baseHTML + spacer + baseHTML;
    })();
    marqueeInit({
    	uniqueid: 'mycrawler',
    	style: {
    		'padding': '1px',
    		'width': '100%',
    		'background': '#fff'
    	},
    	inc: 1 //speed - pixel increment for each iteration of this marquee's movement
    });
    </script>
    The script portion of which could be made external.
    Last edited by jscheuer1; 08-15-2011 at 04:00 PM. Reason: tried it out some
    - 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
  •