View Full Version : 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! :rolleyes:
Who cares? :D But why do you need to know? You want to refere a property?
i'm creating a custom attribute to handle rollovers. the script is being adapted from one i dowloaded from young pup (http://www.youngpup.net) .
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!
Yes, phoney indeed.
You better use the DOM references instead of form based refs:
getElementById(id) or getElementsByTagName('input')
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 ... :confused:
done it. works like a wee treat. :D
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.