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

📄 s_code_remote.js

📁 是一部关于java高级图像处理的的一本入门书
💻 JS
📖 第 1 页 / 共 2 页
字号:
/* SiteCatalyst Code Version: G.5 */
/* SMI Version 6.3 */
/*Note to SMI web developers. Do not install or test this code on your site without approval from the .SUN organization!*/
/* 
Convert all index.html, index.jsp, etc. to foo/.
Increase s_hier to 15 levels
Add java.net to internal links.
*/

/************************** CONFIG SECTION **************************/

/* Set the Report Suite ID(s) and site ID for each Sun site. The site ID 
   is pre-pended to pageNames and channel names. */
   var s_account="sunglobal,sundeveloper"
// var s_account="devsunjavas"

/* Uncomment one of the following */
var s_siteid = "jsc:"

var s_dynamicAccountSelection=false
var s_dynamicAccountList=""

var s_linkInternalFilters="javascript:,sun.com,java.com,opensolaris.org,sun-catalogue.com,java.net,netbeans.org,globalspecials.sun.com"

/* List s_prop and s_eVar variables to be passed during custom/exit/download links.
   Otherwise, values passed in are ignored. */
var s_linkTrackVars="None"

/* List event values in "s_events" to be passed during custom/exit/download links.
   Otherwise, events are ignored by default. */
var s_linkTrackEvents="None"

/* Plugin Config - may be specific to each Sun site */
var s_usePlugins=true

function s_doPlugins() {
  /* Add calls to plugins here */
        /*pageType 404 fix */
        if(s_pageType==""){
  /* External campaigns */
  if(s_campaign=="")
    s_vp_getCGI('s_campaign','cid');
/* Campaign Pathing-30 minutes */
  s_vp_getCustomPagePath("s_prop4",s_vp_getValue("s_campaign"),"cmpPath","cid=");
/* Campaign Page Views */
	s_vp_setAndPersistValue('s_prop5',s_vp_getValue('s_campaign'),1.0/48);
  // Internal campaigns
  s_vp_getCGI('s_eVar1','intcmp');
  // RSS Feeds
  s_vp_getCGI('s_prop24','feed');
//  s_vp_getFormAbandonState("s_prop1","o","Form Abandonment");
        }
}

// ###################################################
// CODE CHANGE FOR FILE: PROTOCOL EXCLUSION 6/28/2005
// ###################################################
// NEW CODE:
   var s_isValid = true;
   if (location.protocol=="file:") { s_isValid=false; }
// END CODE CHANGE

/***************** STANDARD CODE FOR ALL SUN SITES ******************/
/**********TO BE CHANGED ONLY BY SMI .SUN PROGRAM MANAGEMENT*****/
/* Make certain these variables are defined, if not on page */
if (typeof s_channel=='undefined')
   var s_channel = "";
if (typeof s_pageName=='undefined')
   var s_pageName = "";   
if(typeof s_events=='undefined')
  var s_events="";
if(typeof s_campaign=='undefined')
  var s_campaign="";
if(typeof s_hier1=='undefined')
  var s_hier1="";
if (typeof s_pageType=='undefined')
  var s_pageType="";
        
        /*pageType 404 fix */   
        if(s_pageType==""){
/* Check for this common problem */
if (s_pageName.toLowerCase()=="document.title"){
  s_pageName=document.title;
}

/* Use URL as default page name unless s_pageName already populated. */
if (typeof s_pageName!='undefined') {
    // See if it has a value
    if (s_pageName=="") {
        s_pageName=window.top.location.pathname.toLowerCase();
        var s_iNames = ["index.html","index.jsp","index.htm","index.shtml","index.xml","index.jhtml","index.jshtml","index.jspa","index.php"];
        for (var a=0; a<s_iNames.length; a++) {
            var s_iName = "/"+s_iNames[a];
            if (s_pageName.indexOf(s_iName) > -1 && s_pageName.indexOf(s_iName) == s_pageName.length - s_iName.length) {
                s_pageName = s_pageName.substring(0, s_pageName.length - s_iNames[a].length);
            }
        }
    }
}
        }
var s_disableLegacyVars=true
var s_eVarCFG=""

        /*pageType 404 fix */
        if(s_pageType==""){
/* Link Tracking Config */
var s_trackDownloadLinks=true  // downloads
var s_trackExternalLinks=true  // external links
var s_trackInlineStats=true    // ClickMap
var s_linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,doc,pdf,xls,bin,tar,Z,gz"
var s_linkLeaveQueryString=false

/* Populate "s_channel" variable (if not already populated). Based on 15 levels of directory. */
if(s_channel==""){
  var s_t1=0
  var s_t2=0
  var s_du=""
  s_du=window.top.location.href.toLowerCase()
  if((s_t1=s_du.indexOf("://"))>=0){
    if((s_t2=s_du.indexOf("/",s_t1+3))>=(s_t1+3)){
      if(s_du.indexOf(".",s_t1+3)<s_t2){
        var s_c2=""
       
        s_t1=s_t2+1
        s_t2=s_du.lastIndexOf("/")
        s_channel=s_du.substring(s_t1,s_t2)
       
        // Replace all "/" chars with ":"
        for(s_t2=0; s_t2<s_channel.length; s_t2++){
          if(s_channel.charAt(s_t2)=="/"){
            // Bogus code, but JavaScript 1.0-compatible
            s_c2=s_channel.substring(0,s_t2)+":"+s_channel.substring(s_t2+1,s_channel.length)
            s_channel=s_c2
          }
        }
      }
    }
    
  
    // Remove everything after the fifteenth "/"
    s_t1=0
    for(s_t2=0;s_t2<s_channel.length;s_t2++){
      if(s_channel.charAt(s_t2)==":"){
        s_t1++
        if(s_t1==15){
          s_channel=s_channel.substring(0,s_t1-1)
          break
        }
      }
    }
  }
}

/* Places entire path into Hierarchy variable, or just s_channel if populated on page. */

if(s_hier1==""){
	if(s_channel!==""){
      s_hier1=s_siteid+s_channel
    }
}


/* STANDARD SUN GLOBAL ACCOUNT CODE: pre-pend "pageName", "channel", and "s_hier" with "s_siteid" if not already prepended*/
if(typeof s_siteid!='undefined'){
  if(typeof s_pageName!='undefined'&&s_pageName.length>0){
    if(s_pageName.substr(0,s_siteid.length).toLowerCase()!=s_siteid){
      s_pageName=s_siteid+s_pageName;
    }
  }
  if(s_channel.length>0){
    if (s_channel.substr(0,s_siteid.length).toLowerCase()!=s_siteid){
        s_channel=s_siteid+s_channel;
    }
  }
if(s_hier1.length>0){
    if (s_hier1.substr(0,s_siteid.length).toLowerCase()!=s_siteid){
        s_hier1=s_siteid+s_hier1;
    }
  }
}

/* PUT SITE_ID INTO S_PROP2*/
if(typeof s_siteid=='undefined'){var s_siteid=""};
if(typeof s_prop2=='undefined'){var s_prop2=""};
   s_prop2=s_siteid;
        }

/************************** PLUGINS SECTION *************************/
/* You may insert any plugins you wish to use here.                 */
/*
 * Plugin: Get State Of Form On Abandon
 New Form Abandon Plugin goes here when available.
 */

/*
 * Plugin: Get Query String CGI Variable Value
 */
function s_vp_getCGI(vs,k)
        {var v='';if(k&&s_wd.location.search){var q=s_wd.location.search,
        qq=q.indexOf('?');q=qq<0?q:q.substring(qq+1);v=s_pt(q,'&',s_cgif,
        k)}s_vpr(vs,v)}function s_cgif(t,k){if(t){var te=t.indexOf('='),
        sk=te<0?t:t.substring(0,te),sv=te<0?'True':t.substring(te+1);if(
        sk==k)return s_epa(sv)}return ''}
/* 
Plugin: Custom Page Path v1.0 (Campaign Pathing-30 minutes)
*/
function s_vp_getCustomPagePath(s,v,c,p) {
var pn=s_vp_getValue("s_pageName");
var t=new Date;t.setTime(t.getTime()+1800000); 
if(v){if(s_c_w(c,v,t)){s_vpr(s,p+v+":"+pn)}}
else{v=s_c_r(c);if(v){s_c_w(c,v,t);s_vpr(s,pn);}}
}
/*
 * Plugin: setAndPersistValue 0.1 - get a value on every page-30 minutes
 */
function s_vp_setAndPersistValue(vs,v,a){
	var l,e=new Date;if(v){e.setTime(e.getTime()+a*86400000);s_c_w(
	's_p_'+vs,v,a?e:a)};l=s_c_r('s_p_'+vs);s_vpr(vs,l)}
/*
 * Plugin: Get Plugin Modified Value
 */
function s_vp_getValue(vs)
        {var k=vs.substring(0,2)=='s_'?vs.substring(2):vs;return s_wd[
        's_vpm_'+k]?s_wd['s_vpv_'+k]:s_gg(k)}
/*
 * Plugin Utilities v2.0 (Required For All Plugins)

⌨️ 快捷键说明

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