svnno****@sourc*****
svnno****@sourc*****
2009年 7月 8日 (水) 21:39:30 JST
Revision: 1228 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1228 Author: dhrname Date: 2009-07-08 21:39:30 +0900 (Wed, 08 Jul 2009) Log Message: ----------- STSetElementオブジェクトの実装 Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-06-22 12:05:12 UTC (rev 1227) +++ branches/05x/051/sie.js 2009-07-08 12:39:30 UTC (rev 1228) @@ -1822,6 +1822,24 @@ } catch(e) {stlog.add(e,17155);} } +function STSetElement(ele) { + this.tar = ele; + var begin = new Date(), end = new Date(); + begin.synchParser(ele.getAttribute("begin")); + end.synchParser(ele.getAttribute("end")); + begin.indefinite = false; + end.indefinite = false; + this.beginEvent = begin; this.endEvent = end; + this.currentTime = 0; + return this; +} +STSetElement.prototype.set = function() { + if (this.beginEvent.isFired(this.currentTime) && !this.endEvent.isFired(this.currentTime)) { + alert(this.beginEvent.event); + } + this.currentTime += 100; +} + //setClockValueメソッド。同期させるSMIL言語に使う Date.prototype.setClockValue = function(str) { var n = str.indexOf(":"), d = 0, h = 0, min = 0, s = 0; @@ -1904,6 +1922,7 @@ this.setClockValue(pool); } this.id = idValue; + this.mode = mode; this.event = midValue || pool; } var beginEvent = new Date(), endEvent = new Date(), _currentTime = 0;