There is a bug in the current code, and can be seen on http://www.dynamicdrive.com/dynamici...iongallery.htm
"Line 168 - Invaild Argument"
Which is - cross_scroll.style.left=(menuwidth-actualwidth)/startpos+'px';
Rob.
There is a bug in the current code, and can be seen on http://www.dynamicdrive.com/dynamici...iongallery.htm
"Line 168 - Invaild Argument"
Which is - cross_scroll.style.left=(menuwidth-actualwidth)/startpos+'px';
Rob.
In which browser? Which version? What were you doing when the error appeared?
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
I think I see it, in FF it is reported as:Originally Posted by Twey
and I get it in IE as line 169. But, since it only happens onresize, it must be that line (red) from the function:Error: Error in parsing value for property 'left'. Declaration dropped.
Source File: http://www.dynamicdrive.com/dynamici...iongallery.htm
Line: 0
which just happens to be line# 168 in motiongallery.js. I think it comes from dividing by zero which, in this case, produces negative infinity. The error disappears if 'startpos' is other than 0 in the configuration. So, you can make that line be:Code:onresize=function(){ if (typeof motioncontainer!=='undefined'&&motioncontainer.filters){ motioncontainer.style.width="0"; motioncontainer.style.width=""; motioncontainer.style.width=Math.min(motioncontainer.offsetWidth, maxwidth)+'px'; } menuwidth=crossmain.offsetWidth; cross_scroll.style.left=(menuwidth-actualwidth)/startpos+'px'; }
If that does in fact take care of the problem (should) and causes no new error(s), I would recommend that the demo page be updated with this fix.Code:cross_scroll.style.left=startpos? (menuwidth-actualwidth)/startpos+'px' : 0;
Added Later: Seems to do the trick!
Last edited by jscheuer1; 09-01-2006 at 05:59 PM. Reason: add test results
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Great, thanks John. Script on DD updated with this little fix as well.
I'm trying to change the width of the main gallery/div. I've looked around the motiongallery.js and have had no luck. I did not changing anything within motiongallery.js. Can some one please help me. Thanx in advance
As this script is now available in the Dynamic Drive scripts library:
http://www.dynamicdrive.com/dynamici...iongallery.htm
It would be better to post a question of this nature in the main Dynamic Drive Scripts Help forum.
The dimensions of the gallery are set in the gallerystyle.css file. If you need more help, please use the main help forum.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
i need to put an image above the scropt but i cant do .. can u help me ??
Please use the main Dynamic Drive Scripts Help forum:Originally Posted by 3bood
http://www.dynamicdrive.com/forums/forumdisplay.php?f=2
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
This works great in IE, however when I hover over the images in FF the border disappears and the image flickers.
Does this happen on the demo page? If not, it is a problem with your implementation and it would be better to post a new thread in the main help section:Originally Posted by sabodj
http://www.dynamicdrive.com/forums/forumdisplay.php?f=2
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks