Slideshow, Slideshowb, and Slideshowc

Script Templates 7-37 body html

7.6.5 Slideshow, Slideshowb, and Slideshowc

The Slideshow templates can be used to convert PowerPoint presentations. See Configuring Slideshow Template Files for PowerPoint Presentations on page 2-3. Slideshow The Slideshow sample script template contains the following code: html head { if element=property.title} title{ insert element=property.title suppress=tags}title { else} titleConverted { insert element=pragma.sourcefilename}title { if} { if element=pragma.cssfile} link rel=stylesheet href={ insert element=pragma.cssfile}link { if} defaultPageTitle=Converted Content include std_html_head_declarations head include body_def include std_page_begin include std_header script language=JavaScript-- if document.images { { repeat element=sections} thumb{ insert number=sections.current.value} = new Image; thumb{ insert number=sections.current.value}.src = { insert element=sections.current.image width=400 suppress=tags}; { repeat} } function swapeminame,gname { if document.images { document.images[iname].src = evalgname + .src; } } function openawindow pageToLoad, winName, width, height, center { Opens a new window on the users desktop. Arguments: pageToLoad - The URL of a page to load in the browser window. This can be a relative URL or fully qualified. winName - Name of the new window. width - The horizontal size of the new window. height - The vertical size of the new window. center - toggle centering on 4.0 browsers. 7-38 Administrators Guide for Dynamic Converter 1=centered window 0=no centering Values in the args section below can all be toggled in the same fashion as the center toggle. Just modify the appropriate value in the args section to be either 0 or 1. A call to this function might look like this: lt;a href=javascript:openAWindowice.html,ice,375,250,1gt;Icelt;agt; Created by Glenn Davis of Project Cool, Inc. for general use. If you use this routine please leave all comments in place so that others may benefit as well. if parseIntnavigator.appVersion 4{swidth = 640} else {swidth = screen.width-10} if parseIntnavigator.appVersion 4{sheight = 480} else {sheight = screen.height-60} args = width= + swidth + , + height= + sheight + , + location=0, + menubar=0, + resizable=1, + scrollbars=0, + status=0, + titlebar=0, + toolbar=0, + hotkeys=0, + screenx= + 0 + , NN Only + screeny= + 0 + , NN Only + left= + 0 + , IE Only + top= + 0 ; IE Only window.open pageToLoad,winName,args ; } --scriptdiv align=centercenter table border=0 cellpadding=0 cellspacing=0 width=550 trtd { if element=property.title} ph3{ insert element=property.title suppress=tags}h3p { if} { if element=property.subject} ph3{ insert element=property.subject suppress=tags}h3p { if} ph3{ insert number=sections.count} slides by { insert element=property.author suppress=tags}p table border=0 cellpadding=0 cellspacing=0 width=550 tr td valign=top table Script Templates 7-39 { repeat element=sections} trtd a href=javascript:openawindow{ link element=sections.current.bodyorimage template=slideshowbtemplate.hcst},bigslide, 640,480,1 onMouseOver=swapemthumbimg,thumb{ insert number=sections.current.value} font size=1{ insert element=sections.current.body.title suppress=tags}font a tdtr { repeat} tdtr table td td img src=HttpWebRootimagesspace.gif border=0 width=50img td td valign=top img name=thumbimg src={ insert element=sections.1.image width=400 suppress=tags}img td tr table tdtr table include std_page_end body html Slideshowb The Slideshowb sample script template contains the following code: html head { if element=property.title} title{ insert element=property.title suppress=tags}title { else} titleconverted { insert element=pragma.sourcefilename}title { if} { if element=pragma.cssfile}link rel=stylesheet href={ insert element=pragma.cssfile}link{ if} head body bgcolor=BLACK topmargin=0 leftmargin=0 scroll=No pcenter a href={ if element=sections.next.bodyorimage}{ link element=sections.next.image}{ else}{ link template=slideshowctemplate.hcst}{ if} img border=0 src={ insert element=sections.current.image width=640 height=480 suppress=tags} width=100 height=100imgacenterp body html 7-40 Administrators Guide for Dynamic Converter Slideshowc The Slideshowc sample script template contains the following code: html head { if element=property.title} title{ insert element=property.title suppress=tags}title { else} titleconverted { insert element=pragma.sourcefilename}title { if} { if element=pragma.cssfile}link rel=stylesheet href={ insert element=pragma.cssfile}link{ if} head body bgcolor=black font color=white size=+5 centerThis is the end of the presentation. pa href={ link element=sections.1.bodyorimage template=slideshowbtemplate.hcst}Return to start of presentation.ap center font bodyhtml

7.6.6 Textout