Hudson242
03-19-2005, 08:28 PM
Any help would be greatly appreciated.
I am building a site for my photography and friends as well. It’s still very early in development because I’m having issues figuring out how to set up a slideshow the way I want it to be. I finally found the script that displays the things I want (i.e. the image, a description, who it was taken by and then number of pictures). The script is below but here is a link so you can see it in action -
http://www.endhaven.com/thehold/photography/jeremiahisms/slideshow.shtml
That is all fine and dandy but here is the issue that I can’t figure out… The page before the slideshow has a bunch of thumbnails and each thumbnail links to that one page "slideshow.shtml". That page is here - http://www.endhaven.com/thehold/photography/jeremiahisms/index.shtml
How do I have the slideshow start on the picture that was selected on the thumbnail page?
I know that I could easily just create as many slideshow.shtml pages as I have pictures and then just rearrange the images but I will be creating other sections that will have 50+ pictures on them. So I think it would be silly to do all that work since I know this can be done.
I found a script that did similar things but it didn’t do the other things I listed above (showing the image, a description, who it was taken by and then number of pictures). Also the other script I found opened it in a separate window and I don’t want to do that.
If anyone out there knows of a script that does what I’m looking for please let me know because I couldn’t find one anywhere. Please, please, please help me out.
It may seem like it would be rather simple but I can't figure it out for the life of me.
Here is the script I'm using just in case it helps out:
`````````````````````````````````````````````
<table width="652" border="0" bgcolor="#669900">
<tr><td>
<table align="center">
<tr align="center"><td>
<input type="button" id="btnPrev" value="< " onclick="Prev();" class="btn" onmouseover="hov(this,'btn btnhov')" onmouseout="hov(this,'btn')" /> <input type="button" id="bntPlay" value="Stop & Go" onclick="Play()" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'"/> <input type="button" id="btnNext" value=" >" onclick="Next();" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'"/>
<br>
</td></tr>
<tr align="center" class="Photography"><td>
<img id="_Ath_Slide" onload="OnImgLoad()" class="pictureborder">
</td></tr>
<tr align="center"><td>
<table class="Photography"><tr><td align="left">
<b>Description:</b> <SPAN id="_Ath_FileName"> </SPAN> <br>
<b>Photo By:</b> <SPAN id="_Ath_FileBy"> </SPAN> <br>
<b>Number of Pictures:</b> <b><SPAN id="_Ath_Img_X"></SPAN></b> of <b><SPAN id="_Ath_Img_N"></SPAN></b>
</td></tr>
</table>
</td></tr>
</table>
<p align="center">
<script language="JavaScript1.2">
/*
Interactive Image slideshow with text description
By Christian Carlessi Salvadó (cocolinks@c.net.gt). Keep this notice intact.
Visit http://www.dynamicdrive.com for script
*/
g_fPlayMode = 0;
g_iimg = -1;
g_imax = 0;
g_ImageTable = new Array();
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 getobject(obj){
if (document.getElementById)
return document.getElementById(obj)
else if (document.all)
return document.all[obj]
}
function Update(){
getobject("_Ath_Slide").src = g_ImageTable[g_iimg][0];
getobject("_Ath_FileName").innerHTML = g_ImageTable[g_iimg][1];
getobject("_Ath_FileBy").innerHTML = g_ImageTable[g_iimg][2];
getobject("_Ath_Img_X").innerHTML = g_iimg + 1;
getobject("_Ath_Img_N").innerHTML = g_imax;
}
function Play()
{
g_fPlayMode = !g_fPlayMode;
if (g_fPlayMode)
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = true;
Next();
}
else
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = false;
}
}
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);
}
////configure below variables/////////////////////////////
//configure the below images and description to your own.
g_ImageTable[g_imax++] = new Array ("/images/photography/jeremiahisms/Sylvia011.jpg", "Sylvia", "");
g_ImageTable[g_imax++] = new Array ("/images/photography/jeremiahisms/Justin000.jpg", "Justin", "");
g_ImageTable[g_imax++] = new Array ("/images/photography/jeremiahisms/Chris005.jpg", "Chris", "");
g_ImageTable[g_imax++] = new Array ("/images/photography/jeremiahisms/Chris002.jpg", "Chris", "");
g_ImageTable[g_imax++] = new Array ("/images/photography/jeremiahisms/Tysen010.jpg", "Tysen", "");
//g_ImageTable[g_imax++] = new Array ("", "", "");
//extend the above list as desired
g_dwTimeOutSec=2
////End configuration/////////////////////////////
if (document.getElementById||document.all)
window.onload=Next
</script>
</p>
</td></tr></table>
I am building a site for my photography and friends as well. It’s still very early in development because I’m having issues figuring out how to set up a slideshow the way I want it to be. I finally found the script that displays the things I want (i.e. the image, a description, who it was taken by and then number of pictures). The script is below but here is a link so you can see it in action -
http://www.endhaven.com/thehold/photography/jeremiahisms/slideshow.shtml
That is all fine and dandy but here is the issue that I can’t figure out… The page before the slideshow has a bunch of thumbnails and each thumbnail links to that one page "slideshow.shtml". That page is here - http://www.endhaven.com/thehold/photography/jeremiahisms/index.shtml
How do I have the slideshow start on the picture that was selected on the thumbnail page?
I know that I could easily just create as many slideshow.shtml pages as I have pictures and then just rearrange the images but I will be creating other sections that will have 50+ pictures on them. So I think it would be silly to do all that work since I know this can be done.
I found a script that did similar things but it didn’t do the other things I listed above (showing the image, a description, who it was taken by and then number of pictures). Also the other script I found opened it in a separate window and I don’t want to do that.
If anyone out there knows of a script that does what I’m looking for please let me know because I couldn’t find one anywhere. Please, please, please help me out.
It may seem like it would be rather simple but I can't figure it out for the life of me.
Here is the script I'm using just in case it helps out:
`````````````````````````````````````````````
<table width="652" border="0" bgcolor="#669900">
<tr><td>
<table align="center">
<tr align="center"><td>
<input type="button" id="btnPrev" value="< " onclick="Prev();" class="btn" onmouseover="hov(this,'btn btnhov')" onmouseout="hov(this,'btn')" /> <input type="button" id="bntPlay" value="Stop & Go" onclick="Play()" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'"/> <input type="button" id="btnNext" value=" >" onclick="Next();" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'"/>
<br>
</td></tr>
<tr align="center" class="Photography"><td>
<img id="_Ath_Slide" onload="OnImgLoad()" class="pictureborder">
</td></tr>
<tr align="center"><td>
<table class="Photography"><tr><td align="left">
<b>Description:</b> <SPAN id="_Ath_FileName"> </SPAN> <br>
<b>Photo By:</b> <SPAN id="_Ath_FileBy"> </SPAN> <br>
<b>Number of Pictures:</b> <b><SPAN id="_Ath_Img_X"></SPAN></b> of <b><SPAN id="_Ath_Img_N"></SPAN></b>
</td></tr>
</table>
</td></tr>
</table>
<p align="center">
<script language="JavaScript1.2">
/*
Interactive Image slideshow with text description
By Christian Carlessi Salvadó (cocolinks@c.net.gt). Keep this notice intact.
Visit http://www.dynamicdrive.com for script
*/
g_fPlayMode = 0;
g_iimg = -1;
g_imax = 0;
g_ImageTable = new Array();
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 getobject(obj){
if (document.getElementById)
return document.getElementById(obj)
else if (document.all)
return document.all[obj]
}
function Update(){
getobject("_Ath_Slide").src = g_ImageTable[g_iimg][0];
getobject("_Ath_FileName").innerHTML = g_ImageTable[g_iimg][1];
getobject("_Ath_FileBy").innerHTML = g_ImageTable[g_iimg][2];
getobject("_Ath_Img_X").innerHTML = g_iimg + 1;
getobject("_Ath_Img_N").innerHTML = g_imax;
}
function Play()
{
g_fPlayMode = !g_fPlayMode;
if (g_fPlayMode)
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = true;
Next();
}
else
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = false;
}
}
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);
}
////configure below variables/////////////////////////////
//configure the below images and description to your own.
g_ImageTable[g_imax++] = new Array ("/images/photography/jeremiahisms/Sylvia011.jpg", "Sylvia", "");
g_ImageTable[g_imax++] = new Array ("/images/photography/jeremiahisms/Justin000.jpg", "Justin", "");
g_ImageTable[g_imax++] = new Array ("/images/photography/jeremiahisms/Chris005.jpg", "Chris", "");
g_ImageTable[g_imax++] = new Array ("/images/photography/jeremiahisms/Chris002.jpg", "Chris", "");
g_ImageTable[g_imax++] = new Array ("/images/photography/jeremiahisms/Tysen010.jpg", "Tysen", "");
//g_ImageTable[g_imax++] = new Array ("", "", "");
//extend the above list as desired
g_dwTimeOutSec=2
////End configuration/////////////////////////////
if (document.getElementById||document.all)
window.onload=Next
</script>
</p>
</td></tr></table>