Until I have a chance to suss out Thickbox etc, can you help me with this problem.
I have some javascript which allows me to enlarge a picture and display its corresponding text by clicking a thumbnail of the picture.
It looks like
Code:
function LoadGallery(pictureName,imageFile,titleCaption,captionText,titleText,textText,titleJob,jobText,titlePricelist,pricelistText)
{
var picture = document.getElementById(pictureName);
if (picture.filters)
{
picture.style.filter="blendTrans(duration=1)";
picture.filters.blendTrans.Apply();
}
picture.src = imageFile;
if (picture.filters)
{
picture.filters.blendTrans.Play();
}
document.getElementById(titleCaption).innerHTML=captionText;
document.getElementById(titleText).innerHTML=textText;
document.getElementById(titleJob).innerHTML=jobText;
document.getElementById(titlePricelist).innerHTML=pricelistText;
}
I pass variables into the script using the <div> id
Code:
<div class="Text_Content" id="TeamGalleryPrices">Click on the thumbnails to find out more about the team at albion house</div>
However whan I call this function and attempt to add a hyperlink to the last of these variables - it doesn't work.
The code I use to call the variables in is as follows:
Code:
<a href="#_self" onclick="LoadGallery('TeamGallery', 'http://www.albionhousehairsalon.co.uk/images/theteam_helen_lg.gif', 'TeamGalleryCaption','Helen','TeamGalleryText','Some text.....','TeamGalleryRole','Director','TeamGalleryPrices','<a href=\'http://www.dynamicdrive.com\'> Goto Dynamic Drive</a>')"><img src="http://www.albionhousehairsalon.co.uk/images/theteam_helen_thumb.gif" width="90" height="61" /></a>
I have the basis of this code working here:
http://albionhousehairsalon.co.uk/al...am3.html#_self
Tried everything... so my code must be wrong?
Thanks, Simon.
Bookmarks