PDA

View Full Version : External Source Marquee Help



Dave_G
10-19-2011, 08:51 AM
Hi

I have placed the External Source Marquee (http://www.dynamicdrive.com/dynamicindex2/emarquee.htm) 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.


<!--[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]-->

jscheuer1
10-19-2011, 10:58 AM
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:


<!--[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]-->