Advanced Search

Results 1 to 2 of 2

Thread: External Source Marquee Help

  1. #1
    Join Date
    Jul 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default External Source Marquee Help

    Hi

    I have placed the External Source Marquee script on my page; but the problem i am getting is when i put the script on the page more than once and only one works; how can i make this script work multiple times on the same page?

    I've tried changing the below values to isolate each script but this does not work.

    Code:
    <!--[if IE]>
    
    <IE Download ID="marqueedata1" STYLE="behavior:url(#default#download)" />
    
    <marquee id="externalmarquee1" behavior="scroll" scrollAmount=3 direction=left scrolldelay=1 style="width:758px;height:30px;border:0px solid black;padding:3px" onMouseover='this.stop()' onMouseout='this.start()' src="mistestdashboard/Dashboard%20Data/IVR_News.htm"></marquee>
    
    
    <script language="JavaScript1.2">
    
    /*
    External Data Source Marquee Script (Updated 99/11/02)- 
     Dynamic Drive (www.dynamicdrive.com)
    For full source code, installation instructions,
    100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com
    */
    
    function downloaddata(){
    marqueedata1.startDownload(externalmarquee1.src,displaydata)
    }
    
    function displaydata(data){
    externalmarquee1.innerHTML=data
    }
    
    if (document.all)
    window.onload=downloaddata
    
    
    </script>
    
    <![endif]-->
    Last edited by jscheuer1; 10-19-2011 at 10:42 AM. Reason: format

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,699
    Thanks
    43
    Thanked 3,132 Times in 3,096 Posts
    Blog Entries
    12

    Default

    You would also need unique function names and a way of adding to window.onload without overwriting the existing window.onload. This should do it:

    Code:
    <!--[if IE]>
    
    <IE Download ID="marqueedata1" STYLE="behavior:url(#default#download)" />
    
    <marquee id="externalmarquee1" behavior="scroll" scrollAmount=3 direction=left scrolldelay=1 style="width:758px;height:30px;border:0px solid black;padding:3px" onMouseover='this.stop()' onMouseout='this.start()' src="mistestdashboard/Dashboard%20Data/IVR_News.htm"></marquee>
    
    
    <script language="JavaScript1.2">
    
    /*
    External Data Source Marquee Script (Updated 99/11/02)- 
     Dynamic Drive (www.dynamicdrive.com)
    For full source code, installation instructions,
    100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com
    */
    
    function downloaddata1(){
    marqueedata1.startDownload(externalmarquee1.src,displaydata1)
    }
    
    function displaydata1(data){
    externalmarquee1.innerHTML=data
    }
    
    if (window.attachEvent && document.all){
    	window.attachEvent('onload', downloaddata1);
    }
    
    </script>
    
    <![endif]-->
    - 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
  •