Solved

Drop Down Menu Problem

Posted on 2009-03-31
15
354 Views
Last Modified: 2012-05-06
I am looking at this page for a friend.  The Java drop down menus are stuck and I am not sure why.  THe site in question is at dogsofsteel.com.  I put the code for the menu below.  Any help would be greatly appreciated.  I am just not sure why they are showing before the mouse-over.

THank you
<!-- // START MENU CODE
 

// NOTE: If you use a ' add a slash before it like this \'
 
 

StartMenu()
 
 

// MENU OPTIONS - you will find more options in the corporatestyle.css
 

MFL		= 0; 					// MENU DISTANCE FROM EDGE

MFT		= 60; 					// MENU DISTANCE FROM TOP

ALIGN		= "left"				// MENU LEFT OR RIGHT

TMH		= 22;					// TOP MENU HEIGHT

TMFS		= "8";					// TOP MENU FONT SIZE

TMFW		= "bold";				// TOP MENU FONT WEIGHT bold/normal

TMFF		= " arial, verdana, helvetica, sans";	// TOP MENU FONT FACE

TMC		= "888888";				// TOP MENU OFF FONT COLOR

TMBC		= "000000";				// TOP MENU OFF BACKGROUND COLOR

TMBI		= "picts/menu.gif";			// TOP MENU OFF BACKGROUND IMAGE

TMHC		= "FFFFFF";				// TOP MENU HOVER TEXT COLOR

TMHBC		= "000000";				// TOP MENU HOVER BACKGROUND COLOR

TMHBI		= "picts/menuon.gif";			// TOP MENU HOVER BACKGROUND IMAGE

MO		= TMH-2;				// Y MENU OVERLAP CHANGE NUMBER VALUE

SUBshift	= 0;					// SHIFT SUBMENU RIGHT
 
 
 

// START SUBMENU OPTIONS - you will find more options in the corporatestyle.css
 
 

SMH		= 22;					// SUB MENU HEIGHT

SMFS		= "8";					// SUB MENU FONT SIZE

SMFW		= "bold";				// SUB MENU FONT WEIGHT bold/normal

SMFF		= "arial,MS Sans Serif,sans-serif";	// SUB MENU FONT FACE

SMC		= "FFFFFF";				// SUB MENU OFF FONT COLOR

SMBC		= "858486";				// SUB MENU OFF BACKGROUND COLOR

SMHC		= "FFFFFF";				// SUB MENU HOVER TEXT COLOR

SMHBC		= "999999";				// SUB MENU HOVER BACKGROUND COLOR
 
 

SubMenu()
 
 
 
 

// START MENU NUMBER 1 COPY AND PASTE A GROUP TO ADD A NEW TOP LEVEL SEE NOTE BELOW
 
 

Top_Width[0]=175; Sub_Menu_Width[0]=175;

m[0]='Home';n[0]='index.html';st[0]="";s[0]=""

+l+"index.html"+r+" Home "+c

+l+"about.htm"+r+" About the Artist "+c

+l+"gallery155.htm"+r+" Loretta Birnbrich Studios"+c
 
 

Top_Width[1]=175; Sub_Menu_Width[1]=175;

m[1]='Show Schedule';n[1]='schedule2.htm';st[1]="";s[1]=""

+l+"schedule2.htm"+r+" 2006 "+c

+l+"schedule2.htm"+r+" 2007-2008 "+c
 
 

Top_Width[2]=175; Sub_Menu_Width[2]=0;

m[2]='Breeds';n[2]='gallery.htm';st[2]="";s[2]=""+c

+l+"Irish Terrier Sketches.htm"+r+" Irish Terrier Sketches "+c
 
 

Top_Width[3]=175; Sub_Menu_Width[3]=0;

m[3]='Custom Work';n[3]='custom.htm';st[3]="";s[3]=""+c
 
 

Top_Width[4]=175; Sub_Menu_Width[4]=175;

m[4]='Other Critters';n[4]='otheranimalsetc.htm';st[4]="";s[4]=""

+l+"butterflyanddragonfly.htm"+r+" Bees, etc... "+c

+l+"caterpillar.htm"+r+" Caterpillar "+c

+l+"cats.htm"+r+" Cats"+c

+l+"chickens.htm"+r+" Chickens"+c

+l+"ducks.htm"+r+" Ducks "+c

+l+"frogs.htm"+r+" Frogs "+c

+l+"giraffe.htm"+r+" Giraffe "+c

+l+"quail.htm"+r+" Quail "+c

+l+"rabbits.htm"+r+" Rabbits "+c

+l+"sheep.htm"+r+" Sheep "+c

+l+"squirrels.htm"+r+" Squirrels"+c
 
 
 

Top_Width[5]=175;Sub_Menu_Width[5]=175;

m[5]='Help & Support';n[5]='contact.htm';st[5]="";s[5]=""

+l+"faq.htm"+r+" F.A.Q. "+c

+l+"contact.htm"+r+" Contact Us "+c
 
 
 
 
 
 
 

// IF YOU ADD ANOTHER TOP LEVEL MENU YOU MUST ADD TO THE BOTTOM OF THIS LIST
 

ADJ[0]=MFL;

ADJ[1]=(Top_Width[0])+MFL;

ADJ[2]=(Top_Width[0]+Top_Width[1])+MFL;

ADJ[3]=(Top_Width[0]+Top_Width[1]+Top_Width[2])+MFL;

ADJ[4]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3])+MFL;

ADJ[5]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3]+Top_Width[4])+MFL;

ADJ[6]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3]+Top_Width[4]+Top_Width[5])+MFL;
 
 

// ----------------------------------------------------------------

// YOU DO NOT NEED TO EDIT BELOW THIS LINE 2003 Allwebco Design

// ----------------------------------------------------------------
 
 
 
 
 

MENU=m.length
 

for (i=0; i < MENU; i++){
 
 

// START WRITING TOP LEVEL MENUS
 
 

document.write("<div style='position:absolute;"+ALIGN+":"+ADJ[i]+";top:"+MFT+";width:"+Top_Width[i]+"' onmouseover='o["+i+"].ShowMenu()' onmouseout='o["+i+"].HideMenu()'>")
 

browser_version= parseInt(navigator.appVersion);

browser_type = navigator.appName;

if (browser_type == "Netscape") {

document.write("<a class='menu_TOP' style='height:"+TMH+"; color:#"+TMC+"; background-image: url("+TMBI+"); background-color:#"+TMBC+"; font-size:"+TMFS+"pt; font-weight:"+TMFW+"; font-family: "+TMFF+"; "+spn+"' href='"+n[i]+"'>"+m[i]+"</a></div>")

}

else {
 

document.write("<a class='menu_TOP' style='height:"+TMH+"; color:#"+TMC+"; background-image: url("+TMBI+"); background-color:#"+TMBC+"; font-size:"+TMFS+"pt; font-weight:"+TMFW+"; font-family: "+TMFF+"; "+spn+"' onmouseover=\"this.style.backgroundColor='#"+TMHBC+"';this.style.color='"+TMHC+"';this.style.backgroundImage='URL("+TMHBI+")'\"  onmouseout=\"this.style.backgroundColor='#"+TMBC+"';this.style.color='"+TMC+"';this.style.backgroundImage='URL("+TMBI+")'\" href='"+n[i]+"'>"+m[i]+"</a></div>")
 

}
 

}
 
 

for (i=0; i < MENU; i++){
 

// START WRITING SUB MENUS
 
 

document.write("<div id='SUB"+i+"' class='menu_DIV' style='position: absolute; "+ALIGN+":"+(ADJ[i]+SUBshift)+";top:"+(MFT+MO)+";width:"+Sub_Menu_Width[i]+";background-color:#"+SMBC+";' onmouseover='o["+i+"].ShowMenu()' onmouseout='o["+i+"].HideMenu()'>"+s[i]+"</div>")
 
 

}
 
 
 

function StartMenu()

{
 

var D6=window,Y7=document;

function DETECT()

{

this.ver=navigator.appVersion;this.agent=navigator.userAgent;this.dom=Y7.getElementById?1:0;this.opera5=this.agent.indexOf("Opera 5")>-1;this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;this.ie4=(Y7.all && !this.dom && !this.opera5)?1:0;this.ie=this.ie4||this.ie5||this.ie6;this.mac=this.agent.indexOf("Mac")>-1;this.ns6=(this.dom && parseInt(this.ver)>=5)?1:0;this.ns4=(Y7.layers && !this.dom)?1:0;this.BWD=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5);return this

}

BWD=new DETECT();z=0;b=0;

spn="";

if(BWD.opera5||BWD.ns6)

{

b=2

};

if(BWD.ie)

{

spn=" width: 100%"

}else{

z=6

}
 

} 
 
 

function SubMenu()

{
 

document.write("<TABLE cellpadding='0' cellspacing='0' border='0' width='100%' BGCOLOR='#"+TMBC+"'><tr><td>");

document.write("<img src='picts/spacer.gif' width='100%' height='"+TMH+"'><br>");

document.write("</td></tr></table>");
 

document.write("<div width='100%' style='height:"+TMH+";position:absolute;top:"+MFT+";width:100%;background-image: url("+TMBI+"); background-color:#"+TMBC+";z-level:-2'></div>")
 

browser_version= parseInt(navigator.appVersion);

browser_type = navigator.appName;

if (browser_type == "Netscape") {

l="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-color:#"+SMBC+"; font-size:"+SMFS+"pt; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' href='";

}

else {

l="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-color:#"+SMBC+"; font-size:"+SMFS+"pt; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' onmouseover=\"this.style.backgroundColor='#"+SMHBC+"';this.style.color='"+SMHC+"'\"  onmouseout=\"this.style.backgroundColor='#"+SMBC+"';this.style.color='"+SMC+"'\" href='";

}

r="'>";

c="</a>";
 
 

m=new Array();n=new Array();s=new Array();Sub_Menu_Width=new Array();su=new Array();st=new Array();Top_Width=new Array();ADJ=new Array()
 

}
 
 

function lib_obj(obj,nest){nest=(!nest) ? "":'document.'+nest+'.';this.evnt=BWD.dom? document.getElementById(obj):BWD.ie4?document.all[obj]:BWD.ns4?eval(nest+"document.layers." +obj):0;this.css=BWD.dom||BWD.ie4?this.evnt.style:this.evnt;this.ref=BWD.dom||BWD.ie4?document:this.css.document;this.x=parseInt(this.css.top)||this.css.pixeltop||this.evnt.offsettop||0;this.y=parseInt(this.css.left)||this.css.pixelleft||this.evnt.offsetleft||0;return this}

function lib_doc_size(){this.x=0;this.x2=BWD.ie && document.body.offsetWidth-20||innerWidth||0;this.y=0;this.y2=BWD.ie && document.body.offsetHeight-5||innerHeight||0;this.x50=this.x2/2;this.y50=this.y2/2;return this;}

lib_obj.prototype.ShowMenu = function(){this.css.visibility="visible"}

lib_obj.prototype.HideMenu = function(){this.css.visibility="hidden"}

function libinit(){page=new lib_doc_size();o=new Array();for (i=0; i < MENU; i++){o[i]=new lib_obj('SUB'+i);o[i].HideMenu()}}

libinit()
 
 

// END MENU CODE -->

Open in new window

0
Comment
Question by:solsticeint
  • 7
  • 6
  • 2
15 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 24033286
It seams to work. Do you have still problems?
0
 

Author Comment

by:solsticeint
ID: 24033328
When I go the website the drop downs are already dropped.  They are not working for me on my ie7 machine.  

Thanks for your help
0
 

Author Comment

by:solsticeint
ID: 24033334
can be viewed at http://dogsofsteel.com/
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 24033358
I have here only IE6 and there it works.
In one hour or so I can look at it in IE7.

So long...
0
 

Author Comment

by:solsticeint
ID: 24033372
Thanks
0
 
LVL 17

Expert Comment

by:Thomas4019
ID: 24033708
I am using IE 8 and your menus are certainly stuck down
0
 

Author Comment

by:solsticeint
ID: 24033749
Any ideas on what is causing this.  JS is not my specialty.

Thanks
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 17

Expert Comment

by:Thomas4019
ID: 24033878
Line 206 and 207 read, "this.css.visibility=". I am fairly sure this is Wrong. I believe it should be, "this.style.visibility=". Basically change "css" to "style" on those two lines.
0
 

Author Comment

by:solsticeint
ID: 24033945
tried that with no luck
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 24034494
Enable temporary error handling like this in your javascript.js:

function blockError(){return true;}
//window.onerror = blockError;
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 24034546
OK, your problem is that IE7 does not know window.innerWidth
Get this article: http://andylangton.co.uk/articles/javascript/get-viewport-size-javascript/
And repair this line 205 in menu.js:

function lib_doc_size(){this.x=0;this.x2=BWD.ie && document.body.offsetWidth-20||innerWidth||0;this.y=0;this.y2=BWD.ie && document.body.offsetHeight-5||innerHeight||0;this.x50=this.x2/2;this.y50=this.y2/2;return this;}

Open in new window

0
 

Author Comment

by:solsticeint
ID: 24039632
I still can not get it to show correctly.  I removed the 205 line and replaced with text from attachment above.  I am still a novice and not sure exactly what I am doing here.  Some more help would be greatly appreciated.

Thank you
0
 
LVL 63

Accepted Solution

by:
Zvonko earned 500 total points
ID: 24043694
Check this line:
function lib_doc_size(){this.x=0;this.x2=BWD.ie && document.body.offsetWidth-20||document.documentElement.clientWidth||window.innerWidth||0;this.y=0;this.y2=BWD.ie && document.body.offsetHeight-5||document.documentElement.clientHeight||window.innerHeight||0;this.x50=this.x2/2;this.y50=this.y2/2;return this;}

Open in new window

0
 

Author Comment

by:solsticeint
ID: 24049952
I changed the code but I am still getting the error.  I repasted the code that I have below.  I appreciate your help with this.

Michael
<!-- // START MENU CODE
 

// NOTE: If you use a ' add a slash before it like this \'
 
 

StartMenu()
 
 

// MENU OPTIONS - you will find more options in the corporatestyle.css
 

MFL		= 0; 					// MENU DISTANCE FROM EDGE

MFT		= 60; 					// MENU DISTANCE FROM TOP

ALIGN		= "left"				// MENU LEFT OR RIGHT

TMH		= 22;					// TOP MENU HEIGHT

TMFS		= "8";					// TOP MENU FONT SIZE

TMFW		= "bold";				// TOP MENU FONT WEIGHT bold/normal

TMFF		= " arial, verdana, helvetica, sans";	// TOP MENU FONT FACE

TMC		= "888888";				// TOP MENU OFF FONT COLOR

TMBC		= "000000";				// TOP MENU OFF BACKGROUND COLOR

TMBI		= "picts/menu.gif";			// TOP MENU OFF BACKGROUND IMAGE

TMHC		= "FFFFFF";				// TOP MENU HOVER TEXT COLOR

TMHBC		= "000000";				// TOP MENU HOVER BACKGROUND COLOR

TMHBI		= "picts/menuon.gif";			// TOP MENU HOVER BACKGROUND IMAGE

MO		= TMH-2;				// Y MENU OVERLAP CHANGE NUMBER VALUE

SUBshift	= 0;					// SHIFT SUBMENU RIGHT
 
 
 

// START SUBMENU OPTIONS - you will find more options in the corporatestyle.css
 
 

SMH		= 22;					// SUB MENU HEIGHT

SMFS		= "8";					// SUB MENU FONT SIZE

SMFW		= "bold";				// SUB MENU FONT WEIGHT bold/normal

SMFF		= "arial,MS Sans Serif,sans-serif";	// SUB MENU FONT FACE

SMC		= "FFFFFF";				// SUB MENU OFF FONT COLOR

SMBC		= "858486";				// SUB MENU OFF BACKGROUND COLOR

SMHC		= "FFFFFF";				// SUB MENU HOVER TEXT COLOR

SMHBC		= "999999";				// SUB MENU HOVER BACKGROUND COLOR
 
 

SubMenu()
 
 
 
 

// START MENU NUMBER 1 COPY AND PASTE A GROUP TO ADD A NEW TOP LEVEL SEE NOTE BELOW
 
 

Top_Width[0]=175; Sub_Menu_Width[0]=175;

m[0]='Home';n[0]='index.html';st[0]="";s[0]=""

+l+"index.html"+r+" Home "+c

+l+"about.htm"+r+" About the Artist "+c

+l+"gallery155.htm"+r+" Loretta Birnbrich Studios"+c
 
 

Top_Width[1]=175; Sub_Menu_Width[1]=175;

m[1]='Show Schedule';n[1]='schedule2.htm';st[1]="";s[1]=""

+l+"schedule2.htm"+r+" 2006 "+c

+l+"schedule2.htm"+r+" 2007-2008 "+c
 
 

Top_Width[2]=175; Sub_Menu_Width[2]=0;

m[2]='Breeds';n[2]='gallery.htm';st[2]="";s[2]=""+c

+l+"Irish Terrier Sketches.htm"+r+" Irish Terrier Sketches "+c
 
 

Top_Width[3]=175; Sub_Menu_Width[3]=0;

m[3]='Custom Work';n[3]='custom.htm';st[3]="";s[3]=""+c
 
 

Top_Width[4]=175; Sub_Menu_Width[4]=175;

m[4]='Other Critters';n[4]='otheranimalsetc.htm';st[4]="";s[4]=""

+l+"butterflyanddragonfly.htm"+r+" Bees, etc... "+c

+l+"caterpillar.htm"+r+" Caterpillar "+c

+l+"cats.htm"+r+" Cats"+c

+l+"chickens.htm"+r+" Chickens"+c

+l+"ducks.htm"+r+" Ducks "+c

+l+"frogs.htm"+r+" Frogs "+c

+l+"giraffe.htm"+r+" Giraffe "+c

+l+"quail.htm"+r+" Quail "+c

+l+"rabbits.htm"+r+" Rabbits "+c

+l+"sheep.htm"+r+" Sheep "+c

+l+"squirrels.htm"+r+" Squirrels"+c
 
 
 

Top_Width[5]=175;Sub_Menu_Width[5]=175;

m[5]='Help & Support';n[5]='contact.htm';st[5]="";s[5]=""

+l+"faq.htm"+r+" F.A.Q. "+c

+l+"contact.htm"+r+" Contact Us "+c
 
 
 
 
 
 
 

// IF YOU ADD ANOTHER TOP LEVEL MENU YOU MUST ADD TO THE BOTTOM OF THIS LIST
 

ADJ[0]=MFL;

ADJ[1]=(Top_Width[0])+MFL;

ADJ[2]=(Top_Width[0]+Top_Width[1])+MFL;

ADJ[3]=(Top_Width[0]+Top_Width[1]+Top_Width[2])+MFL;

ADJ[4]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3])+MFL;

ADJ[5]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3]+Top_Width[4])+MFL;

ADJ[6]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3]+Top_Width[4]+Top_Width[5])+MFL;
 
 

// ----------------------------------------------------------------

// YOU DO NOT NEED TO EDIT BELOW THIS LINE 2003 Allwebco Design

// ----------------------------------------------------------------
 
 
 
 
 

MENU=m.length
 

for (i=0; i < MENU; i++){
 
 

// START WRITING TOP LEVEL MENUS
 
 

document.write("<div style='position:absolute;"+ALIGN+":"+ADJ[i]+";top:"+MFT+";width:"+Top_Width[i]+"' onmouseover='o["+i+"].ShowMenu()' onmouseout='o["+i+"].HideMenu()'>")
 

browser_version= parseInt(navigator.appVersion);

browser_type = navigator.appName;

if (browser_type == "Netscape") {

document.write("<a class='menu_TOP' style='height:"+TMH+"; color:#"+TMC+"; background-image: url("+TMBI+"); background-color:#"+TMBC+"; font-size:"+TMFS+"pt; font-weight:"+TMFW+"; font-family: "+TMFF+"; "+spn+"' href='"+n[i]+"'>"+m[i]+"</a></div>")

}

else {
 

document.write("<a class='menu_TOP' style='height:"+TMH+"; color:#"+TMC+"; background-image: url("+TMBI+"); background-color:#"+TMBC+"; font-size:"+TMFS+"pt; font-weight:"+TMFW+"; font-family: "+TMFF+"; "+spn+"' onmouseover=\"this.style.backgroundColor='#"+TMHBC+"';this.style.color='"+TMHC+"';this.style.backgroundImage='URL("+TMHBI+")'\"  onmouseout=\"this.style.backgroundColor='#"+TMBC+"';this.style.color='"+TMC+"';this.style.backgroundImage='URL("+TMBI+")'\" href='"+n[i]+"'>"+m[i]+"</a></div>")
 

}
 

}
 
 

for (i=0; i < MENU; i++){
 

// START WRITING SUB MENUS
 
 

document.write("<div id='SUB"+i+"' class='menu_DIV' style='position: absolute; "+ALIGN+":"+(ADJ[i]+SUBshift)+";top:"+(MFT+MO)+";width:"+Sub_Menu_Width[i]+";background-color:#"+SMBC+";' onmouseover='o["+i+"].ShowMenu()' onmouseout='o["+i+"].HideMenu()'>"+s[i]+"</div>")
 
 

}
 

function blockError(){return true;}

//window.onerror = blockError;
 

function StartMenu()

{
 

var D6=window,Y7=document;

function DETECT()

{

this.ver=navigator.appVersion;this.agent=navigator.userAgent;this.dom=Y7.getElementById?1:0;this.opera5=this.agent.indexOf("Opera 5")>-1;this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;this.ie4=(Y7.all && !this.dom && !this.opera5)?1:0;this.ie=this.ie4||this.ie5||this.ie6;this.mac=this.agent.indexOf("Mac")>-1;this.ns6=(this.dom && parseInt(this.ver)>=5)?1:0;this.ns4=(Y7.layers && !this.dom)?1:0;this.BWD=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5);return this

}

BWD=new DETECT();z=0;b=0;

spn="";

if(BWD.opera5||BWD.ns6)

{

b=2

};

if(BWD.ie)

{

spn=" width: 100%"

}else{

z=6

}
 

} 
 
 

function SubMenu()

{
 

document.write("<TABLE cellpadding='0' cellspacing='0' border='0' width='100%' BGCOLOR='#"+TMBC+"'><tr><td>");

document.write("<img src='picts/spacer.gif' width='100%' height='"+TMH+"'><br>");

document.write("</td></tr></table>");
 

document.write("<div width='100%' style='height:"+TMH+";position:absolute;top:"+MFT+";width:100%;background-image: url("+TMBI+"); background-color:#"+TMBC+";z-level:-2'></div>")
 

browser_version= parseInt(navigator.appVersion);

browser_type = navigator.appName;

if (browser_type == "Netscape") {

l="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-color:#"+SMBC+"; font-size:"+SMFS+"pt; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' href='";

}

else {

l="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-color:#"+SMBC+"; font-size:"+SMFS+"pt; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' onmouseover=\"this.style.backgroundColor='#"+SMHBC+"';this.style.color='"+SMHC+"'\"  onmouseout=\"this.style.backgroundColor='#"+SMBC+"';this.style.color='"+SMC+"'\" href='";

}

r="'>";

c="</a>";
 
 

m=new Array();n=new Array();s=new Array();Sub_Menu_Width=new Array();su=new Array();st=new Array();Top_Width=new Array();ADJ=new Array()
 

}
 
 

function lib_obj(obj,nest){nest=(!nest) ? "":'document.'+nest+'.';this.evnt=BWD.dom? document.getElementById(obj):BWD.ie4?document.all[obj]:BWD.ns4?eval(nest+"document.layers." +obj):0;this.css=BWD.dom||BWD.ie4?this.evnt.style:this.evnt;this.ref=BWD.dom||BWD.ie4?document:this.css.document;this.x=parseInt(this.css.top)||this.css.pixeltop||this.evnt.offsettop||0;this.y=parseInt(this.css.left)||this.css.pixelleft||this.evnt.offsetleft||0;return this}

function lib_doc_size(){this.x=0;this.x2=BWD.ie && document.body.offsetWidth-20||document.documentElement.clientWidth||window.innerWidth||0;this.y=0;this.y2=BWD.ie && document.body.offsetHeight-5||document.documentElement.clientHeight||window.innerHeight||0;this.x50=this.x2/2;this.y50=this.y2/2;return this;}

lib_obj.prototype.ShowMenu = function(){this.style.visibility="visible"}

lib_obj.prototype.HideMenu = function(){this.style.visibility="hidden"}

function libinit(){page=new lib_doc_size();o=new Array();for (i=0; i < MENU; i++){o[i]=new lib_obj('SUB'+i);o[i].HideMenu()}}

libinit()
 
 

// END MENU CODE -->

Open in new window

0
 
LVL 63

Expert Comment

by:Zvonko
ID: 24066430
The upper line 206: is not what I see in line 205 in this file:
http://dogsofsteel.com/menu.js

There is still the old version of that line.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to Delete extra delimeter ","  in text file 8 211
fetching data 4 191
javascript custom events tracking code 2 83
Javascript simple function doesn't work 6 114
Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
In 2017, ransomware will become so virulent and widespread that if you aren’t a victim yourself, you will know someone who is.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now