Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ComboBox + Picture - HTML

    Hello everyone!

    I'm gathering some ideas for a website that I'm going to design in January. It will probably be the biggest website I've ever built (for a client) and I want to make it look pretty good.

    Here's the idea.

    The website is for a local racetrack that has 3 forms of racing. Drag Racing, Dirt Track Racing, and Go-Kart Racing. Therefore you have a homepage + information pages + 3 "different websites" for each form of racing.

    In order to navigate to the person using the website's form of racing, they will select their form in a ComboBox, which will switch the pictures accordingly and then make the 'Go' button visible. After that, when the user clicks go, it will take them to their form of racing's "website."

    Below is a VB.NET code for what I need to do.

    Code:
    Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
    
            Button1.Visible = True
    
            If ComboBox1.Text = "Drag Racing" Then
                DragRacingPic.Visible = True
                DirtTrackRacingPic.Visible = False
                Go_KartRacingPic.Visible = False
            ElseIf ComboBox1.Text = "Dirt Track Racing" Then
                DragRacingPic.Visible = False
                DirtTrackRacingPic.Visible = True
                Go_KartRacingPic.Visible = False
            ElseIf ComboBox1.Text = "Go-Kart Racing" Then
                DragRacingPic.Visible = False
                DirtTrackRacingPic.Visible = False
                Go_KartRacingPic.Visible = True
            End If
    
        End Sub
    You might be wandering why I added this... Considering this is an HTML Forum. Well the reason is because a lot of people know .NET and it's pretty straight forward.

    So now. How can I do this in HTML?

    If you have any questions, just ask!

    Thanks!
    -Ryan

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,330
    Thanks
    23
    Thanked 616 Times in 615 Posts
    Just an idea because dropdowns are really old hat for navigational menus.
    Just use three vertical images with appropriate labeling for the links.
    Or this http://www.alohatechsupport.net/webd...th_jquery.html


  •  

    Posting Permissions

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