📄 script.js
字号:
rStyle.pixelWidth =this.m_finalW;
rStyle.pixelHeight =this.m_finalH;
}
else {
if(this.m_aAct != AE_HIDEIMDTLY)
rStyle.visibility = "visible";
this.m_animObj.style.visibility = "hidden";
}
switch(this.m_aAct){
case AE_NONE:
if(g_vml)
ShowVGXObj(this.m_obj);
break;
case AE_DIM:
if(g_vml)
ShowVGXObj(this.m_obj);
g_animManager.m_objToDim =this.m_obj;
g_animManager.m_colorToDim =this.m_oldc;
break;
case AE_HIDE:
g_animManager.m_objToHide =this.m_obj;
break;
case AE_HIDEIMDTLY:
rStyle.visibility ="hidden";
break;
}
if(this.m_dId != "")
this.m_animObj.style.visibility ="hidden";
if(!g_animManager.m_isPlaying){
g_curAnim = null;
this.m_obj = null;
g_animManager.Peek();
}
}
function A_Animate(){
switch(GetAnimClass(this.m_build)) {
case 1:
case 2: this.DoMove(); break;
case 3: this.DoSpiral(); break;
case 4: this.DoSwivel(); break;
}
if(--this.m_steps == 0)
this.End();
}
function A_SetupMove(){
dir =this.m_build;
this.m_steps =GetSteps(dir);
rObj =this.m_dId != "" ? document.all.item(this.m_dId) : this.m_obj;
this.m_animObj =rObj;
offsetL=0;
offsetT=0;
parentObj=rObj.parentElement;
while(parentObj.tagName != "BODY" && parentObj.id != "SlideObj"){
offsetL +=parentObj.offsetLeft;
offsetT +=parentObj.offsetTop;
parentObj =parentObj.parentElement;
}
rStyle = rObj.style;
this.m_finalL =sLeft =rStyle.pixelLeft;
this.m_finalT =sTop =rStyle.pixelTop;
this.m_finalW =sWidth =rStyle.pixelWidth;
this.m_finalH =sHeight =rStyle.pixelHeight;
clientW=SlideObj.style.pixelWidth-offsetL;
clientH=SlideObj.style.pixelHeight-offsetT;
if(dir < 100) {
switch(dir) {
case 0: case 12: sLeft=-(sWidth+offsetL); break;
case 1: case 13: sTop=-(sHeight+offsetT); break;
case 2: case 14: sLeft=clientW; break;
case 3: case 15: sTop=clientH; break;
case 4:
sLeft=-(sWidth+offsetL);
sTop=-(sHeight+offsetT);
break;
case 5:
sLeft=clientW;
sTop=-(sHeight+offsetT);
break;
case 6:
sLeft=-(sWidth+offsetL);
sTop=clientH;
break;
case 7:
sLeft=clientW;
sTop=clientH;
break;
case 8: sLeft-=sWidth; break;
case 9: sTop+=sHeight; break;
case 10: sLeft+=sWidth; break;
case 11: sTop-=sHeight; break;
case 16:
sLeft+=sWidth/2;
sTop+=sHeight/2;
sWidth=0;
sHeight=0;
break;
case 17:
sLeft+=sWidth/6;
sTop+=sHeight/6;
sWidth=sWidth*2/3;
sHeight=sHeight*2/3;
break;
case 18:
sLeft-=(3*sWidth)/2;
sTop-=(3*sHeight)/2;
sWidth=sWidth*4;
sHeight=sHeight*4;
break;
case 19:
sLeft-=sWidth/6;
sTop-=sHeight/6;
sWidth=sWidth*4/3;
sHeight=sHeight*4/3;
break;
case 20:
sLeft=clientW/2;
sTop=clientH/2;
sWidth=0;
sHeight=0;
break;
case 21:
sLeft= 0;
sTop=clientH;
sWidth=clientW;
sHeight=clientH;
break;
case 22:
sLeft+=sWidth/2;
sWidth=0;
break;
case 23: sWidth=0; break;
case 24: sHeight=0; break;
case 25:
sLeft+=sWidth;
sWidth=0;
break;
case 26:
sTop+=sHeight;
sHeight=0;
break;
case 27:
sLeft+=sWidth/2;
sWidth=0;
break;
case 28:
sLeft=0;
sTop=clientH;
sWidth=0;
sHeight=0;
break;
}
}
if(0 == sWidth)
sWidth++;
rStyle.pixelLeft=sLeft;
rStyle.pixelTop=sTop;
rStyle.pixelWidth=sWidth;
rStyle.pixelHeight=sHeight;
}
function A_DoInplace(){
if(this.m_animObj.filters.revealtrans){
this.m_animObj.filters.revealtrans.Apply();
this.m_animObj.style.visibility ="visible";
this.m_animObj.filters.revealtrans.Play();
}
}
function A_DoMove(){
rStyle = this.m_animObj.style;
rStyle.pixelLeft +=(this.m_finalL - rStyle.pixelLeft)/this.m_steps;
rStyle.pixelTop +=(this.m_finalT - rStyle.pixelTop)/this.m_steps;
rStyle.pixelWidth +=(this.m_finalW - rStyle.pixelWidth)/this.m_steps;
rStyle.pixelHeight +=(this.m_finalH - rStyle.pixelHeight)/this.m_steps;
}
function A_DoSpiral(){
ratio =this.m_steps / GetSteps(this.m_build);
angle =2*ratio*3.14;
cosa =Math.cos(angle);
sina =Math.sin(angle);
vx =(this.m_finalL + this.m_finalW / 2)*ratio;
vy =(this.m_finalT + this.m_finalH / 2 - SlideObj.style.pixelHeight) * ratio;
rStyle =this.m_animObj.style;
rStyle.pixelLeft =this.m_finalL - vx * cosa - vy * sina;
rStyle.pixelTop =this.m_finalT + vx * sina - vy * cosa;
rStyle.pixelWidth =this.m_finalW * (1 - ratio);
rStyle.pixelHeight =this.m_finalH * (1 - ratio);
}
function A_DoSwivel(){
rStyle =this.m_animObj.style;
angle =this.m_steps / GetSteps(this.m_build) * 5 * 3.14 / 2;
difX =Math.abs(this.m_finalW * Math.cos(angle));
rStyle.pixelLeft =this.m_finalL + (this.m_finalW - difX) / 2;
if(0 == difX) difX++;
rStyle.pixelWidth =difX;
}
function DocumentOnClick()
{
if( IsNts() || parent.HideMenu() ) return
_DocAction()
}
function _DocAction()
{
if( g_animManager && g_animManager.m_isPlaying && g_curAnim )
StopMedia( g_curAnim.m_video );
if( ( g_showAnimation && !g_curAnim &&
g_animManager && g_animManager.Next() ) )
return;
if( ( g_allowAdvOnClick && (window.name=="PPTSld") && !parent.IsFramesMode() &&
!g_curAnim ) || (!g_curAnim && event && event.keyCode==32) )
parent.GoToNextSld();
}
var g_supportsPPTHTML = SupportsPPTHTML(), g_scaleInFrame = true, gId="", g_bgSound="",
g_scaleHyperlinks = false, g_allowAdvOnClick = true, g_showInBrowser = false;
var g_showAnimation = g_supportsPPTHTML && SupportsPPTAnimation() && ( (window.name=="PPTSld" && !parent.IsFramesMode()) || g_showInBrowser );var g_hasTrans = false, g_autoTrans = false, g_transSecs = 0;
var g_isKiosk = 0;var g_animManager = null;
var ENDSHOW_MESG="放映结束,单击鼠标退出。", SCREEN_MODE="Frames", gIsEndShow=0, NUM_VIS_SLDS=170, SCRIPT_HREF="script.js", FULLSCR_HREF="fullscreen.htm";
var gCurSld = gPrevSld = 1, g_offset = 0, gNtsOpen = gHasNts = gOtlTxtExp = gNarrationPaused = false, gOtlOpen = true
window.gPPTHTML=SupportsPPTHTML()
function UpdNtsPane(){ PPTNts.location.replace( MHTMLPrefix+GetHrefObj( gCurSld ).mNtsHref ) }
function UpdNavPane( sldIndex ){ if(gNavLoaded) PPTNav.UpdNav() }
function UpdOtNavPane(){ if(gOtlNavLoaded) PPTOtlNav.UpdOtlNav() }
function UpdOtlPane(){ if(gOtlLoaded) PPTOtl.UpdOtl() }
function SetHasNts( fVal )
{
if( gHasNts != fVal ) {
gHasNts=fVal
UpdNavPane()
}
}
function ToggleOtlText()
{
gOtlTxtExp=!gOtlTxtExp
UpdOtlPane()
}
function ToggleOtlPane()
{
frmset=document.all("PPTHorizAdjust")
frm=document.all("PPTOtl")
if( gOtlOpen )
frmset.cols="*,100%"
else
frmset.cols="20%,80%"
gOtlOpen=!gOtlOpen
frm.noResize=!frm.noResize
UpdOtNavPane()
}
function ToggleNtsPane()
{
frmset=document.all("PPTVertAdjust")
frm=document.all("PPTNts")
if( gNtsOpen )
frmset.rows="100%,*"
else
frmset.rows="80%,20%"
gNtsOpen=!gNtsOpen
UpdNtsPane()
}
function FullScreen(){ window.open( MHTMLPrefix+FULLSCR_HREF,null,"fullscreen=yes" ) }
function ToggleVNarration()
{
rObj=PPTSld.document.all("NSPlay")
if( rObj ) {
if( gNarrationPaused )
rObj.Play()
else
rObj.Pause()
gNarrationPaused=!gNarrationPaused
}
}
function GetCurSldNum()
{
obj=GetHrefObj(gCurSld)
if( obj.mOrigVis == 1 )
return obj.mSldIdx
else
return gCurSld
}
function GetNumSlds()
{
if( GetHrefObj(gCurSld).mOrigVis == 1 )
return NUM_VIS_SLDS
else
return gDocTable.length
}
function GetSldNum( href )
{
for(ii=0; ii<gDocTable.length; ii++) {
if ( gDocTable[ii].mSldHref == href )
return ii+1
}
return 1
}
function GetHrefObj( sldIdx ){ return gDocTable[sldIdx-1] }
function IsFramesMode(){ return ( SCREEN_MODE == "Frames" ) }
function IsFullScrMode(){ return ( SCREEN_MODE == "FullScreen" ) }
function GoToNextSld()
{
ii=gCurSld + 1
if( GetHrefObj( ii-1 ).mOrigVis == 0 ) {
if( ii<=gDocTable.length ) {
obj=GetHrefObj(ii)
obj.mVis=1
GoToSld(obj.mSldHref)
return
}
}
else {
obj=GetHrefObj( ii )
while ( obj && ( obj.mOrigVis == 0 ) )
obj=GetHrefObj(ii++)
if( obj && obj.mOrigVis ) {
GoToSld(obj.mSldHref)
return
}
}
if( !IsFramesMode() ) EndShow()
}
function GoToPrevSld()
{
ii=gCurSld-1
if( ii > 0 ) {
obj=GetHrefObj(ii)
while ( ( obj.mVis == 0 ) && ( ii>0 ) )
obj=GetHrefObj(ii--)
GoToSld(obj.mSldHref)
}
}
function GoToFirst(){ GoToSld( GetHrefObj(1).mSldHref ) }
function GoToLast()
{
ii=gDocTable.length
if( ii != gCurSld )
GoToSld( GetHrefObj(ii).mSldHref )
}
function GoToSld( href )
{
if( PPTSld.event ) PPTSld.event.cancelBubble=true
GetHrefObj( GetSldNum(href) ).mVis=1
PPTSld.location.href=MHTMLPrefix+href
}
function SldUpdated( id )
{
if( id == GetHrefObj(gCurSld).mSldHref ) return
gPrevSld=gCurSld
gCurSld=GetSldNum(id)
if( IsFramesMode() ) {
UpdNavPane(); UpdOtlPane(); UpdNtsPane()
}
}
function PrevSldViewed(){ GoToSld( GetHrefObj(gPrevSld).mSldHref ) }
function HasPrevSld() { return ( gIsEndShow || ( gCurSld != 1 && GetHrefObj( gCurSld-1 ).mVis == 1 )||( GetCurSldNum() > 1 ) ) }
function HasNextSld() { return (GetCurSldNum() != GetNumSlds()) }
function EndShow()
{
if( PPTSld.event ) PPTSld.event.cancelBubble=true
doc=PPTSld.document
doc.open()
doc.writeln('<html><head><script defer>function CloseWindow(){ if( parent.HideMenu() ) return; if( !parent.IsFramesMode() && event && (event.keyCode==27 || event.keyCode==32 || event.type=="click" ) ) parent.window.close( self ); } function Unload() { parent.gIsEndShow=0; } function SetupEndShow() { parent.gIsEndShow=1; document.body.scroll="no"; document.onkeypress=CloseWindow; document.onclick=CloseWindow; document.oncontextmenu=parent._CM; }</script></head><body bgcolor=black onload=SetupEndShow() onunload=Unload()><center><p><font face=Tahoma color=white size=2><br><b>' + ENDSHOW_MESG + '</b></font></p></center></body></html>')
doc.close()
}
function SetSldVisited(){ gDocTable[gCurSld-1].mVisited=true }
function IsSldVisited(){ return gDocTable[gCurSld-1].mVisited }
function hrefList( sldHref, visible, sldIdx )
{
this.mSldHref= this.mNtsHref = sldHref
this.mSldIdx = sldIdx
this.mOrigVis= this.mVis = visible
this.mVisited= false
}
var gDocTable = new Array(
new hrefList("slide0001.htm", 1, 1),
new hrefList("slide0002.htm", 1, 2),
new hrefList("slide0177.htm", 1, 3),
new hrefList("slide0338.htm", 1, 4),
new hrefList("slide0004.htm", 1, 5),
new hrefList("slide0003.htm", 1, 6),
new hrefList("slide0178.htm", 1, 7),
new hrefList("slide0179.htm", 1, 8),
new hrefList("slide0339.htm", 1, 9),
new hrefList("slide0180.htm", 1, 10),
new hrefList("slide0181.htm", 1, 11),
new hrefList("slide0183.htm", 1, 12),
new hrefList("slide0206.htm", 1, 13),
new hrefList("slide0182.htm", 1, 14),
new hrefList("slide0184.htm", 1, 15),
new hrefList("slide0185.htm", 1, 16),
new hrefList("slide0186.htm", 1, 17),
new hrefList("slide0187.htm", 1, 18),
new hrefList("slide0188.htm", 1, 19),
new hrefList("slide0012.htm", 1, 20),
new hrefList("slide0013.htm", 1, 21),
new hrefList("slide0152.htm", 1, 22),
new hrefList("slide0189.htm", 1, 23),
new hrefList("slide0190.htm", 1, 24),
new hrefList("slide0191.htm", 1, 25),
new hrefList("slide0192.htm", 1, 26),
new hrefList("slide0194.htm", 1, 27),
new hrefList("slide0193.htm", 1, 28),
new hrefList("slide0195.htm", 1, 29),
new hrefList("slide0196.htm", 1, 30),
new hrefList("slide0197.htm", 1, 31),
new hrefList("slide0198.htm", 1, 32),
new hrefList("slide0199.htm", 1, 33),
new hrefList("slide0200.htm", 1, 34),
new hrefList("slide0202.htm", 1, 35),
new hrefList("slide0201.htm", 1, 36),
new hrefList("slide0149.htm", 1, 37),
new hrefList("slide0203.htm", 1, 38),
new hrefList("slide0205.htm", 1, 39),
new hrefList("slide0204.htm", 1, 40),
new hrefList("slide0209.htm", 1, 41),
new hrefList("slide0146.htm", 1, 42),
new hrefList("slide0208.htm", 1, 43),
new hrefList("slide0210.htm", 1, 44),
new hrefList("slide0211.htm", 1, 45),
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -