PDA

View Full Version : Image/description tooltip challenge



grant.w.mcneil
09-18-2012, 03:40 PM
1) Script Title: Image w/description tooltip

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

3) Describe problem: For some reason (and I cannot figure it out) the script is skipping one image of hundreds which then throws all subsequent images off by one.

See this test site:http://www.sobkowich.com/_test/products/Proven%20Winners/index.html

There is a long list of plants. When mouseover, image pops up. The first three in the list are correct. After the third image, the script skips one image and then starts offering up the other ones so that all photos are off by one. I can't figure out the problem. Please help.

Thanks in advance.

Beverleyh
09-18-2012, 05:42 PM
I think its just because you've missed a line out of your html that's throwing the corresponding line in the js askew.

Tooltip 3 in your js is this:
tooltips[3]=["http://www.sobkowich.com/products/Proven Winners/graphics/ageraturm_artist_rose.jpg"]

But the html that goes with it is:
<p class="product_table_txt"><a href="products_pw_angelonia_hybrid_angelface_blue.html" rel="imgtip[3]">PW&reg; Angelonia Angelface&reg; Blue</a></p>

Pink (rose) flower pic / Blue flower html