OSDN Git Service

original file
[nucleus-jp/nucleus-plugins.git] / trunk / NP_Pholiot / NP_Pholiot052 / pholiot / pholiot.js
1 function showPholiot(p) {
2         rgb = '0x' + p.bgcolor.substr(1);
3         document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
4         document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
5         document.write(' width="' + p.width + '"  height="' + p.height + '" id="pholiot">' + "\n");
6         document.write('<param name=movie value="' + p.url + '" />');
7         document.write(' <param name=quality value="high" />');
8         document.write('<param name=menu value="' + p.menu + '">');
9         document.write(' <param name=bgcolor value="' + p.bgcolor + '" />');
10         document.write(' <param name="flashvars" value="xmluri=' + p.data_url + '&rgb=' + rgb + '&sw='+p.width+'&sh='+p.height+'" />' + "\n");
11         document.write('<embed src="' + p.url + '"');
12         document.write(' quality="high" menu="' + p.menu + '" bgcolor="' + p.bgcolor + '" width="' + p.width + '" height="' + p.height + '" name="pholiot"');
13         document.write(' pluginspage="http://www.macromedia.com/go/getflashplayer"');
14         document.write(' flashvars="xmluri=' + p.data_url + '&rgb=' + rgb + '&sw='+p.width+'&sh='+p.height+'"></embed>' + "\n");
15         document.write('</object>');
16 }
17
18 function pholiotImageOpen(uri,width,height,close){
19         newwin = window.open("", "pholiotimg", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width="+width+",height="+height);
20         newwin.window.focus();
21         newwin.document.open();
22         newwin.document.write('<html><head><title>Pholiot</title></head><body style="margin:0px;padding:0px">');
23         if (close) {
24                 newwin.document.write('<a href="javascript:window.close()">');
25         }
26         newwin.document.write('<img src="'+uri+'" width="'+width+'" height="'+height+'" style="border:none" />');
27         if (close) {
28                 newwin.document.write('</a>');
29         }
30         newwin.document.write('</body></html>');
31         newwin.document.close();
32 }
33