PDA

View Full Version : Number of images



Steve@sportingwales.com
01-04-2006, 03:35 PM
DD Image w/ description tooltip
http://www.dynamicdrive.com/dynamici...agetooltip.htm

Is there a restriction on the number of mouseover links that can be created using the ToolTip script. I've got 10 working fine but when I add another link they all stop working!

jscheuer1
01-04-2006, 05:21 PM
Your link to the script was broken, probably because you copied your own finished message and pasted it as a new one. Anyways, most likely you have a syntax error in the messages array, like an unescaped single quote.

whatever
.

Twey
01-04-2006, 05:31 PM
Broken link. Correct link is here (http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm). Could you supply the page on which you've put these ten links?

/EDIT: Heh, John beat me to it.

Steve@sportingwales.com
01-04-2006, 05:36 PM
Thanks for your help, here's the link. The script is working on some of the small highlighted links you will see on the page.

http://www.my2pix.com/#

Steve@sportingwales.com
01-04-2006, 09:51 PM
It appears everything is okay when the links point to single digit messages i.e 1,2,3 etc. It will not work once you go past 9. Does anyone know where in the script this can be changed?

jscheuer1
01-05-2006, 06:24 AM
It's working now on your demo page, did you find the syntax error(s)?

Steve@sportingwales.com
01-05-2006, 07:32 AM
No I didn't find the errors, it seems to be one particular image that causes the problem. Everytime I try to add it, they all stop working!

jscheuer1
01-05-2006, 08:25 AM
Well, it is probably the syntax of that one image. I'll need to see the entry for it to tell, the entry like this one:


messages[0] = new Array('100_3013.jpg','Sweeney on tiptoe!',"#DDECFF");

that you are trying to use for it.

Steve@sportingwales.com
01-05-2006, 10:27 AM
Thanks for your help John, I've worked it out. The image that was causing me a problem had a hyphen in the caption!
Do you think the script will handle 30,000 photographs?

jscheuer1
01-05-2006, 10:59 AM
That's, in actual practice, a new one on me - the hyphen. However, I've often heard how in javascript strings, a hyphen can sometimes be misinterpreted as a minus sign. If that happens and the hyphen is not between two numbers, the script engine will choke on it. You may be able to still use the hyphen, either by escaping it:


\-

or perhaps by using its number entity:


-

As for the number of images, that would be similar to an ordinary page. How many images do you think you can put on an ordinary page before undesirable things start to happen? In actual practice things may be a bit better with this script as the images preload but, if someone goes to use one before it is loaded, it will not be there, the more there are, the longer it will take to load them all.

Steve@sportingwales.com
01-12-2006, 04:41 PM
Hi John, I'm starting to experience that now with just 130 images, do you know of a way to resolve this using this script? At the moment, nothing loads on the screen until all images are ready, is there a way to have the main image load with all the 'pop ups' loading in the background? Thanks