Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-06-2012, 12:11 AM   PM User | #1
ryfitzger227
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ryfitzger227 is an unknown quantity at this point
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
ryfitzger227 is offline   Reply With Quote
Old 11-06-2012, 04:07 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,498
Thanks: 18
Thanked 361 Times in 360 Posts
sunfighter is on a distinguished road
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
sunfighter is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:24 AM.


Advertisement
Log in to turn off these ads.