Javascript Error
by "Mukesh Wani" <mukeshwani(at)hotmail.com>
|
Date: |
Mon, 14 Feb 2000 19:22:12 GMT |
To: |
hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
we are having trouble with this javascript and flash. Can anyhelp?
The backslashes that you will see are to escape since we are using Vignette
as our app server. Basically we want this script to execute ever 60 seconds
and put a new flash movie on the page. It will go through the array of the
paths where the flash file is stored. Right now if you run it, it doesn't
show anything on the page....
Here is the Javascript Code:
<SCRIPT LANGUAGE=JavaScript>
var timedelay = 60; // 60 secs between pics
timedelay *= 1000;
function rotate() {
var n = 0;
var flashs = new Array();
var flashPath = "/images/Flash_Pics/";
flashs\[0\] = flashPath + "top01.swf";
flashs\[1\] = "/images/Flash_Pics/top02.swf";
flashs\[2\] = flashPath + "top05.swf";
flashs\[3\] = flashPath + "top06.swf";
flashs\[4\] = flashPath + "top07.swf";
flashs\[5\] = flashPath + "top08.swf";
flashs\[6\] = flashPath + "top09.swf";
flashs\[7\] = flashPath + "top10.swf";
flashs\[8\] = flashPath + "top11.swf";
flashs\[9\] = flashPath + "top12.swf";
flashs\[10\] = flashPath + "top13.swf";
flashs\[11\] = flashPath + "top14.swf";
flashs\[12\] = flashPath + "top15.swf";
flashs\[13\] = flashPath + "top16.swf";
flashs\[14\] = flashPath + "top17.swf";
flashs\[15\] = flashPath + "top18.swf";
flashs\[16\] = flashPath + "top20.swf";
flashs\[17\] = flashPath + "top21.swf";
flashs\[18\] = flashPath + "top22.swf";
flashs\[19\] = flashPath + "top23.swf";
(n == (flashs.length - 1)) ? n = 0 : n++;
document.write('<OBJECT
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'); document.write('
codebase="http://download.macromedia.com/pub/shockwave/cabs/');
document.write(' flash/swflash.cab#version=3,0,0,0" id=index WIDTH=325');
document.writeln(' HEIGHT=33>');
document.writeln('<PARAM NAME=movie VALUE="/images/Flash_Pics/top02.swf">
');
document.writeln('<PARAM NAME=loop VALUE=false> ');
document.writeln('<PARAM NAME=quality VALUE=high> ');
document.writeln('<PARAM NAME=menu VALUE=false> ');
document.writeln('<PARAM NAME=bgcolor VALUE=#000000> ');
document.writeln('<param name=salign value=TL>');
document.writeln('<EMBED NAME="zoggleFlash"
SRC="/images/Flash_Pics/top02.swf"');
document.writeln(' swLiveConnect=FALSE WIDTH=325 HEIGHT=33');
document.writeln(' LOOP=false QUALITY=autohigh BGCOLOR=#000000');
document.writeln(' TYPE="application/x-shockwave-flash"');
document.writeln('PLUGINSPAGE="http://www.macromedia.com/shockwave/download');
document.writeln('/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.writeln('</EMBED>');
}
window.onload = rotate;
window.setTimeout("rotate()", timedelay);
</SCRIPT>
TIA,
Mukesh
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA