script - function LoadSld( slideId ) cfw_ if(...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
function LoadSld( slideId ) { if( !g_supportsPPTHTML ) return if( slideId ) parent.SldUpdated(slideId) g_origSz=parseInt(SlideObj.style.fontSize) g_origH=SlideObj.style.posHeight g_origW=SlideObj.style.posWidth g_scaleHyperlinks=(document.all.tags("AREA").length>0) if( g_scaleHyperlinks ) InitHLinkArray() document.body.scroll="no" _RSW() document.oncontextmenu=parent._CM; self.focus() } } function MakeSldVis( fTrans ) { if( fTrans ) { if( g_bgSound ) { idx=g_bgSound.indexOf(","); pptSound.src=g_bgSound.substr( 0, idx ); pptSound.loop= -(parseInt(g_bgSound.substr(idx+1))); } SlideObj.filters.revealtrans.Apply() } SlideObj.style.visibility="visible" if( fTrans ) SlideObj.filters.revealtrans.Play() } function MakeNotesVis() { if( !IsNts() ) return false SlideObj.style.display="none" nObj = document.all.item("NotesObj") parent.SetHasNts(0) if( nObj ) { nObj.style.display="" parent.SetHasNts(1) } return 1 } function Redirect( frmId,sId ) { var str=document.location.hash,idx=str.indexOf('#') if(idx>=0) str=str.substr(1); obj = document.all.item("Main-File") window.location.href=obj.href+"#"+sId return 1 } return 0 }
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
function HideMenu() { if( frames["PPTSld"] && PPTSld.document.all.item("ctxtmenu") && PPTSld.ctxtmenu.style.display!="none" ) { PPTSld.ctxtmenu.style.display='none'; return true } return false } function IsWin( name ) { return window.name == name } function IsNts() { return IsWin("PPTNts") } function IsSldOrNts() { return( IsWin("PPTSld")||IsWin("PPTNts") ) } function SupportsPPTAnimation() { return( navigator.platform == "Win32" && navigator.appVersion.indexOf("Windows")>0 ) } function SupportsPPTHTML() { var appVer=navigator.appVersion, msie=appVer.indexOf("MSIE "), ver=0 if( msie >= 0 ) ver=parseFloat( appVer.substring( msie+5, appVer.indexOf(";",msie) ) ) else ver=parseInt(appVer) v } var MHTMLPrefix = CalculateMHTMLPrefix(); function CalculateMHTMLPrefix() { if ( document.location.protocol == 'mhtml:') { href=new String(document.location.href) Start=href.indexOf('!')+1 End=href.lastIndexOf('/')+1 if (End < Start) return href.substring(0, Start) else return href.substring(0, End) } return ''; } function _RSW() { if( !g_supportsPPTHTML || IsNts() || parent.IsFullScrMode()) ) ) return r cltWidth=document.body.clientWidth cltHeight=document.body.clientHeight factor=(1.0*cltWidth)/g_origW if( cltHeight < g_origH*factor ) factor=(1.0*cltHeight)/g_origH f newSize = g_origSz * factor if( newSize < 1 ) newSize=1 i s=SlideObj.style s.fontSize=newSize+"px" s.posWidth=g_origW*factor s.posHeight=g_origH*factor s.posLeft=(cltWidth-s.posWidth)/2 s.posTop=(cltHeight-s.posHeight)/2 s if( g_scaleHyperlinks ) ScaleHyperlinks( factor ) }
Background image of page 2
} function _KPH() { if( IsNts() ) return;
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 19

script - function LoadSld( slideId ) cfw_ if(...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online