Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > menu problem

Reply
Thread Tools

menu problem

 
 
Beshoo
Guest
Posts: n/a
 
      04-05-2007
Hey gaiz !!!

just aim trying to make a collaps menu on timer Sowhen we over upon
the main the Subs appear slowlly !!! i think its nice i dea !

The problem is when aim roll over the main the subs apperar and on
mouse out the subs dissapear
!! until now is fine !!

BUT even when I roll over the subs THE SUBS dissapear !! ??

aiv tried to sove it in more one methode i turnd the subs div to <TD>
but it not work Take the code to get me more

alot of thanx in advance

-------------------------------------------------------------------------------------------------------------------------------------------------------------
<HTML>
<HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1256">
<SCRIPT language=javascript>
<!--
var y = 1;
var q = 5;
var g = 0;

function changeheight(x)
{
obj=document.getElementById(x);

if(y>170&&g==0)
{
g=1;return;
}
if(y<2&&g==1)
{
g=0;return;
}

if(g)q=-5;
if(!g)q=5;
y=y+q;
obj.style.height = y + 'px';
t=setTimeout("changeheight(obj.id)",0);
}
// -->
</SCRIPT>

</HEAD>
<BODY>
<div style="background:#FF6600; width:100px;"
onMouseOver="mydiv.style.display='';changeheight(' mydiv');"
onMouseOut="changeheight('mydiv');">main1</div>
<div id="mydiv" style=" width:100px; height:0px; background-
color:#FFCC00; overflow:hidden; display:none">Goesadasd Here <br>
Goesadasd Here
<br>
Goesadasd HereGoesadasd Here</div>

<div style="background:#FF6600; width:100px"
onMouseOver="mydiv2.style.display='';changeheight( 'mydiv2');"
onMouseOut="changeheight('mydiv2');">main1</div>
<div id="mydiv2" style=" width:100px; height:0px; background-
color:#FFCC00; overflow:hidden; display:none">Goesadasd Here <br>
Goesadasd Here
<br>
Goesadasd HereGoesadasd Here</div>
</BODY>
</HTML>

 
Reply With Quote
 
 
 
 
brunascle.maps@gmail.com
Guest
Posts: n/a
 
      04-06-2007
On Apr 5, 9:09 am, "Beshoo" <(E-Mail Removed)> wrote:
> Hey gaiz !!!
>
> just aim trying to make a collaps menu on timer Sowhen we over upon
> the main the Subs appear slowlly !!! i think its nice i dea !
>
> The problem is when aim roll over the main the subs apperar and on
> mouse out the subs dissapear
> !! until now is fine !!
>
> BUT even when I roll over the subs THE SUBS dissapear !! ??
>
> aiv tried to sove it in more one methode i turnd the subs div to <TD>
> but it not work Take the code to get me more
>
> alot of thanx in advance
>
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
> <HTML>
> <HEAD>
> <META http-equiv=Content-Type content="text/html;
> charset=windows-1256">
> <SCRIPT language=javascript>
> <!--
> var y = 1;
> var q = 5;
> var g = 0;
>
> function changeheight(x)
> {
> obj=document.getElementById(x);
>
> if(y>170&&g==0)
> {
> g=1;return;
> }
> if(y<2&&g==1)
> {
> g=0;return;
> }
>
> if(g)q=-5;
> if(!g)q=5;
> y=y+q;
> obj.style.height = y + 'px';
> t=setTimeout("changeheight(obj.id)",0);}
>
> // -->
> </SCRIPT>
>
> </HEAD>
> <BODY>
> <div style="background:#FF6600; width:100px;"
> onMouseOver="mydiv.style.display='';changeheight(' mydiv');"
> onMouseOut="changeheight('mydiv');">main1</div>
> <div id="mydiv" style=" width:100px; height:0px; background-
> color:#FFCC00; overflow:hidden; display:none">Goesadasd Here <br>
> Goesadasd Here
> <br>
> Goesadasd HereGoesadasd Here</div>
>
> <div style="background:#FF6600; width:100px"
> onMouseOver="mydiv2.style.display='';changeheight( 'mydiv2');"
> onMouseOut="changeheight('mydiv2');">main1</div>
> <div id="mydiv2" style=" width:100px; height:0px; background-
> color:#FFCC00; overflow:hidden; display:none">Goesadasd Here <br>
> Goesadasd Here
> <br>
> Goesadasd HereGoesadasd Here</div>
> </BODY>
> </HTML>


i'd try putting mydiv inside the div with the mouseover scripts. or
put both those divs into the same div and move the mouseover scripts
to that new div.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
only wanna show Sub Menu of root menu mike ASP .Net 2 11-30-2005 10:50 PM
Horizontal Menu and Sub menu in asp.net 2.0 itzikkl ASP .Net 0 03-27-2005 12:50 PM
Menu and sub-menu in asp.net as windows menus made with vb, delphi, etc..? Vilmar ASP .Net 0 05-27-2004 05:52 PM
Jump Menu (DropDown Menu) in ASP.net. Can someone help me out? Miguel Dias Moura ASP .Net 3 04-03-2004 08:17 AM
menu problem / Cool menu Chancel Javascript 0 09-25-2003 07:55 PM



Advertisments