You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
2.3 KiB
JavaScript
32 lines
2.3 KiB
JavaScript
6 years ago
|
output='<div style="text-align: center; width: '+width+'; height:'+height+'">';
|
||
|
if (typeof(city)!="string")
|
||
|
{
|
||
|
output=output+'<table><tr>';
|
||
|
for (i=0; i<city.length; i++)
|
||
|
{
|
||
|
output=output+'<td>';
|
||
|
output=output+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'" id="clock1" align="center">';
|
||
|
output=output+'<param name="allowScriptAccess" value="sameDomain" />';
|
||
|
output=output+'<param name="movie" value="http://www.myworldclock.com/wordup.swf?senthours='+addhours[i]+'&sendcity='+city[i]+'&bgcol='+colour+'" />';
|
||
|
output=output+'<param name="quality" value="high" />';
|
||
|
output=output+'<embed src="http://www.myworldclock.com/wordup.swf?senthours='+addhours[i]+'&sendcity='+city[i]+'&bgcol='+colour+'" quality="high" bgcolor="'+bg_colour+'" width="'+width+'" height="'+height+'" name="clock1" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
|
||
|
output=output+'<param name="bgcolor" value="'+ bg_colour+'" />';
|
||
|
output=output+'</object>';
|
||
|
output=output+'</td>';
|
||
|
}
|
||
|
output=output+'</tr><tr><td colspan="'+city.length+'" align="center"></td></tr></table>';
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
output=output+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'" id="clock1" align="center">';
|
||
|
output=output+'<param name="allowScriptAccess" value="sameDomain" />';
|
||
|
output=output+'<param name="movie" value="http://www.myworldclock.com/wordup.swf?senthours='+addhours+'&sendcity='+city+'&bgcol='+colour+'" />';
|
||
|
output=output+'<param name="quality" value="high" />';
|
||
|
output=output+'<embed src="http://www.myworldclock.com/wordup.swf?senthours='+addhours+'&sendcity='+city+'&bgcol='+colour+'" quality="high" bgcolor="'+bg_colour+'" width="'+width+'" height="'+height+'" name="clock1" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
|
||
|
output=output+'<param name="bgcolor" value="'+ bg_colour+'" />';
|
||
|
output=output+'</object>';
|
||
|
output=output+'';
|
||
|
}
|
||
|
output=output+'</div>';
|
||
|
|
||
|
document.write(output);
|