Firefox

J

Jake G

I do not know if this is a javascript question or a flash question but
here goes.....
This does not work in firefox and it works perfectly in IE. Any
ideas??? The little picture that the flash generates simply does not
appear in FF.

<td width="109"> <div id="flashcontent">


<script language="javascript">


var numbers = Math.round(Math.random()* 99999999);


if (numbers>50000000){
numbers = numbers - 300000
}


var check = numbers;


check = check + 257028;
check = check + '';


var n = check.length
switch(n)
{
case 1:
check = '0000000' + check;
break
case 2:
check = '000000' + check;
break
case 3:
check = '00000' + check;
break
case 4:
check = '0000' + check;
break
case 5:
check = '000' + check;
break
case 6:
check = '00' + check;
break
case 7:
check = '0' + check;
break
}


var pos3 = check.substring(2,3);
var pos5 = check.substring(4,5);


if(pos3==0){
pos3 = 6;
}


if(pos5==0){
pos5 = 4;
}


pos3 = Number(pos3);
pos5 = Number(pos5);


check = Number(check);


check = check * pos3;
check = check * pos5;
check = check + 516609000;


check = check + '';


var final = check.substring(2,7);
check = Number(check);
//alert(final);


document.write(
'<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab..."

width="80" height="40" id="accesscode" align="middle"/>'+
' <param name="allowScriptAccess"
value="sameDomain" />'+
' <param name="movie"
value="accesscode.swf?gifFile='+ numbers + '"/>'+
' <param name="quality" value="high" />'+
' <param name="bgcolor" value="#000000" />'+
' <embed src="accesscode.swf" quality="high"
bgcolor="#ffffff" width="80" height="40" name="accesscode"
align="middle" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"/> '+
'</object>');
</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top