Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy 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!

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Who cares? But why do you need to know? You want to refere a property?
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #4
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Yes, phoney indeed.

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

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

  • #5
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 ...

  • #6
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    done it. works like a wee treat.


  •  

    Posting Permissions

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