It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

help with show/hide isue

help with show/hide isue

Postby schleewoon on Tue Nov 02, 2010 7:37 pm

hi all,
i'm new here. i'm designing websites.
here is address where i need little help:
http://raftingtara.com/sajt5/
i want to make action: when top sub-menu content disappear, that gray background disappear too!? anyone can help me with that? i can send all source code if you need?
p.s. original source that i used without any changes is on address:
http://www.dynamicdrive.com/dynamicindex1/mouseovertabs.htm
THANKS
schleewoon
 
Posts: 1
Joined: Tue Nov 02, 2010 7:33 pm

Re: help with show/hide isue

Postby HotNoob on Sun Nov 07, 2010 3:38 am

Code: Select all
  function removeElement(value, id)
         {
            if(value == 1)
               {
                  document.getElementById(id).style.display="";
               }
            else if(value == 0)
               {
                   document.getElementById(id).style.display="none";
               }
            }


change style.display to style.visibility if you want the content to disappear but not the space
HotNoob
100+ Club
 
Posts: 169
Joined: Sun May 02, 2010 1:38 am


Who is online

Users browsing this forum: No registered users and 2 guests