|
 |
javascript thread: INPUT TYPE="image", SRC, and how to get it???
Message #1 by "Charles Feduke" <webmaster@r...> on Mon, 21 Aug 2000 00:33:34 -0400
|
|
Lokk at this code and I hope will find what you
need:
<html>
<body>
<script>
function fshow(obj)
{
alert(obj.src);
}
function fmodify(obj,source)
{
obj.src = source;
}
</script>
<input name="img1" type="image"
src="punchdarkgreen.jpg">
<input type="button" value="Click to show SRC"
onclick="fshow(document.all.img1)">
<input type="button" value="Click to modify SRC"
onclick="fmodify(document.all.img1,'PhotoFinish.jpg')">
</body>
</html>
--- Charles Feduke <webmaster@r...> wrote:
> I'm having a serious issue with INPUT
> TYPE="image". I have a proprietary
> application from MapQuest (a *.exe mind you) that
> mucks up a HTML page with a
> bunch of MapQuest stuff. In it is an INPUT
> TYPE="image" within a form, and it
> even has a name (namely: "map"). This particular
> INPUT tag has an attribute
> named SRC which I really need to update an image on
> another open window.
> However I simply cannot get the SRC attribute of the
> INPUT no matter what I try.
>
> I'm using MSIE 5.5 and I'm thinking that the DOM
> does not have the ability
> to return what I need. Anyone have any idea for a
> solution?
>
> Thanks.
>
> - Chuck
>
> Give me a Commodore 64 and a live dial tone, and I
> can do anything!
>
>
|
|
 |