⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pvlaunch.js

📁 proe5.0野火版下载(中文版免费下载)
💻 JS
📖 第 1 页 / 共 4 页
字号:
                        if (typeof _pvliteString_UpgradeContinue != "undefined")                        {                            _local_UpgradeContinue= _pvliteString_UpgradeContinue;                        }                        if (typeof _pvliteString_UpgradeTitle != "undefined")                        {                            _local_UpgradeTitle= _pvliteString_UpgradeTitle;                        }                        if (typeof _pvliteString_UpgradeInstall != "undefined")                        {                            _local_UpgradeInstall= _pvliteString_UpgradeInstall;                        }                                                document.getElementById(myObj.upgradepview).innerHTML +='<A class=wizardlabel HREF="javascript:void(DoInstall())"  TITLE="'+s_docPluginVersion+'">'+_local_UpgradeInstall+'</A><BR><A class=wizardlabel HREF="javascript:void(DoNotInstall())" TITLE="'+vi+'">'+_local_UpgradeContinue+'</A><BR>';                    }                }            }        }        catch(e)        {            alert("Caught an exception here: " + e);        }    }}function OnInstalledFinished( name , result ){    if(result == 0)    {    }    else    {        alert("Download failed");    }}function StartPview(myApi){    try    {        document.getElementById(myApi.runpview).innerHTML=GetPviewHtml(myApi);        document.getElementById(myApi.runpview).style.visibility = 'visible';    }    catch(e)    {                alert("caught exception: " + e);        return;    }        try    {        document.getElementById(myApi.pvCtl).IsRunning();    }    catch(e)    {        document.getElementById(myApi.runpview).innerHTML=GetPviewExpressHtml(myApi);        document.getElementById(myApi.runpview).style.visibility = 'visible';        try        {            document.getElementById(myApi.pvCtl).IsRunning();        }        catch(e)        {            document.getElementById(myApi.runpview).style.visibility = 'hidden';            document.getElementById(myApi.upgradepview).style.visibility = 'visible';            document.getElementById(myApi.upgradepview).innerHTML ="";            return;        }            }        if( _isNS6 && _visNavEvents != null )    {        eval( _visNavEvents );    }    else if (_isNS6)    {           var cb = new NS6callback();        cb.pvObj = myApi;        try        {            var retVal = document.getElementById(myApi.pvCtl).SetNSCallback(cb);        }        catch (e)        {            window.alert("exception thrown doing SetNSCallback");        }    }}function ConvertNSParamsToIE(nsParams){    var params = "";        if(!nsParams)    {        return params;    }    var startloc = 0;    while(true)    {        var loc = nsParams.indexOf("=", startloc);        if (loc == -1)        break;        params += "<param name='";        var nameStartLoc = nsParams.lastIndexOf(' ', loc);        params += nsParams.substring(nameStartLoc+1,loc);                params += "' value=";        var loc1 = nsParams.indexOf("'", startloc);        var loc2 = nsParams.indexOf("'", loc1+1);        params += nsParams.substring(loc1,loc2+1);        params += ">";        startloc = loc2+1;    }    return params;}function GetPviewHtml(pvApi){    var htmlString="";    if (_isIE)    {        var ieParams = ConvertNSParamsToIE(pvApi.params);        if (_isEcad)        {            if (_is64bitIE)            {                                                         htmlString += '<object classid="CLSID:03131301-0084-42a1-B9E0-2B26E6D180B4" id='+pvApi.pvCtl;            } else            {                htmlString += '<object classid="CLSID:96E18B4A-3533-4583-BC3D-9910E37735DF" id='+pvApi.pvCtl;            }        } else        {            if (_is64bitIE)            {                                                         htmlString += '<object classid="CLSID:F1BFCEEA-892D-405c-945F-19F87338A17F" id='+pvApi.pvCtl;            } else            {                htmlString += '<object classid="CLSID:F07443A6-02CF-4215-9413-55EE10D509CC" id='+pvApi.pvCtl;            }        }        if (s_docType) htmlString +=' type="' + s_docType + '"';        htmlString += ' width=100%';        htmlString += ' height=100%';        htmlString += '>\n';        htmlString += ieParams;        htmlString += '</object>\n';    }    else    {        htmlString += '<embed name='+pvApi.pvCtl;        htmlString += ' type="application/x-pvlite9-ed" ';        htmlString += ' id='+pvApi.pvCtl;        htmlString += ' width=100%';        htmlString += ' height=100% ';        htmlString += pvApi.params;        htmlString += '>\n';    }    return htmlString;}function GetPviewExpressHtml(pvApi){    var htmlString="";    if (_isIE)    {        var ieParams = ConvertNSParamsToIE(pvApi.params);                if (_is64bitIE)        {                                                     htmlString += '<object classid="CLSID:43A306AA-7E40-44a4-9E2A-1F493182C5B8" id='+pvApi.pvCtl;        }        else        {            htmlString += '<object classid="CLSID:7A38DE4B-5644-4b7c-B940-A56598166C1C" id='+pvApi.pvCtl;        }                if (s_docType) htmlString +=' type="' + s_docType + '"';        htmlString += ' width=100%';        htmlString += ' height=100%';        htmlString += '>\n';        htmlString += ieParams;        htmlString += '</object>\n';    }    else    {        htmlString += '<embed name='+pvApi.pvCtl;        htmlString += ' type="application/x-pvexpress-pvs" ';        htmlString += ' id='+pvApi.pvCtl;        htmlString += ' width=100%';        htmlString += ' height=100% ';        htmlString += pvApi.params;        htmlString += '>\n';    }    return htmlString;}function CompareVersion(downloadVersion, installedVersion){    var loc1=0;    var loc2=0;    for (i=0; i< 4; i++)    {        var val1, val2;        var locEnd = downloadVersion.indexOf('.',loc1);        if (locEnd != -1)        {            val1 = eval(downloadVersion.substring(loc1,locEnd));        }        else        {            val1 =eval(downloadVersion.substring(loc1));        }        loc1 = locEnd+1;        locEnd = installedVersion.indexOf('.',loc2);        if (locEnd != -1)        {            val2 = eval(installedVersion.substring(loc2,locEnd));        }        else        {            val2 = eval(installedVersion.substring(loc2));        }        loc2 = locEnd+1;        if (val1 > val2)        {            return false;        }        if (val1 < val2)        {            return true;        }    }    return true}function GetPvCheckHtml(pvApi){    var htmlString="";    if (navigator.appName == "Netscape")    {        var L = navigator.plugins.length;        var usePlugin = false;        for (i=0; i< L; i++)        {            if(navigator.plugins[i].name == "ProductView Version Checker")            {                v = navigator.plugins[i].description;                var versionLoc = v.lastIndexOf(' ');                var instVer =  v.substring(versionLoc+1);                usePlugin= CompareVersion(s_docPluginVersion, instVer);                break;            }        }        if(usePlugin)        {            htmlString += '<embed name='+pvApi.pvVerCtl;            htmlString += ' id='+pvApi.pvVerCtl;            if (g_docPluginURL) htmlString += ' pluginurl=' + s_downloadDir + g_docPluginURL;            htmlString += ' pluginspage="' + s_downloadDir + g_docPluginURL +'"';            htmlString += ' type="application/x-pvlite9-ver" ';            htmlString += ' hidden="true"';            htmlString += ' autostart="true"';            htmlString += '>\n';        }        else        {        //    xpi={'XPInstall ProductView Version Checker':g_docPluginURL};        //    if(!g_installingVerCheck)        //    {        //        g_installingVerCheck =  true;        //        InstallTrigger.install(xpi,OnInstalledFinished);        //    }        }    }    else    {        if(_is64bitIE)        {            htmlString += '<object classid="CLSID:82DBCFDB-5658-4cfb-B32B-0828247043C0" id='+pvApi.pvVerCtl;        }        else        {            htmlString += '<object classid="CLSID:F694EA1F-2EC1-445D-8988-1862AD0CC4C8" id='+pvApi.pvVerCtl;        }        if (s_docType) htmlString +=' type="' + s_docType + '"';        if (s_downloadDir) htmlString +=' codebase="' + s_downloadDir + g_docPluginURL;        if (s_docPluginVersion) htmlString +='#version=' + s_docPluginVersion;        if (g_docPluginURL)  htmlString += '"';        htmlString += '>';        htmlString += '</object>\n';    }        return htmlString;}function DoNotInstall(){    document.cookie="pvlite_version_checked=true;path=/";       url = window.location;    window.location.href = url;}function installDone(){    url = window.location;    window.location.href = url;}function installCancel(installMode){    if(installMode == "upgrade")    {        // If cancel upgrade, run current version        document.cookie="pvlite_version_checked=true;path=/";        }    url = window.location;    window.location.href = url;}function DoNotCheck(){    document.cookie="pvlite_version_checked=true;path=/";        for(i=0;i<g_pvliteInstanceArray.length;++i)    {        StartPview(g_pvliteInstanceArray[i]);    }    }function DoInstall(){   //    var opts = "dependent=yes,toolbar=0,location=0,directory=0,status=1,menubar=0,scrollbars=0,resizable=1,width=760,height=520,pagezoom=0";   //   window.open(s_basePvUrl+"download_pvl.html","installWindow",opts);    }function IECallbackEvents(pvApi){    if( _isIE )    {        if( _visNavEvents != null )         {            eval( _visNavEvents );        }        else         {            document.write("<script for='"+pvApi.pvCtl+"' event='OnDoAction()'>NSDoAction('"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnLoadComplete()'>NSLoadComplete('"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnSetStatusText(text)'>NSSetStatusText(text,'"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnCloseWindow()'>NSCloseWindow('"+pvApi.pvId+"')</script>\n");                       document.write("<script for='"+pvApi.pvCtl+"' event='OnSelectInstance(text)'>NSSelectInstance(text,'"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnDeSelectInstance(text)'>NSDeSelectInstance(text,'"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnDeSelectAll()'>NSDeSelectAll('"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnBeginSelect()'>NSBeginSelect('"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnEndSelect()'>NSEndSelect('"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnSetFocus()'>NSSetFocus()</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnSaveScreenShot(status, filename)'>NSSaveScreenShot(status,filename,'"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnBeginGroupProperties()'>NSBeginGroupProperties('"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnPropertyGroup(group, loaded)'>NSPropertyGroup(group, loaded,'"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnEndGroupProperties()'>NSEndGroupProperties('"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnPropertyGroupLoaded(group, loaded)'>NSPropertyGroupLoaded(group, loaded,'"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnBeginFindInstance()'>NSBeginFindInstance('"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnFindInstance(id)'>NSFindInstance(id,'"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnEndFindInstance()'>NSEndFindInstance('"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnAnnotationEvent(operation, name, status)'>NSAnnotationEvent(operation, name, status,'"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnBeginInstance()'>NSBeginInstance('"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnInstance(id, name, parent)'>NSInstance(id, name, parent,'"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnEndInstance()'>NSEndInstance('"+pvApi.pvId+"')</script>\n");                        document.write("<script for='"+pvApi.pvCtl+"' event='OnPreSelectedInstance(text)'>NSPreSelectedInstance(text,'"+pvApi.pvId+"')</script>\n");            document.write("<script for='"+pvApi.pvCtl+"' event='OnClearPreSelection()'>NSClearPreSelection('"+pvApi.pvId+"')</script>\n");        }    }}function NSDoAction(pvApi){    if(_isIE)    {        for(i=0;i<g_pvliteInstanceArray.length;++i)        {            if(pvApi == g_pvliteInstanceArray[i].pvId)            {                if(g_pvliteInstanceArray[i].OnDoAction)                {                    g_pvliteInstanceArray[i].OnDoAction();                }            }        }            }    else    {        if(this.pvObj.OnDoAction)        {            this.pvObj.OnDoAction();        }    }}function NSLoadComplete(pvApi){    if(_isIE)    {        for(i=0;i<g_pvliteInstanceArray.length;++i)        {            if(pvApi == g_pvliteInstanceArray[i].pvId)            {                if(g_pvliteInstanceArray[i].OnLoadComplete)                {                    g_pvliteInstanceArray[i].OnLoadComplete();                }            }        }            }    else    {        if(this.pvObj.OnLoadComplete)        {            this.pvObj.OnLoadComplete();        }    }}function NSSetStatusText(text) {    if (typeof decodeURIComponent == "function")    {        try         {            text = decodeURIComponent(text);        }         catch (e)        {            return;        }    }    window.defaultStatus=text;}function NSCloseWindow(){    window.close();}function NSSelectInstance(text,pvApi){     if(_isIE)    {        for(i=0;i<g_pvliteInstanceArray.length;++i)        {            if(pvApi == g_pvliteInstanceArray[i].pvId)            {                if(g_pvliteInstanceArray[i].OnSelectInstance)                {                    g_pvliteInstanceArray[i].OnSelectInstance(text);                }            }        }            }    else    {        if(this.pvObj.OnSelectInstance)        {            this.pvObj.OnSelectInstance(text);        }    }}function NSSaveScreenShot(status, filename, pvApi){    if(_isIE)    {        for(i=0;i<g_pvliteInstanceArray.length;++i)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -