?
Solved

URGENT Help with SubMenu Creation

Posted on 2009-05-06
3
Medium Priority
?
406 Views
Last Modified: 2012-05-06
I have the following code. What I am trying to do is have the second item in m1mn7 display all the items in m1mn8. Does anyone have any idea how I do this?

Since this file is widely used in our website, I can't re-write it..just need to find a way to make it work.

it is a .js file
NS60=(navigator.userAgent.indexOf("Netscape6/6.0")!=-1)
Opera=(navigator.userAgent.indexOf('Opera')!=-1)||(navigator.appName.indexOf('Opera')!=-1)||(window.opera)
Opera7=(Opera&&document.createElement!=null&&document.addEventListener!=null)
IE4=(document.all&&!Opera)
mac=((IE4)&&(navigator.appVersion.indexOf("Mac")!=-1))
DOM=document.documentElement&&!IE4&&!Opera
NS4=navigator.appName.indexOf("Netscape")>-1&&!DOM
mswnd=(navigator.appVersion.indexOf("Windows")!=-1||navigator.appVersion.indexOf("WinNT")!=-1)
if(IE4){
av=navigator.appVersion
avi=av.indexOf("MSIE")
if(avi==-1){version=parseInt(av);}else{version=parseInt(av.substr(avi+4));}}
var ver='2.0.1'
var m1=new Object
m1.name='m1'
m1.fnm='_m1'
if(!window.lastm||window.lastm<1)lastm=1
if(NS4||IE4||DOM||Opera){
m1.v17=null
m1.v17Timeout=''
var maxZ=1000
m1.v18
m1.targetFrame
var docLoaded=false
m1.bIncBorder=true
m1.v29=null
m1.v29Str=''
m1.scrollDelay=50
m1.scrollStep=10
m1.showDelayedTimeout=null
m1.fadingSteps=5
m1.v21="."
m1.maxlev=1
m1.v22=0
m1.bVarWidth=1
m1.bShowDel=150
m1.v23=110
m1.levelOffset=20
m1.bord=1
m1.vertSpace=5
m1.sep=1
m1.v19=false
m1.bkv=0
m1.rev=0
m1.shs=0
m1.xOff=0
m1.yOff=0
m1.v20=false
m1.cntFrame=""
m1.menuFrame=""
m1.v24=""
m1.mout=true
m1.iconSize=8
m1.closeDelay=0
m1.tlmOrigBg="#B2CFEB"
m1.tlmOrigCol="Black"
m1.v25=false
m1.v52=false
m1.popupOpacity=96
m1.v11=false
m1.rm=0
m1.v10=0
m1.popupLeftPad=5
m1.v01=2
m1.tlmHlBg="#003366"
m1.tlmHlCol="White"
m1.borderCol="white"
m1.menuHorizontal=false
m1.scrollHeight=6}
m1.lev0=new Array("11px",false,false,"Black","#B2CFEB","White","Arial,Helvetica","#003366")
m1.lev1=new Array("11px",false,false,"Black","#B2CFEB","White","Arial,Helvetica","#003366")
m1mn2=new Array
(
"<!---->Fraud Awareness","/Test/Fraud.asp",0
,"<!---->Clues to Look For","/Test//Clues.asp",0
,"<!---->Identity Theft","/Test/IdentityTheft.asp",0
)
m1mn3=new Array
(
"<!--_blank-->Extraterritorial State Analysis ","/Test/SummaryStateAnalysis.doc",0
,"<!--_blank-->Summary of State Quoting Options","/Test/SummaryofStateQuotingOptions.doc",0
)
m1mn4=new Array
(
"<!-- -->Privacy Information ","/Test/Privacy.asp",0
,"<!-- -->Security Information","/Test/Security.asp",0
)
m1mn5=new Array
(
"<!-- -->FAQ ","/Test/faq.asp",0
)
m1mn6=new Array
(
"<!-- -->Compliance and Human Resources Complaint Form ","/Test/RegCompComplaintIntro.asp",0
,"<!-- -->Regulatory Compliance Request","/Test/RegCompReqIntro.asp",0
)
m1mn7=new Array
(
"<!-- -->Contract Approval Form","/Test/Contract_Approval_Form.pdf",0
,"<!-- -->Contract Management Policies and Procedures","m1mn8",0
 
)
m1mn8=new Array
(
"<!-- -->Contract Approval Form","/Test/Contract_Approval_Form.pdf",0
,"<!-- -->Contract Authorization Levels","/Test/Contract_Authorization_levels.pdf",0
)
absPath="/images/"
if(m1.v19&&!m1.v20){
if(window.location.href.lastIndexOf("\\")>window.location.href.lastIndexOf("/")) {sepCh = "\\" ;} else {sepCh = "/" ;}
absPath=window.location.href.substring(0,window.location.href.lastIndexOf(sepCh)+1)}
m1.popupOffset=0
m1.v02=m1.v23
if(Opera&&!Opera7)document.write("<"+"script language='JavaScript1.2' src='/js/menu_opera.js'><"+"/"+"script>")
else if(NS4)document.write("<"+"script language='JavaScript1.2' src='/js/menu_ns4.js'><"+"/"+"script>")
else if(document.getElementById)document.write("<"+"script language='JavaScript1.2' src='/js/menu_dom.js'><"+"/"+"script>")
else document.write("<"+"script language='JavaScript1.2' src='/js/menu_ie4.js'><"+"/"+"script>")
document.write("<style type='text/css'>\n")
if(Opera7||IE4||DOM)document.write(".hidim{visibility:hidden}\n")
document.write(".m1CL0,.m1CL0:link{text-decoration:none;width:100%;color:Black; }\n")
document.write(".m1CL0:visited{color:Black}\n")
document.write(".m1CL0:hover{text-decoration:underline}\n")
document.write(".topFold{position:"+(!DOM&&!IE4?"relative":"static")+"}\n")
if(NS4&&!m1.v25)document.write(".x1{padding-left:5px;padding-right:-5px;}\n")
document.write(".m1mit{"+((!NS4||m1.v25)?"padding-left:5px;padding-right:-5px;":"")+"color:Black; font-family:Arial,Helvetica; font-size:11px; }\n")
document.write("</style>\n\n")

Open in new window

0
Comment
Question by:NewMom2Brandon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 24318301
Can you post your file js/menu_dom.js for testing?
0
 
LVL 2

Author Comment

by:NewMom2Brandon
ID: 24318333
This is what I have for my menu. This is an asp page though
<script language="JavaScript" type="text/javascript" src="/dhp/js/compliance_scr.js"></script>
<table  id="m1mainSXMenu2" cellspacing="1" cellpadding="5" class="x1" border="0" width="148">
  <tr align="left">
    <td onmouseover="chgBg(m1,'m1tlm0',3);exM(m1,'none','',event)"
onmouseout="chgBg(m1,'m1tlm0',0,1)"  id="m1tlm0"  class="m1mit" 
 bgcolor="#B2CFEB"> <a id="m1tlm0a" class="m1CL0" href="/dhp/Compliance/" > 
      <div class='topFold'>Compliance Home<img width="8" height="8" src="/images/empty.gif" align="texttop" border="0" /></div>
      </a></td>
  </tr>
  <tr align="left">
    <td onmouseover="chgBg(m1,'m1tlm1',3);exM(m1,'none','',event)"
onmouseout="chgBg(m1,'m1tlm1',0,1)"  id="m1tlm1"  class="m1mit" 
 bgcolor="#B2CFEB"> <a id="m1tlm1a" class="m1CL0" href="/dhp/Compliance/aboutus.asp"> 
      <div class='topFold'>About Us<img width="8" height="8" src="/images/empty.gif" align="texttop" border="0" /></div>
      </a></td>
  </tr>
   <tr align="left">
    <td onmouseover="chgBg(m1,'m1tlm3',3);exM(m1,'m1mn4','m1tlm3',event)"
onmouseout="chgBg(m1,'m1tlm3',0);coM(m1,'m1mn4')"  id="m1tlm3"  class="m1mit" 
 bgcolor="#B2CFEB"> <a id="m1tlm3a" class="m1CL0" href="/dhp/compliance/#" onMouseOver="exMNS(m1,'m1mn4',event)"
onmouseout="coMNS(m1,'m1mn3')" > 
      <div id='m1mn1top' class='topFold'>HIPAA<img id="hidim1" class="hidim" width="8" height="8" src="/images/_m1ia.gif" align="texttop" border="0" /></div>
      </a></td>
  </tr>
  <tr align="left">
    <td onmouseover="chgBg(m1,'m1tlm4',3);exM(m1,'m1mn2','m1tlm4',event)"
onmouseout="chgBg(m1,'m1tlm4',0);coM(m1,'m1mn2')"  id="m1tlm4"  class="m1mit" 
 bgcolor="#B2CFEB"> <a id="m1tlm4a" class="m1CL0" href="/dhp/compliance/siu.asp" onMouseOver="exMNS(m1,'m1mn2',event)"
onmouseout="coMNS(m1,'m1mn2')" > 
      <div id='m1mn1top' class='topFold'>SIU<img id="hidim1" class="hidim" width="8" height="8" src="/images/_m1ia.gif" align="texttop" border="0" /></div>
      </a></td>
  </tr>
   <tr align="left">
    <td onmouseover="chgBg(m1,'m1tlm10',3);exM(m1,'none','',event)"
onmouseout="chgBg(m1,'m1tlm10',0,1)"  id="m1tlm10"  class="m1mit" 
 bgcolor="#B2CFEB"> <a id="m1tlm10a" class="m1CL0" href="/dhp/compliance/docs/Dean Health Insurance recor retent.doc" target="_blank"  > 
      <div class='topFold'>Record Retention Guide<img width="8" height="8" src="/images/empty.gif" align="texttop" border="0" /></div>
      </a></td>
  </tr>
    <tr align="left">
    <td onmouseover="chgBg(m1,'m1tlm5',3);exM(m1,'m1mn5','m1tlm5',event)"
onmouseout="chgBg(m1,'m1tlm5',0);coM(m1,'m1mn2')"  id="m1tlm5"  class="m1mit" 
 bgcolor="#B2CFEB"> <a id="m1tlm5a" class="m1CL0" href="/dhp/compliance/#" onMouseOver="exMNS(m1,'m1mn2',event)"
onmouseout="coMNS(m1,'m1mn2')" > 
      <div id='m1mn1top' class='topFold'>Internal Audit<img id="hidim1" class="hidim" width="8" height="8" src="/images/_m1ia.gif" align="texttop" border="0" /></div>
      </a></td>
  </tr>
      <tr align="left">
    <td onmouseover="chgBg(m1,'m1tlm7',3);exM(m1,'m1mn7','m1tlm7',event)"
onmouseout="chgBg(m1,'m1tlm7',0);coM(m1,'m1mn2')"  id="m1tlm7"  class="m1mit" 
 bgcolor="#B2CFEB"> <a id="m1tlm7a" class="m1CL0" href="/dhp/compliance/#" onMouseOver="exMNS(m1,'m1mn2',event)"
onmouseout="coMNS(m1,'m1mn2')" > 
      <div id='m1mn1top' class='topFold'>Contract management<img id="hidim1" class="hidim" width="8" height="8" src="/images/_m1ia.gif" align="texttop" border="0" /></div>
      </a></td>
  </tr>
      <tr align="left">
    <td onmouseover="chgBg(m1,'m1tlm6',3);exM(m1,'m1mn6','m1tlm6',event)"
onmouseout="chgBg(m1,'m1tlm5',0);coM(m1,'m1mn2')"  id="m1tlm6"  class="m1mit" 
 bgcolor="#B2CFEB"> <a id="m1tlm6a" class="m1CL0" href="/dhp/compliance/#" onMouseOver="exMNS(m1,'m1mn2',event)"
onmouseout="coMNS(m1,'m1mn2')" > 
      <div id='m1mn1top' class='topFold'>Contact Us<img id="hidim1" class="hidim" width="8" height="8" src="/images/_m1ia.gif" align="texttop" border="0" /></div>
      </a></td>
	  </tr>
</table>

Open in new window

0
 
LVL 2

Accepted Solution

by:
NewMom2Brandon earned 0 total points
ID: 24326450
Since I have not gotten an answer on this...I am going to delete this question an rephrase it.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

800 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