CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   ComboBox + Picture - HTML (http://www.codingforums.com/showthread.php?t=281071)

ryfitzger227 11-06-2012 12:11 AM

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

sunfighter 11-06-2012 04:07 PM

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


All times are GMT +1. The time now is 01:13 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.