I have script run Fancy3D for game as follow
- Code: Select all
<script>
var is_ie = /msie/.test( navigator.userAgent.toLowerCase( ) ) || /trident/.test(navigator.userAgent.toLowerCase( ) );
var x64 = /x64/.test( navigator.userAgent.toLowerCase( ) );
// add f3d object
function add_f3d_object(url , iconName) {
var game = "ABC Game";
var param1 = "link="+url+"`"+iconName;
var liburl;
var libmd5;
if (x64)
{
liburl = "http://103.196.236.99/loader64.b67dff21cd581c9980b26da9bdc2a539.txt";
libmd5 = "b67dff21cd581c9980b26da9bdc2a539";
}
else
{
liburl = "http://103.196.236.99/loader.c70ca996bb43cab879d2d528042b121c.txt";
libmd5 = "c70ca996bb43cab879d2d528042b121c";
}
var obj = is_ie ? 'classid="clsid:b2e8d85e-c0c5-48df-8dbc-1359b339ae32"' : 'type="application/fancy-npruntime-fancy3d-plugin"';
var object2 = document.createElement("div");
object2.className = "global"
object2.innerHTML = '<div class="global" display="hidden" visible="false">\
<object id="fancy3d" ' + obj + 'width="0" height="0" display="none" visible="false"' +'>\
<param name="game" value="' + game + '" />\
<param name="nprver" value="0.0.2.17" />\
<param name="ocxver" value="0.0.2.17" />\
<param name="liburl" value="' + liburl + '" />\
<param name="libmd5" value="' + libmd5 + '" />\
<param name="unsafelib" value="allow" />\
<param name="param1" value="' + param1 + '" />\
</object>\
</div>'
document.getElementById("fancy3dContent").appendChild(object2)
}
// test f3d plugin install
function is_f3d_installed() {
// Not IE
if(!is_ie) {
for(var m in window.navigator.mimeTypes) {
if(window.navigator.mimeTypes[m].type == 'application/fancy-npruntime-fancy3d-plugin') {
return true
}
}
return false
// IE
} else {
try {
new ActiveXObject('FANCY3DOCX.Fancy3DOCXCtrl.1')
return true
} catch (_) {
return false
}
}
}
// add f3d
function doCreateDesktopShortCut(url , iconName){
if(is_f3d_installed()) {
add_f3d_object(url , iconName)
}
}
Inside link : liburl is plugins fancy
but i cant' allow it for cef .
me using
- Code: Select all
command_line->AppendSwitchWithValue("ppapi-out-of-process", "plugins/Fancy3D.dll");
but not ok .
pls help me