Hello all,
I have another one here... I have this code but it appears to set the file to the default/left on a page - but the client wants it centered - I tried adding another part (document.write('<div align="center">'); at the begiining and document.write('</div">'); at the end of the function ) - i also tried to add it to the script in other places as well - but it did not work - can this be done?
here is the code
• idaryl • •
I have another one here... I have this code but it appears to set the file to the default/left on a page - but the client wants it centered - I tried adding another part (document.write('<div align="center">'); at the begiining and document.write('</div">'); at the end of the function ) - i also tried to add it to the script in other places as well - but it did not work - can this be done?
here is the code
Code:
var arr = new Array();
var arr1 = new Array();
var sec = null;
var secstr = '';
str = location.search.substring(1, location.search.length);
arr = str.split("&");
for (i=0;i<arr.length;i++) {
temp = arr[i];
arr1 = temp.split("=");
if (arr1[0] == "section") {
sec = arr1[1];
}
if (sec != null) {
secstr = '?section='+sec;
}
}
function writeflash () {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[URL unfurl="true"]http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"[/URL] width="760" height="560" id="index" align="middle"></div>');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="index.swf'+secstr+'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#000000" />');
document.write('<embed src="index.swf'+secstr+'" quality="high" bgcolor="#000000" width="760" height="560" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL] />');
document.write('</object>');
}
• idaryl • •
