coding - how do i do this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rogueteens
    So fucking bland
    • Jul 2006
    • 8005

    #1

    coding - how do i do this?

    Code:
    <form name="f1">
    text<br>
    <input type="checkbox" name="cb1" value="ON"> <b>
    <span onClick="document.f1.cb1.checked=(! document.f1.cb1.checked);">
    <a target="_blank" href="http://test.com">CLICK HERE for more</a></span></b>
    </form>
    What i want it to do is for the checkbox to be clickable to go to the URL but to show a tick after the click, if you see what i mean?

    Cheers
    Free traffic and backlinks from one of the fastest growing adult pinsites on the net - SAUCY PICTURES!
    Easily my best performing webcam sponsor - CLICK HERE!!
  • mikke
    Confirmed User
    • Jan 2010
    • 1327

    #2
    Code:
    <label><input type="checkbox" name="dupa" value="1" /> click here to check/uncheck</label>
    you mean this?
    icq: 395 294 346
    http://www.adultsubmitter.eu - submit any adult site to 20 directories from 1 form!
    now 20 domains!
    http://www.porndeals.eu http://www.ebonybangbros.com

    Comment

    • rogueteens
      So fucking bland
      • Jul 2006
      • 8005

      #3
      no, not really. i want the actual checkbox to be connected to a hyperlink so that when the surfer clicks the box they get sent to a url.
      Free traffic and backlinks from one of the fastest growing adult pinsites on the net - SAUCY PICTURES!
      Easily my best performing webcam sponsor - CLICK HERE!!

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        Code:
        <form name="f1">
        <input onClick="window.open('http://google.com','_blank');" type="checkbox" name="cb1" value="ON">
        </form>
        this maybe?
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • RazorSharpe
          Confirmed User
          • Aug 2001
          • 2238

          #5
          Originally posted by rogueteens
          no, not really. i want the actual checkbox to be connected to a hyperlink so that when the surfer clicks the box they get sent to a url.
          Code:
          <input
              type="checkbox"
              value="http://www.google.com"
              name="checket"
              onClick="if (this.checked) { window.location = this.value; }"
          />
          Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

          Comment

          • rogueteens
            So fucking bland
            • Jul 2006
            • 8005

            #6
            thanks guys
            Free traffic and backlinks from one of the fastest growing adult pinsites on the net - SAUCY PICTURES!
            Easily my best performing webcam sponsor - CLICK HERE!!

            Comment

            Working...