Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:38

JavaScript Error - Konqueror


Poster: thunder
Dated: Sunday March 14 2004 - 15:12:09 GMT

Hello,

I'm getting a JavaScript error in Konqueror 3.2.0
(this is the new version using KDE 3.2 Branch >= 20040204)

Code:
JavaScript Error:

An error occurred while attempting to run a script on this page:
http://members.rogers.com/thunder2/mmenu.js

Line 36

TypeError: Null Value


----------------------------------------------------------------

This is LINE 36 from mmenu.js:

Code:
function gpos(gm){if(ns4){t_=gm.top;l_=gm.left;h_=gm.clip.height;w_=gm.clip.width;}else if(opra){t_=gm.offsetTop;l_=gm.offsetLeft;h_=gm.offsetHeight;w_=gm.offsetWidth;}else if(ns6){t_=gm.offsetTop;l_=gm.offsetLeft;h_=gm.offsetHeight;w_=gm.offsetWidth}else{if(mac){topM=gm.offsetParent.topMargin;if(!topM)topM=0;leftM=gm.offsetParent.leftMargin;if(!leftM)leftM=0;t_=parseInt(topM)+gm.offsetTop;l_=parseInt(leftM)+gm.offsetLeft;}else{t_=gm.offsetTop;l_=gm.offsetLeft;}h_=gm.offsetHeight;w_=gm.offsetWidth;}if(konq){w_=parseInt(gm.style.width);h_=parseInt(gm.style.height);}var gpa=new Array();gpa[0]=t_;gpa[1]=l_;gpa[2]=h_;gpa[3]=w_;return(gpa)}


----------------------------------------------------------------

NOTE: I'm using the older Milonic Menu - Version 3.5.10


A demo page is online at:

http://members.rogers.com/thunder2/menu.html


The menu works just fine running Mozilla 1.6 (on Linux).

If any other Linux users out there can shed some light on this,
(or suggest a fix), it would be much appreciated!

Thanks!