Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: ComboBox + Picture - HTML
11-06-2012, 12:11 AM #1
- Join Date
- Nov 2012
- Thanked 0 Times in 0 Posts
ComboBox + Picture - HTML
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.
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
So now. How can I do this in HTML?
If you have any questions, just ask!
11-06-2012, 04:07 PM #2
- Join Date
- Jan 2011
- Thanked 702 Times in 700 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