Results 1 to 8 of 8

Thread: How do i....

  1. #1
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default How do i....

    It may sound stupid but how do i make a dropdown box where the options work as hyperlinks?
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  2. #2
    Join Date
    Apr 2007
    Posts
    2,431
    Tokens
    0

    Latest Awards:

    Default

    Only one I could find

    =)

    If you dont like it, search around - you'll find one!

    [X] [X] [X]

  3. #3
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default

    Ive sorted it now thanks though! +rep
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  4. #4
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    I wont post the code, because the best way to learn is to think. But basically, in PHP you could do a if to see if a form has been posted. Then, if it has it executes a JavaScript thingy to change the page, if the if says the form hasn't been posted echo the form. There is probably a simple JavaScript way, but i don't like JavaScript.
    James


    Connected to reality through a proxy server.

  5. #5
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Yeh its javascript, on dreamweaver its called spry watever that means
    Chippiewill.


  6. #6
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    Quote Originally Posted by 00chips View Post
    Yeh its javascript, on dreamweaver its called spry watever that means
    I thought it would be JavaScript, i wouldn't know about dream weaver because i have never used a program like dream weaver.
    James


    Connected to reality through a proxy server.

  7. #7
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    HTML Code:
    <select name="name">
    <option onClick="javascript:window.location = 'http://google.com';">Google</option>
    </select>
    Simple.

  8. #8
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    Quote Originally Posted by Invent View Post
    HTML Code:
    <select name="name">
    <option onClick="javascript:window.location = 'http://google.com';">Google</option>
    </select>
    Simple.
    I thourght there would be a JavaScript way of doing it.Nice one invent.
    James


    Connected to reality through a proxy server.

Posting Permissions

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