New Zenner
- Join Date:
- Sep 2006
- Posts:
- 6
- Plugin Contributions:
- 0
Post #1 by multitech
Greetings.
After scouring the net for a few hours and reading all the posts, I am amazed there does not seem to be a fix for the Image Handler 2 showtrail() and followmouse() javascript functions. The rollover works great in Mozilla, but in IE as you scroll further down the page, the rollover eventually moves so far away from the actual mouse pointer that you hover over the image and can't even see the pop-up. I've seen plenty of people with the same problem, but NO solutions. Am I missing something here or does anybody know a fix for this? I'm willing to do anything even if its really complicated.
Additionally, I scoured the code for a good bit and I'm unable to find the point at which the code actually passes the $alt description to the showtrail() function. In other words, normally when you hover-over, you will see the title of the product above the image. I'd like to add the product description to this but am having great difficulty. I searched for all the instances of $alt, and tried to see where $alt was being assigned a value, or if I could just insert in the product description right after the $alt, but the product description is not passed to the page I try to reference it.. The actual code where I change the $alt is here: Around line 700 of bmz_image_handler.class.php .
// we should parse old parameters here and possibly merge some inc case they're duplicate
$parameters .= ($parameters != '') ? ' ' : '';
return $parameters . $ihConf['watermark']['gravity'] . ' style="position:relative" onmouseover="showtrail(' . "'$products_image_zoom', '$alt', $width, $height, $zoomwidth, $zoomheight, this," . $this->zoom['startx'].', '.$this->zoom['starty'].', '.$this->zoom['width'].', '.$this->zoom['height'].');"
onmouseout="hidetrail();" ';
```I want to just add in something like this: ```
"....image_zoom', '$alt - $desc', $width, $height...."
``` So does anybody know how I can reference the product description or pass it into this function so I can use it? Sorry to be so long and winded but I really spent a while looking for how to do this and I'm sure others have had the same problem.
I should also note there is a small bug, the showtrail() will not work if there is an ' in the title/alt text. The popup/rollover will not fire for that item if this is in there.
Thanks in advance for your time and any help you can lend.
Jim