Web Analytics Made Easy -
StatCounter Image-type input tags - CodingForum

Announcement

Collapse
No announcement yet.

Image-type input tags

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Image-type input tags

    Does anyone know what collection input tags of type image belong to. They neither belong to the form elements or images collections?

    This has got me stumped!
    *keep it simple (TM)

  • #2
    Who cares? But why do you need to know? You want to refere a property?
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

    Comment


    • #3
      i'm creating a custom attribute to handle rollovers. the script is being adapted from one i dowloaded from young pup .

      however, the amendment wont work with tags of input-type image.

      if you create a form with only one form element - namely, an input tag of type image - and alert the form's elements length, you get zero. it should in theory be 1, but it ain't. also the image doesn't appear in the images collection, so it's kinda got me stumped!

      any ideas?
      *keep it simple (TM)

      Comment


      • #4
        Yes, phoney indeed.

        You better use the DOM references instead of form based refs:

        getElementById(id) or getElementsByTagName('input')
        KOR
        Offshore programming
        -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

        Comment


        • #5
          Hmm ... the script (as is anyway) doesn't really lend itself to that sorta coding. Could prolly work around that, but it doesn't look too promising.

          goes off to think a little ...
          *keep it simple (TM)

          Comment


          • #6
            done it. works like a wee treat.
            *keep it simple (TM)

            Comment

            Working...
            X