CozyT
02-14-2004, 06:52 PM
Hi everybody,
I'm using the following script to load my swf into the html. I would like to pass the title and the URL of the html to the swf and have the swf loaded from the cache files for that day only. I added the date "myMDY" at the end, making it load a new swf every day.
My question: Is this script compatible with multi browsers on multi platform?
All responses are much appreciated! Thanks for reading!
script language="JavaScript" (this line should be inside the < >, but I couldnt post it that way)
var myDate = new Date();
var dDate = myDate.getDate();
var dMonth = myDate.getMonth();
var dYear = myDate.getYear();
var myMDY = dMonth+"-"+dDate+"-"+dYear;
var myVar = document.title;
myVar +="&cameFrom=";
myVar += document.location;
myVar +="&date=";
myVar += myMDY
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="500">')
document.write('<param name="movie" value="http://www.myDomain.com/myMovie.swf?myPageTitle='+myVar+'">')
document.write('<param name=quality value=high>')
document.write('<embed src="http://www.myDomain.com/myMovie.swf?myPageTitle='+myVar+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="500"></embed> ')
document.write('</object>')
</script>
_cozyt
I'm using the following script to load my swf into the html. I would like to pass the title and the URL of the html to the swf and have the swf loaded from the cache files for that day only. I added the date "myMDY" at the end, making it load a new swf every day.
My question: Is this script compatible with multi browsers on multi platform?
All responses are much appreciated! Thanks for reading!
script language="JavaScript" (this line should be inside the < >, but I couldnt post it that way)
var myDate = new Date();
var dDate = myDate.getDate();
var dMonth = myDate.getMonth();
var dYear = myDate.getYear();
var myMDY = dMonth+"-"+dDate+"-"+dYear;
var myVar = document.title;
myVar +="&cameFrom=";
myVar += document.location;
myVar +="&date=";
myVar += myMDY
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="500">')
document.write('<param name="movie" value="http://www.myDomain.com/myMovie.swf?myPageTitle='+myVar+'">')
document.write('<param name=quality value=high>')
document.write('<embed src="http://www.myDomain.com/myMovie.swf?myPageTitle='+myVar+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="500"></embed> ')
document.write('</object>')
</script>
_cozyt