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