You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
2.5 KiB
110 lines
2.5 KiB
<HTML>
|
|
<P ID="ridTitle1" ALIGN=center>
|
|
<FONT SIZE=4>
|
|
Outlook Express™ Picture Slide-Show:
|
|
</FONT>
|
|
</P>
|
|
<HR>
|
|
<DIV id=divAthSlideShow STYLE="visibility: hidden">
|
|
<P ID="ridButtons" ALIGN=center>
|
|
<INPUT TYPE="BUTTON" NAME="btnPrev" VALUE="Previous" onClick="Prev();" ID="ridPrevButton">
|
|
<INPUT TYPE="BUTTON" NAME="btnPlay" VALUE="Play" onClick="Play();" ID="ridPlayButton">
|
|
<INPUT TYPE="BUTTON" NAME="btnNext" VALUE="Next" onClick="Next();" ID="ridNextButton">
|
|
</P>
|
|
<P ID="ridImage1" ALIGN=center>
|
|
<IMG name="_Ath_Slide" onLoad="OnImgLoad()">
|
|
</P>
|
|
<P ID="ridRotateImage" ALIGN=center>
|
|
<B>File: </B><SPAN id="_Ath_FileName"><loading...></SPAN>
|
|
<BR>
|
|
<B>Picture: </B><SPAN id="_Ath_Img_X">x</SPAN> of <SPAN id="_Ath_Img_N">n</SPAN>
|
|
</P>
|
|
</DIV>
|
|
<DIV id=divAthSlideShowNoScript ALIGN=center>
|
|
The Outlook Express™ Slide-Show cannot be displayed unless scripting is enabled. You need to turn on scripting in
|
|
the security settings for the Zone you read mail in. Look under Tools|Options|Security to set security settings for a particular Zone.
|
|
</DIV>
|
|
|
|
<SCRIPT Language="JavaScript" FOR="window" EVENT="onload">
|
|
main();
|
|
</SCRIPT>
|
|
|
|
<SCRIPT Language="JavaScript">
|
|
|
|
g_fPlayMode = 0;
|
|
g_iimg = 0;
|
|
g_imax = 0;
|
|
g_ImageTable = new Array();
|
|
|
|
L_PlayButton_Text = "Play";
|
|
L_StopButton_Text = "Stop";
|
|
|
|
function ChangeImage(fFwd)
|
|
{
|
|
if (fFwd)
|
|
{
|
|
if (++g_iimg==g_imax)
|
|
g_iimg=0;
|
|
}
|
|
else
|
|
{
|
|
if (g_iimg==0)
|
|
g_iimg=g_imax;
|
|
g_iimg--;
|
|
}
|
|
Update();
|
|
}
|
|
|
|
function Update()
|
|
{
|
|
document.all._Ath_Slide.src = g_ImageTable[g_iimg][0];
|
|
document.all._Ath_FileName.innerHTML = g_ImageTable[g_iimg][1];
|
|
document.all._Ath_Img_X.innerHTML = g_iimg + 1;
|
|
document.all._Ath_Img_N.innerHTML = g_imax;
|
|
}
|
|
|
|
function Play()
|
|
{
|
|
g_fPlayMode = !g_fPlayMode;
|
|
if (g_fPlayMode)
|
|
{
|
|
btnPrev.disabled = btnNext.disabled = true;
|
|
btnPlay.value = L_StopButton_Text;
|
|
Next();
|
|
}
|
|
else
|
|
{
|
|
btnPrev.disabled = btnNext.disabled = false;
|
|
btnPlay.value = L_PlayButton_Text;
|
|
}
|
|
}
|
|
|
|
function OnImgLoad()
|
|
{
|
|
if (g_fPlayMode)
|
|
window.setTimeout("Tick()", g_dwTimeOutSec*1000);
|
|
}
|
|
|
|
function Tick()
|
|
{
|
|
if (g_fPlayMode)
|
|
Next();
|
|
}
|
|
|
|
function Prev()
|
|
{
|
|
ChangeImage(false);
|
|
}
|
|
|
|
function Next()
|
|
{
|
|
ChangeImage(true);
|
|
}
|
|
|
|
function main()
|
|
{
|
|
divAthSlideShowNoScript.style.visibility = "hidden";
|
|
divAthSlideShow.style.visibility = "visible";
|
|
Update();
|
|
}
|
|
</HTML>
|