ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 11344


Ignore:
Timestamp:
Apr 17, 2009, 12:22:01 PM (11 years ago)
Author:
urabe
Message:

#3778 flipclip小窓のURL変更に伴い、Javascriptの記述を変更

Location:
OpenPNE/trunk/public_html/cmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/public_html/cmd/flipclip.net.js

    r2849 r11344  
    11//MASTER:flipclip.net.js SLAVE:www.flipclip.net.js
    22function url2cmd(url) {
    3     if (!url.match(/^http:\/\/(?:www\.|)flipclip\.net\/clips\/[a-zA-Z0-9_\-]+\/([a-zA-Z0-9_\-]+)\/?$/)) {
     3    if (!url.match(/^http:\/\/(?:www\.|)flipclip\.net\/clips\/([a-zA-Z0-9_\-]+)$/)) {
    44        pne_url2a(url);
    55        return;
     
    1414    }
    1515
    16     document.writeln('<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="229" height="163" align="middle">');
    17     document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
    18     document.writeln('<param name="movie" value="http://www.flipclip.net/swf/player/15.swf?c='+clipid +'" />');
    19     document.writeln('<param name="quality" value="high" />');
    20     document.writeln('<param name="wmode" value="transparent" />');
    21     document.writeln('<param name="menu" value="false" />');
    22     document.writeln('<param name="flashvars" value="webServiceUrl=http://www.flipclip.net/amf/player&serviceName=FlipClip::AMF::Player&clipKey='+ clipid +'&uid=m3loves55&fid='+clipid+'&flv_url=http://www.flipclip.net/videos/m3loves55/'+clipid+'.flv" />');
    23     document.writeln('<embed src="http://www.flipclip.net/swf/player/15.swf?c='+clipid+'" quality="high" bgcolor="#ffffff" wmode="transparent" width="229" height="163" align="middle"flashvars="webServiceUrl=http://www.flipclip.net/amf/player&serviceName=FlipClip::AMF::Player&clipKey=' +clipid+ '&uid=m3loves55&fid=' +clipid+ '&flv_url=http://www.flipclip.net/videos/m3loves55/' +clipid+ '.flv" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
     16    document.writeln('<script type="text/javascript" src="http://www.flipclip.net/js/'+clipid+'" >');
     17    document.writeln('</script>');
    2418}
  • OpenPNE/trunk/public_html/cmd/www.flipclip.net.js

    r2849 r11344  
    11//MASTER:flipclip.net.js SLAVE:www.flipclip.net.js
    22function url2cmd(url) {
    3     if (!url.match(/^http:\/\/(?:www\.|)flipclip\.net\/clips\/([a-zA-Z0-9_\-]+)\/([a-zA-Z0-9_\-]+)\/?$/)) {
     3    if (!url.match(/^http:\/\/(?:www\.|)flipclip\.net\/clips\/([a-zA-Z0-9_\-]+)$/)) {
    44        pne_url2a(url);
    55        return;
    66    }
    7     var userid = RegExp.$1
    8     var clipid = RegExp.$2;
    9     main(userid,clipid);
     7    var clipid = RegExp.$1;
     8    main(clipid);
    109}
    1110
    12 function main(userid, clipid) {
    13     if (!clipid.match(/^[a-zA-Z0-9_\-]+$/) || !userid.match(/^[a-zA-Z0-9_\-]+$/)) {
     11function main(clipid) {
     12    if (!clipid.match(/^[a-zA-Z0-9_\-]+$/)) {
    1413        return;
    1514    }
    1615
    17     document.writeln('<object');
    18     document.writeln('classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
    19     document.writeln('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"');
    20     document.writeln('width="400"');
    21     document.writeln('height="300"');
    22     document.writeln('id="PlayerCore"');
    23     document.writeln('align="middle">');
    24     document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
    25     document.writeln('<param name="movie" value="http://www.flipclip.net/static/swf/frames/CompactXLarge.swf" />');
    26     document.writeln('<param name="quality" value="high" />');
    27     document.writeln('<param name="scale" value="noscale" />');
    28     document.writeln('<param name="salign" value="lt" />');
    29     document.writeln('<param name="wmode" value="transparent" />');
    30     document.writeln('<param name="menu" value="false" />');
    31     document.writeln('<param name="bgcolor" value="#ffffff" />');
    32     document.writeln('<param name="flashvars" value="coreURL=http://www.flipclip.net/static/swf/PlayerCore3/core.swf&seqURL=http://www.flipclip.net/clips/'+userid+'/'+clipid+'/playinfo/400x300&modPath=http://www.flipclip.net/static/swf/PlayerCore3/module/&autoPlay=false" />');
    33     document.writeln('<embed');
    34     document.writeln('src="http://www.flipclip.net/static/swf/frames/CompactXLarge.swf"');
    35     document.writeln('quality="high"');
    36     document.writeln('scale="noscale"');
    37     document.writeln('salign="lt"');
    38     document.writeln('wmode="transparent"');
    39     document.writeln('menu="false"');
    40     document.writeln('bgcolor="#ffffff"');
    41     document.writeln('width="400"');
    42     document.writeln('height="300"');
    43     document.writeln('name="PlayerCore"');
    44     document.writeln('align="middle"');
    45     document.writeln('allowScriptAccess="sameDomain"');
    46     document.writeln('type="application/x-shockwave-flash"');
    47     document.writeln('pluginspage="http://www.macromedia.com/go/getflashplayer"');
    48     document.writeln('flashvars="coreURL=http://www.flipclip.net/static/swf/PlayerCore3/core.swf&seqURL=http://www.flipclip.net/clips/'+userid+'/'+clipid+'/playinfo/400x300?modPath=http://www.flipclip.net/static/swf/PlayerCore3/module/&autoPlay=false" />');
    49     document.writeln('</object>');
    50 
     16    document.writeln('<script type="text/javascript" src="http://www.flipclip.net/js/'+clipid+'" >');
     17    document.writeln('</script>');
    5118}
Note: See TracChangeset for help on using the changeset viewer.