carthago
04-26-2008, 07:16 PM
I like the script on dynamic drive http://www.dynamicdrive.com/dynamicindex4/photoalbum.htm and followed several steps now. Still not made it work and can need any help possible.
1. The external javascript I put in a folder and call it via the coding in the header.
2. I included the coding part in the header as explained in the script
On the page I am using this part of coding:
<!-- start photo album code -->
<div id="container-africa">
<div id="gallery2" style="margin: 0pt 2px 0pt 2px; float: left; display: inline;">
<script language="JavaScript">
function LoadGallery(pictureName,imageFile)
{
if (document.all)
{
document.getElementById(pictureName).style.filter="blendTrans(duration=1)";
document.getElementById(pictureName).filters.blendTrans.Apply();
}
document.getElementById(pictureName).src = imageFile;
if (document.all)
{
document.getElementById(pictureName).filters.blendTrans.Play();
}
document.getElementById(titleCaption).innerHTML=captionText;
}
</script>
<img src="afrika/foto1.jpg" alt="" title="© " id="" height="282" width="400">
<div class="thumbs2">
<a href="#_self" onclick="LoadGallery('','afrika/foto2.jpg')"><img src="afrika/foto2t.jpg" alt="" title="" height="68" width="97"></a>
<a href="#_self" onclick="LoadGallery('','afrika/foto3.jpg')"><img src="afrika/foto3t.jpg" alt="" title="" height="68" width="97"></a>
<a href="#_self" onclick="LoadGallery('',afrika/foto4.jpg')"><img src="afrika/foto4t.jpg" alt="" title="" height="68" width="97"></a>
<a href="#_self" onclick="LoadGallery('','.jpg')"><img src="t.jpg" alt="" title="" height="68" width="97"></a><br>
<a href="#_self" onclick="LoadGallery('','.jpg')"><img src="t.jpg" alt="" title="" height="68" width="97"></a>
<a href="#_self" onclick="LoadGallery('','.jpg')"><img src="t.jpg" alt="" title="" height="68" width="97"></a>
<a href="#_self" onclick="LoadGallery('','.jpg')"><img src="t.jpg" alt="" title="" height="68" width="97"></a>
<a href="#_self" onclick="LoadGallery('','.jpg')"><img src="t.jpg" alt="" title="" height="68" width="97"></a>
</div>
</div></div>
<!-- end of photo album code -->
I took it from http://www.stanseatonphotography.co.uk/portraits.php but get lost now.
- the bigger image is loading and on the right place
- the thumbs are also located on the right place
I read a gallery name in the script on photography site. Images are however all in the same folder. Not understand the 'albumname' and if I can give it just a name there.
When click on small image the bigger has to change without loading the page totally again.
my photos are in: albums/africa/photonumber01.jpg
photos for different country will be in the folder albums/othercountry/photonumber01.jpg
Who can help me with this?
thanks already a lot.
1. The external javascript I put in a folder and call it via the coding in the header.
2. I included the coding part in the header as explained in the script
On the page I am using this part of coding:
<!-- start photo album code -->
<div id="container-africa">
<div id="gallery2" style="margin: 0pt 2px 0pt 2px; float: left; display: inline;">
<script language="JavaScript">
function LoadGallery(pictureName,imageFile)
{
if (document.all)
{
document.getElementById(pictureName).style.filter="blendTrans(duration=1)";
document.getElementById(pictureName).filters.blendTrans.Apply();
}
document.getElementById(pictureName).src = imageFile;
if (document.all)
{
document.getElementById(pictureName).filters.blendTrans.Play();
}
document.getElementById(titleCaption).innerHTML=captionText;
}
</script>
<img src="afrika/foto1.jpg" alt="" title="© " id="" height="282" width="400">
<div class="thumbs2">
<a href="#_self" onclick="LoadGallery('','afrika/foto2.jpg')"><img src="afrika/foto2t.jpg" alt="" title="" height="68" width="97"></a>
<a href="#_self" onclick="LoadGallery('','afrika/foto3.jpg')"><img src="afrika/foto3t.jpg" alt="" title="" height="68" width="97"></a>
<a href="#_self" onclick="LoadGallery('',afrika/foto4.jpg')"><img src="afrika/foto4t.jpg" alt="" title="" height="68" width="97"></a>
<a href="#_self" onclick="LoadGallery('','.jpg')"><img src="t.jpg" alt="" title="" height="68" width="97"></a><br>
<a href="#_self" onclick="LoadGallery('','.jpg')"><img src="t.jpg" alt="" title="" height="68" width="97"></a>
<a href="#_self" onclick="LoadGallery('','.jpg')"><img src="t.jpg" alt="" title="" height="68" width="97"></a>
<a href="#_self" onclick="LoadGallery('','.jpg')"><img src="t.jpg" alt="" title="" height="68" width="97"></a>
<a href="#_self" onclick="LoadGallery('','.jpg')"><img src="t.jpg" alt="" title="" height="68" width="97"></a>
</div>
</div></div>
<!-- end of photo album code -->
I took it from http://www.stanseatonphotography.co.uk/portraits.php but get lost now.
- the bigger image is loading and on the right place
- the thumbs are also located on the right place
I read a gallery name in the script on photography site. Images are however all in the same folder. Not understand the 'albumname' and if I can give it just a name there.
When click on small image the bigger has to change without loading the page totally again.
my photos are in: albums/africa/photonumber01.jpg
photos for different country will be in the folder albums/othercountry/photonumber01.jpg
Who can help me with this?
thanks already a lot.