亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? interactionclass.js

?? Dreamweaver MX 2004中文版精彩設計百例源代碼
?? JS
?? 第 1 頁 / 共 2 頁
字號:
// Copyright 1998,1999 Macromedia, Inc. All rights reserved.

// Localization strings
var TRACK_system_not_found = "Tracking system not found.";

//Constructs an Interaction
function MM_interaction(theSelf,
               theJudgeOnSel, theAllowMultiSel, theAllThatApply, theUnknownIsCorrect,
               theDisabled, theTriesLimit, theTimeLimit,
               theTrackIntId, theTrackObjectiveId,
               theTrackQType,theTrackWeight, theKTrack) {
  // properties
  this.judgeOnSel = theJudgeOnSel;
  this.allowMultiSel = theAllowMultiSel;
  this.allThatApply = theAllThatApply;
  this.unknownIsCorrect = theUnknownIsCorrect;
  this.disabled = theDisabled;
  this.tries = 0;
  this.triesLimit = (theTriesLimit)?theTriesLimit:0;
  this.triesAtLimit = false;
  this.time = 0;
  this.timeLeft = 0;
  this.timeLimit = (theTimeLimit)?theTimeLimit:0;
  this.timeAtLimit = false;
  this.trackIntId = theTrackIntId;
  this.trackObjectiveId = theTrackObjectiveId;
  this.trackQType = theTrackQType;
  this.trackWeight = theTrackWeight;
  this.knowledgeTrack = theKTrack;
  this.totalElems = 0;
  this.possCorrect = 0;
  this.possIncorrect = 0;
  this.knownResponse = false;
  this.totalCorrect = 0;
  this.totalIncorrect = 0;
  this.correct = false;
  this.score = 0;

  this._self = theSelf;
  this._timeStart = 0;
  this._timerID = 0;
  
  this.browserIsNS = (navigator.appName.indexOf('Netscape') != -1);
  this.browserIsIE = (navigator.appName.indexOf('Microsoft') != -1);
  this.osIsWindows = (navigator.appVersion.indexOf('Win') != -1);
  this.osIsMac = (navigator.appVersion.indexOf('Mac') != -1); // ????
  this.browserVersion = parseFloat(navigator.appVersion);
  
  this.e = new Array();
  this.b = new Array();

  // methods
  this.init = MM_intInit;
  this.reset = MM_intReset;
  this.resetElems = MM_intResetElems;
  this.enable = MM_intEnable;
  this.disable = MM_intDisable;
  this.setDisabled = MM_intSetDisabled;
  this.update = MM_intUpdate;
  this.add = MM_intAdd;
  this.setTries = MM_intSetTries;
  this.setTriesLimit = MM_intSetTriesLimit;
  this.setTime = MM_intSetTime;
  this.setTimeLimit = MM_intSetTimeLimit;
  this.track = MM_intTrack
  this.getTime = MM_intGetTime;

  this.am = MM_intAm;
  this.judge = MM_intJudge;
  this.resetActionMgr = MM_intResetActionMgr;
  this.setSegmNode = MM_intSetSegmNode;
  this.getSegmNode = MM_intGetSegmNode;
  this.setSegmDisabled = MM_intSetSegmDisabled;
  this.getSegmDisabled = MM_intGetSegmDisabled;
}

//Calls the element init funtions if they exist, and then does a reset
function MM_intInit() {
  var i,j,localPC;

  with (this) {
    // init elems, and set totalElems, possCorrect, possIncorrect;
    totalElems = 0;
    possCorrect = 0;
    possIncorrect = 0;
    for (i in e) if (i != 'length') {
      if (e[i].init != null) e[i].init();
      totalElems++;
      localPC = 0;
      for (j in e[i].c) if (j != 'length' && e[i].c[j].isCorrect != null)
        (e[i].c[j].isCorrect) ? localPC++ : possIncorrect++;
      if (e[i]._singleChoice != null && localPC > 1)
        localPC = 1;
      possCorrect += localPC;
    }
    reset();
    if (knowledgeTrack) {
      var frm = findcmiframe(null);
      if (frm == null) {
        installcmi(window); //layers in NS
        if (!CMIIsPresent()) {
          var cmi = cmiinit(window);
          if (cmi) CMIInitialize();
          else if (!window.trackwarning) {
            alert(TRACK_system_not_found);
            window.trackwarning = true;
      } } } 
      else {
        if (window.CMIInitialize == null) frm.installcmi(window);
        if (window.CMIInitialize != null) CMIInitialize();
        if (!CMIIsPresent() && !window.trackwarnings) {
          alert(TRACK_system_not_found);
          window.trackwarning = true;
  } } } }
  window["'"+this._self+"'"] = this._self; //redeclare global on window in case inserted in layer
}

//Called to reset the interaction
function MM_intReset() {
  with (this) {
    tries = 0;
    triesAtLimit = false;
    _timeStart = Math.floor((new Date()).getTime()/1000);
    if (_timerID) clearTimeout(_timerID);
    if (!disabled && timeLimit) _timerID = setTimeout(_self+".judge()",(timeLimit+1)*1000);
    time = 0;
    timeLeft = timeLimit;
    timeAtLimit = false;
  
    resetActionMgr();
    resetElems();
    update(true);
  }
}

//Calls the reset for the individual elements
function MM_intResetElems() {
  with (this) {
    for (var i in e) if (i != 'length')
      if (e[i].reset != null)  e[i].reset();
    update(true);
  }
}

//Enables the interaction
function MM_intEnable() {
  if (this.disabled) with (this) {
    _timeStart = Math.floor((new Date()).getTime()/1000) - time;
    if (timeLimit)
      _timerID = setTimeout(_self+".judge()",Math.max(0,(timeLimit-time)+1)*1000);
    disabled = false;
    update(true);
    for (var i in e) if (i != 'length')
      if (e[i].enable != null)  e[i].enable();
  }
}

//Disables the interaction
function MM_intDisable() {
  if (!this.disabled) with (this) {
    update(true);  // update 'time'
    if (_timerID) clearTimeout(_timerID);  // clear the timer
    disabled = true;
    for (var i in e) if (i != 'length')
      if (e[i].disable != null)  e[i].disable();
  }
}

//Calls the approppriate disable or enable function
function MM_intSetDisabled(theDisabled) {
  if (theDisabled) this.disable();
  else this.enable();
}

//Update the interaction state
// Note: tries will be updated by the judge method, and time will
//       be updated by both this method and the judge method.
function MM_intUpdate(noJudge) {
  if (!this.disabled) with (this) {
    knownResponse = false;
    totalCorrect = 0;
    totalIncorrect = 0;
    correct = false;
    score = 0;
    for (var i in e) if (i != 'length') {
      for (var j in e[i].c) if (j != 'length') {
        if (e[i].c[j].selected) {
          knownResponse = true;
          score += e[i].c[j].score;
          if (e[i].c[j].isCorrect != null)
            (e[i].c[j].isCorrect) ? totalCorrect++ : totalIncorrect++;
    } } }
    if (!knownResponse) correct = unknownIsCorrect;
    else if (totalIncorrect != 0) correct = false;
    else if (totalCorrect == 0) correct = null; // not judged
    else correct = (!allThatApply || totalCorrect >= possCorrect);
  
    time = Math.floor((new Date()).getTime()/1000) - _timeStart;
    if (timeLimit && !timeAtLimit) {
      timeLeft = Math.max(0, timeLimit - time);
      timeAtLimit = (time > timeLimit);
    }
  
    if (judgeOnSel && !noJudge)  judge();
  }
}

function MM_intSetTries(theTries) {
  with (this) {
    tries = theTries;
    triesAtLimit = (triesLimit) ? (tries >= triesLimit) : false;
  }
}

function MM_intSetTriesLimit(theTriesLimit) {
  with (this) {
    triesLimit = theTriesLimit;
    triesAtLimit = (triesLimit) ? (tries >= triesLimit) : false;
  }
}

function MM_intSetTime(theTime) {
  with (this) {
    time = Math.max(0, theTime);
    _timeStart = Math.floor((new Date()).getTime()/1000) - time;
    timeLeft = (timeLimit) ? Math.max(0, timeLimit - time) : timeLimit;
    timeAtLimit = (timeLimit) ? (time > timeLimit) : false;
    if (_timerID) clearTimeout(_timerID);  // clear the timer
    if (!disabled && timeLimit)
      _timerID = setTimeout(_self+".judge()",Math.max(0,(timeLimit-time)+1)*1000);
  }
}

function MM_intSetTimeLimit(theTimeLimit) {
  with (this) {
    if (!disabled)
      time = Math.floor((new Date()).getTime()/1000) - _timeStart;
    timeLimit = theTimeLimit;
    timeLeft = (timeLimit) ? Math.max(0, timeLimit - time) : timeLimit;
    timeAtLimit = (timeLimit) ? (time > timeLimit) : false;
    if (_timerID) clearTimeout(_timerID);  // clear the timer
    if (!disabled && timeLimit)
      _timerID = setTimeout(_self+".judge()",Math.max(0,(timeLimit-time)+1)*1000);
  }
}

function MM_intAdd(theType, A, B, C, D, E, F, G, H, I, J, K, L, M) {
  var theObj = eval("new MM_" + theType + "(" + this._self + ", A, B, C, D, E, F, G, H, I, J, K, L, M)");
  if (theObj._isChoice != null)
    this.e[A].c[B] = theObj;
  else
    this.e[A] = theObj;
}

function MM_intTrack() {
  var  aDt= new Date();
  var curHr=aDt.getHours()+'', curMin=aDt.getMinutes()+'', curSec=aDt.getSeconds()+'';
  var curDay=aDt.getDate()+'', curMonth=aDt.getMonth()+1+'', curYear=aDt.getYear(), dmy;
  var lat = Math.floor(aDt.getTime()/1000) - this._timeStart;
  var x=3600;
  var y=60;
  var hrs=Math.round(lat/x - lat%x/x)+'';
  var min=Math.round((lat-hrs*x)/y-(lat-hrs*x)%y/y)+'';
  var sec=Math.round(lat-hrs*x-min*y)+'';
  var sRes,cRes,res,aName,bName,isC,isNC,isSel,iType;

  if (curYear < 1900) curYear += 1900;
  if (curDay.toString().length==1) curDay = '0'+curDay;
  if (curMonth.toString().length==1) curMonth = '0'+curMonth;
  dmy = curDay+"/"+curMonth+"/"+curYear;
  
  sRes=cRes=res=aName=bName=""

  with (this) {  
    if (trackQType.length==0) return;
    iType=trackQType.charAt(0).toLowerCase();
    if (allThatApply&&possCorrect>1) sRes=cRes='{';
    
    for (var i in e) if (i != 'length') {
      for (var j in e[i].c) if (j != 'length') {
        isC=e[i].c[j].isCorrect;
        isSel=e[i].c[j].selected;
        if (iType=='m') {
          aName=e[i].c[j]._elem._name;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品美女一区二区| 国产乱人伦偷精品视频免下载| 免费高清视频精品| www.66久久| 日韩欧美精品在线| 亚洲乱码日产精品bd| 国产裸体歌舞团一区二区| 欧美日韩精品欧美日韩精品| 国产精品美女一区二区三区| 婷婷综合在线观看| 日本久久精品电影| 国产精品美女久久久久久久久 | 国产剧情一区二区| 在线观看免费成人| 最近日韩中文字幕| 成人免费福利片| 久久久久久久久蜜桃| 日本va欧美va精品发布| 欧美亚洲自拍偷拍| 亚洲日本电影在线| 99久免费精品视频在线观看| 国产欧美一区二区精品秋霞影院| 美国毛片一区二区| 91精品婷婷国产综合久久竹菊| 亚洲男人的天堂一区二区| 高清国产一区二区三区| xfplay精品久久| 精品在线播放午夜| 欧美xfplay| 精品一区二区在线播放| 欧美成人精精品一区二区频| 蜜桃av一区二区三区| 色天使久久综合网天天| 亚洲男同1069视频| 色94色欧美sute亚洲线路二| 亚洲午夜羞羞片| 欧美无乱码久久久免费午夜一区| 一二三区精品视频| 欧美性猛交xxxx乱大交退制版| 一级做a爱片久久| 精品视频在线免费| 秋霞国产午夜精品免费视频| 欧美大片一区二区| 国产盗摄视频一区二区三区| 国产亚洲欧美日韩日本| 大桥未久av一区二区三区中文| 国产精品久久久久久久久快鸭| www.在线欧美| 亚洲国产欧美在线人成| 欧美一三区三区四区免费在线看| 久久国产精品第一页| 久久精品无码一区二区三区| 99国产精品久久久久久久久久| 中文字幕中文字幕中文字幕亚洲无线| 成人av在线一区二区三区| 一区二区免费看| 精品久久一区二区三区| 成人毛片视频在线观看| 亚洲国产三级在线| 久久欧美中文字幕| 一道本成人在线| 久久国产日韩欧美精品| 国产精品初高中害羞小美女文| 欧美日韩一二区| 国产成人福利片| 亚洲成人一区二区在线观看| 精品国产一区二区三区忘忧草| 国产精品一级片| 亚洲制服丝袜av| 精品国产一区二区三区久久久蜜月| 国产白丝精品91爽爽久久| 一区二区三区美女| 久久久精品国产免费观看同学| 欧美在线视频你懂得| 激情综合亚洲精品| 亚洲一区二区三区爽爽爽爽爽| 久久久夜色精品亚洲| 精品视频资源站| av一区二区久久| 精品无码三级在线观看视频| 一级做a爱片久久| 欧美国产日韩a欧美在线观看| 欧美性一级生活| caoporn国产一区二区| 日韩成人精品在线| 亚洲精品日韩综合观看成人91| 欧美一区二区三区系列电影| 91蜜桃传媒精品久久久一区二区| 黄色精品一二区| 婷婷综合五月天| 伊人开心综合网| 国产精品丝袜久久久久久app| 日韩精品在线网站| 欧美精品视频www在线观看| 99精品一区二区三区| 国产凹凸在线观看一区二区| 免费高清成人在线| 日韩精品成人一区二区在线| 亚洲永久免费av| 亚洲乱码国产乱码精品精的特点| 中文字幕免费观看一区| 26uuu欧美日本| 日韩欧美国产精品一区| 欧美一级高清片在线观看| 欧美日韩一级二级| 欧美日韩国产美| 欧美人伦禁忌dvd放荡欲情| 99免费精品视频| 99re热视频这里只精品| 成人18视频日本| 99免费精品视频| 色综合色综合色综合色综合色综合| 成人免费视频免费观看| 国产高清久久久久| 国产v日产∨综合v精品视频| 激情综合色综合久久| 激情另类小说区图片区视频区| 久久精品72免费观看| 韩国视频一区二区| 精品亚洲欧美一区| 国产成人精品免费看| 成人免费av在线| av亚洲精华国产精华精| 99免费精品在线| 欧美性色综合网| 欧美一区二区二区| 亚洲精品免费在线播放| 一卡二卡欧美日韩| 日韩电影一区二区三区四区| 麻豆精品在线播放| 韩国女主播成人在线| 成人影视亚洲图片在线| 99r精品视频| 欧美肥妇free| 久久精品一区八戒影视| 中文字幕在线观看不卡视频| 亚洲精品中文在线| 丝袜国产日韩另类美女| 九九久久精品视频| 99久久久精品| 日韩一区二区免费在线电影| 久久精品夜色噜噜亚洲a∨| 日韩美女视频一区二区| 日韩精品1区2区3区| 国产精品原创巨作av| 色婷婷狠狠综合| 日韩区在线观看| 亚洲视频免费看| 男女性色大片免费观看一区二区 | 天堂一区二区在线免费观看| 美女脱光内衣内裤视频久久影院| 国产91丝袜在线播放九色| 日本道色综合久久| 日韩欧美中文字幕制服| 国产精品理论片在线观看| 日韩中文字幕一区二区三区| 国产精品99久久久久久宅男| 欧美丝袜丝nylons| 日本不卡一二三| 国产成人综合网| 欧美福利视频一区| 中文字幕制服丝袜一区二区三区| 免费观看成人av| 91精彩视频在线| 日本一区二区视频在线观看| 日韩精品1区2区3区| 成人激情视频网站| 日韩美女视频在线| 亚洲一区二区高清| 成人激情免费电影网址| 日韩欧美一二区| 一区二区激情小说| 成人一区二区三区视频 | 美腿丝袜亚洲综合| 色94色欧美sute亚洲线路二| 国产亚洲制服色| 久久精品噜噜噜成人88aⅴ | 亚洲午夜激情av| www.色精品| 国产亚洲综合色| 国产揄拍国内精品对白| 6080日韩午夜伦伦午夜伦| 亚洲精品成人在线| 97精品久久久午夜一区二区三区| 337p粉嫩大胆噜噜噜噜噜91av | 欧美肥大bbwbbw高潮| 综合久久综合久久| 成人av在线网站| 亚洲国产精品精华液ab| 久久精品99久久久| 欧美成人精品福利| 秋霞电影网一区二区| 欧美一区午夜视频在线观看| 手机精品视频在线观看| 在线观看免费亚洲| 亚洲高清视频在线| 欧美精品国产精品| 日本系列欧美系列| 欧美一区二区黄| 久久国产尿小便嘘嘘尿|