Jump to content

NeoSniperkiller

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by NeoSniperkiller

  1. Well, why do you have showmenu setting a timer interval to call function show? Why would you want it to call that function every 10 milliseconds (10/1000th of a second, or 1/100th) to show it.. you would only need to call show and thats it..
    i could show it to ya in here, but i dont think the tags are allowedthis timeinterval makes the menu slowly appear, kinda sliding out not enabled :) ok to see the menu go to this page, its a page from w3schoolsSliding menu
  2. Hello,Can anyone tell me (or show me) what I must modify in this code, so it would work for multiple elements.It currently works only for 1 element.

    <script type="text/javascript">var i=-135var intHidevar speed=3function showmenu(){clearInterval(intHide)intShow=setInterval("show()",10)}function hidemenu(){clearInterval(intShow)intHide=setInterval("hide()",10)}function show(){if (i<-12){	i=i+speed	document.getElementById('myMenu').style.left=i	}}function hide(){if (i>-135){	i=i-speed	document.getElementById('myMenu').style.left=i	}}</script>

    Thanks in advance

×
×
  • Create New...