PDA

View Full Version : Image Thumbnail Viewer II doesn't work with IE ON YOUR PAGE & other Qs



Kagri
01-28-2010, 05:41 PM
1) Script Title: Image Thumbnail Viewer II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

3) Describe problem: At first I want to say that Image Thumbnail Viewer II doesn't work on your website for me anymore when using IE 7 (it did before), it still does work with Firefox.

And then, I have a feeling that the +description+ part of your code that I altered slightly doesn't work properly on my website when switching images. The image does switch, but the description doesn't show up (neither as the TITLE attribure of the image itself, nor as a separate description below it). I have checked the code several times and it seems corect, what could be the problem?



loadimage:function(linkobj){
var imagepath=linkobj.getAttribute("href") //Get URL to enlarged image
var showcontainer=document.getElementById(linkobj.getAttribute("rev").split("::")[0]) //Reference container on page to show enlarged image in
var dest=linkobj.getAttribute("rev").split("::")[1] //Get URL enlarged image should be linked to, if any
var description=(thumbnailviewer2.enableTitle && linkobj.getAttribute("title"))? linkobj.getAttribute("title") : "" //Get title attr
var imageHTML='<img src="'+imagepath+'" alt="" title="'+description+'" />' //Construct HTML for enlarged image
if (typeof dest!="undefined") //Hyperlink the enlarged image?
imageHTML='<a href="'+dest+'">'+imageHTML+'</a>'
//if (description!="") //Use title attr of the link as description?
//imageHTML+='<span class="credits"><br />'+description+'</span>'
if (this.iefiltercapable){ //Is this an IE browser that supports filters?
showcontainer.style.filter=this.iefilterstring
showcontainer.filters[0].Apply()
}


Thank you VERY much for your help! :)

Kagri
01-31-2010, 12:07 PM
I forgot to post the URL of my website where this behaviour occurs.

http://mlp.imagesofher.com/pony.php?ID=7&variant=21

When you switch the images, the TITLE won't pop up on mouseover.