Results 1 to 6 of 6

Thread: switch button code

  1. #1
    Join Date
    May 2005
    Location
    Ohio
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default switch button code

    Hello People,

    I am having a problem with my switch button code (original, not 2)
    and was wondering if anyone could help me with the code. All my buttons are conneced in some way. The first five buttons close to the top of my page work just the way I want them. ex: Click on one button a section of information opens up; then open another button, and the first button you opened closes automaticaliy.

    How can I get the second section of buttons to do the same. I know that most of the problem comes from having buttons inside of another button, but I don't know how to go about fixing the problem. I would post the source code, but its way too long. I will give you the address instead to save time, and if your brave enough to look at the code, good luck. My buttons are off to the left side of the screen and the page is called:

    www.scjvs.com

    Thank You,
    SCJVS

  2. #2
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    It works fine for me with FF.

  3. #3
    Join Date
    May 2005
    Location
    Ohio
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It looks ok, yes. But I want the second group of buttons to "fold up" just like the first group of buttons. If you open up any of the first group of buttons, then the buttons automatically close one right after another when clicking on a new button. If you open up the second group of button, no matter which buttons you click on, they stay open, and don't close when you click on a new button. I want to know how to get the second pair to close when you click on a new button. Thank you for your comment though. bye

  4. #4
    Join Date
    May 2005
    Location
    Ohio
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    could someone give me an idea of how to fix the problem. Getting the second group of buttons to close once opening another button doesn't work. They stay open, could someone help me figure out how to get the second pair of buttons to do the same thing like the first pair of buttons. please

    Thank you

    p.s. Again the site is scjvs.com

  5. #5
    Join Date
    Jun 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Your code, without wishing to sound rude, is all over the place . I am surprised the page loads properly at all.

    You have broken tags everywhere, open div's without closing closing them, same with span's and font's as well as some random closing tags. You also have things like: <u><b> Joe Stockham </u></b> which is just plain wrong, it should be <u><b> Joe Stockham </b></u>.

    If i were you i would fix all of these problems first and then see if it works, i am sure it probably will. Also, it really helps to have some form of formatting of your code to help you when you have problems like this, at the moment it is extremely hard to read.

    Hope this helps.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Try using the validator at http://validator.w3.org. Refine your code until it validates as HTML 4.01.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •