MILONIC menubgimage

Hi,

I need to change the menubgimage when i click in different items.

example:

item1 -> menubgimage="1.gif"

item2 -> menubgimage="2.gif"

item3 -> menubgimage="3.gif"

item4 -> menubgimage="4.gif"

It's very urgent to me.

The URL:
http://www.retomaroprogresso.com/index.asp

:? Thanks,
Gui

My code is ASP and HTML:

** moved to snippet - b0lsc0tt **
<!-- ***** MENU SCRIPT CODE ***** -->
<script type="text/javascript" src="milonic_src.js"></script>
<script type="text/javascript" src="mmenudom.js"></script>
 
<SCRIPT TYPE="text/javascript">
fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=0;
_subOffsetLeft=0;
 
with(menuStyle=new mm_style()){
menubgimage="http://www.retomaroprogresso.com/Imagens/PSDGAV_BckMenu.gif";
menubgcolor="#eeeeee";
offclass="menuOffX";
onclass="menuOnX";
}
 
with(background=new mm_style()){
borderstyle="solid";
fontstyle="normal";
fontfamily="arial,tahoma,serif";
fontsize="9px";
textdecoration="none";
textalign="center";
itemheight=29;
itemwidth=93;
offcolor="#333300";
oncolor="#ffffff";
}
 
 
 
<%
mnpsql="select * from zones where supercatid=0 and navegacao=0 order by menuid asc;"
set mnrs=conn.execute(mnpsql)
do until mnrs.eof
mntit = mnrs("zonenamemenu")
mncat = mnrs("zoneid")
mnscat = mnrs("supercatid")
mnnav = mnrs("navegacao")
%>
<%
Select Case mnnav
Case "True"
%>
 
<%
Smnpsql="select * from zones where supercatid= "&mncat&" order by zonenamemenu asc;"
set Smnrs=server.createobject("ADODB.Recordset")
Smnrs.open Smnpsql,conn,1
if not(Smnrs.eof) then
maxval=Smnrs.recordcount
cc=0
 
%>
with(milonic=new menuname("_<%=mncat%>")){
left="offset=+0";
style=background;
<%
do until Smnrs.eof
cc=cc+1
mnstit = Smnrs("zonenamemenu")
mnscat = Smnrs("supercatid")
mnszcat = Smnrs("zoneid")
if cc = maxval Then
%>
aI("align=center;bgimage=http://psdmatosinhos.websys.pt/Imagens/menu1.png;text=<%=mnstit%>;url=<%=siteurl%>SubCategorias.asp?sz=<%=mnszcat%>&z=<%=mnscat%>&n=<%=n%>;");
<%
Else
%>
aI("align=center;bgimage=http://psdmatosinhos.websys.pt/Imagens/menu2.png;text=<%=mnstit%>;url=<%=siteurl%>SubCategorias.asp?sz=<%=mnszcat%>&z=<%=mnscat%>&n=<%=n%>;");
<%
End If
%>
<%
Smnrs.movenext
loop
Smnrs.close
set Smnrs=nothing
%>
}
<%
Else
End If
%>
 
<%
Case Else
%>
<%
Response.write mncat
Ymnpsql="Select * from vArticlesZones where zoneid="&CInt(mncat)&" order by headline asc;"
set Ymnrs=server.createobject("ADODB.Recordset")
Ymnrs.open Ymnpsql,conn,1
if not(Ymnrs.eof) then
maxvalX=Ymnrs.recordcount
xx=0
%>
with(milonic=new menuname("_<%=mncat%>")){
left="offset=+0";
style=background;
<%
do until Ymnrs.eof
xx=xx+1
Ymntit = Ymnrs("headline")
Ymncat = Ymnrs("zoneid")
Ymnart = Ymnrs("articleid")
n = 1
n=1
if xx = maxvalX Then
%>
aI("align=center;bgimage=http://psdmatosinhos.websys.pt/Imagens/menu1.png;text=<%=Ymntit%>;url=<%=applicationurl%>artigo.asp?a=<%=Ymnart%>&z=<%=Ymncat%>&n=<%=n%>;menubgimage=http://psdmatosinhos.websys.pt/Imagens/index_07.jpg;");
<%
Else
%>
aI("align=center;bgimage=http://psdmatosinhos.websys.pt/Imagens/menu2.png;text=<%=Ymntit%>;url=<%=applicationurl%>artigo.asp?a=<%=Ymnart%>&z=<%=Ymncat%>&n=<%=n%>;menubgimage=http://psdmatosinhos.websys.pt/Imagens/index_07.jpg;");
<%
End If
%>
<%
Ymnrs.movenext
loop
Ymnrs.close
set Ymnrs=nothing
%>
}
<%
Else
End If
%>
<%
End Select
%>
 
<%
mnrs.movenext
loop
mnrs.close
set mnrs=nothing
%>
 
drawMenus()
</script>
 
<SCRIPT TYPE="text/javascript">
with(milonic=new menuname("Main Menu")){
itemwidth=93;
itemheight=31;
menualign="center";
orientation="horizontal";
alwaysvisible=1;
position="relative";
style=menuStyle;
<%
<!-- #include virtual="/conteudos/incSystem.asp"-->
set conn=server.createobject("ADODB.Connection")
conn.open connection
%>
<%
mnpsql="select * from zones where supercatid=0 order by menuid asc;"
set mnrs=conn.execute(mnpsql)
do until mnrs.eof
mntit = mnrs("zonenamemenu")
mnURL = mnrs("zonenameURL")
mncat = mnrs("zoneid")
mnscat = mnrs("supercatid")
mnnav = mnrs("navegacao")
%>
<%
Select Case mnnav
Case "True"
%>
aI("menubgimage=http://www.retomaroprogresso.com/Imagens/PSDGAV_BckMenuX.gif;offbgcolor=transparent;showmenu=_<%=mncat%>;itemwidth=93;text=<%=mntit%>;url=<%=mnURL%>;");
<%
Case Else
%>
aI("showmenu=_<%=mncat%>;itemwidth=93;text=<%=mntit%>;");
<%
End Select
%>
<%
mnrs.movenext
loop
mnrs.close
set mnrs=nothing
%>
}
drawMenus();
</script>
 
CSS
 
.menuOffX{
color:#5A5B5D;
font-style:normal;
font-weight:bold;
font-family:arial,tahoma,serif;
font-size:10px;
text-align:center;
margin:0px;
text-decoration: none;
padding-top:0px;
padding-right:0px;
padding-bottom:0px;
padding-left:0px;
}
 
.menuOnX{
background-image:url(http://psdmatosinhos.websys.pt/Imagens/buthome.png);
color: white;
font-style:normal;
font-weight:bold;
font-family:arial,tahoma,serif;
font-size:10px;
text-align:center;
margin:0px;
text-decoration: none;
padding-top:0px;
padding-right:0px;
padding-bottom:0px;
padding-left:0px;
}

Open in new window

guiaragaoreisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

b0lsc0ttIT ManagerCommented:
guiaragaoreis,

We need to see the html for the part of the page you describe as "item1", "item2", etc and the menubgimage element.  Please not the ASP or server source but the html the browser gets (i.e. the browser's html source).

Let me know if you have any questions or need more information.

b0lsc0tt
0
guiaragaoreisAuthor Commented:
Hi,

There is the code.
<!-- ***** MENU SCRIPT CODE ***** -->
<script type="text/javascript" src="milonic_src.js"></script>	
<script type="text/javascript" src="mmenudom.js"></script>
 
<SCRIPT TYPE="text/javascript">
fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=0;
_subOffsetLeft=0;
 
with(menuStyle=new mm_style()){
offclass="menuOffX";
onclass="menuOnX";
}
 
with(background=new mm_style()){
borderstyle="solid";
fontstyle="normal"; 
fontfamily="arial,tahoma,serif"; 
fontsize="9px"; 
textdecoration="none"; 
textalign="center"; 
itemheight=29;
itemwidth=93;
offcolor="#333300";
oncolor="#ffffff";
}
 
 
 
1
with(milonic=new menuname("_1")){
left="offset=+0"; 
style=background;
aI("align=center;bgimage=http://psdmatosinhos.websys.pt/Imagens/menu2.png;text=CURRICULUM;url=http://www.retomaroprogresso.com/conteudos/artigo.asp?a=1&z=1&n=1;");
aI("align=center;bgimage=http://psdmatosinhos.websys.pt/Imagens/menu1.png;text=INTERVENÇÕES;url=http://www.retomaroprogresso.com/conteudos/artigo.asp?a=7&z=1&n=1;");
}
2
with(milonic=new menuname("_2")){
left="offset=+0"; 
style=background;
aI("align=center;bgimage=http://psdmatosinhos.websys.pt/Imagens/menu2.png;text=CARTA ÀS ASSOCIAÇÕES;url=http://www.retomaroprogresso.com/conteudos/artigo.asp?a=11&z=2&n=1;");
aI("align=center;bgimage=http://psdmatosinhos.websys.pt/Imagens/menu1.png;text=CARTAS AOS MUNICIPES;url=http://www.retomaroprogresso.com/conteudos/artigo.asp?a=10&z=2&n=1;");
}
3
with(milonic=new menuname("_3")){
left="offset=+0"; 
style=background;
aI("align=center;bgimage=http://psdmatosinhos.websys.pt/Imagens/menu1.png;text=MAPA DO CONCELHO;url=http://www.retomaroprogresso.com/conteudos/artigo.asp?a=8&z=3&n=1;");
}
14
with(milonic=new menuname("_14")){
left="offset=+0"; 
style=background;
aI("align=center;bgimage=http://psdmatosinhos.websys.pt/Imagens/menu1.png;text=COMO CHEGAR A BAIÃO;url=http://www.retomaroprogresso.com/conteudos/artigo.asp?a=9&z=14&n=1;");
}
drawMenus()
</script>
			
 
<SCRIPT TYPE="text/javascript">
with(milonic=new menuname("Main Menu")){
itemwidth=93;
itemheight=31;
zindex=80;
menualign="center";
orientation="horizontal";
alwaysvisible=1;
position="relative";
style=menuStyle;
	
aI("showmenu=_4;itemwidth=93;text=HOME;url=http://www.retomaroprogresso.com/index.asp;");
aI("showmenu=_1;itemwidth=93;text=CANDIDATO;");
aI("showmenu=_2;itemwidth=93;text=PROGRAMA;");
aI("showmenu=_3;itemwidth=93;text=CONCELHO;");
aI("showmenu=_5;itemwidth=93;text=AGENDA;url=http://www.retomaroprogresso.com/agenda.asp;");
aI("showmenu=_6;itemwidth=93;text=NOTICIAS;url=http://www.retomaroprogresso.com/noticias.asp;");
aI("showmenu=_7;itemwidth=93;text=GALERIA;url=http://www.retomaroprogresso.com/galeria.asp;");
aI("showmenu=_14;itemwidth=93;text=CONTACTOS;");
}
drawMenus();
</script>
 
//CSS STYLE FILE
 
.menuOffX{ 
	  color:#5A5B5D;
	  font-style:normal; 
      font-weight:bold; 
      font-family:arial,tahoma,serif; 
      font-size:10px; 
      text-align:center; 
      margin:0px; 
	  text-decoration: none; 
      padding-top:0px;
	  padding-right:0px;
	  padding-bottom:0px;
	  padding-left:0px;
      } 
      
.menuOnX{ 
      background-image:url(http://psdmatosinhos.websys.pt/Imagens/buthome.png); 
	  color: white; 
      font-style:normal; 
      font-weight:bold; 
      font-family:arial,tahoma,serif; 
      font-size:10px; 
      text-align:center; 
      margin:0px; 
	  text-decoration: none; 
      padding-top:0px;
	  padding-right:0px;
	  padding-bottom:0px;
	  padding-left:0px;
      } 	  

Open in new window

0
b0lsc0ttIT ManagerCommented:
Please either explain where the applicable code is or post it.  I just see Javascript and CSS and can't see the elements you mentioned and I asked about.  It wasn't even clear when I looked at your URL though so I think you might actually need to elaborate and explain the section and elements for the script you want.
bol
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

guiaragaoreisAuthor Commented:
I have buy MILONIC menu solution.

I have made integration with SQL and asp and i have a problem.

I need to change the backgrounf of menu when the mouse rollover item main menu.

The milonic system (www.milonic.com) have a menubgimage but i don't find overmenubgimage to change the background image.

What do you need?
0
b0lsc0ttIT ManagerCommented:
I don't see how your responses answered my questions.  Sorry but if you don't understand what I asked for please let me know.  I will be glad to clarify but I don't see how the first four lines answers what I asked.
>> What do you need? <<
Just what I asked for.  Basically details.  I wish I could be more specific but I just have what you asked.  The code you have provide and other details honestly seem unrelated to what you asked.  If the URL didn't seem to clearly match what you asked.
If that is the best you can provide then maybe another expert will have more luck.
bol
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
guiaragaoreisAuthor Commented:
Not 100%, but solved.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.