Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] image as submit, with javascrip onMouseOver From: Antonio Garcia Mari (agarcia <email protected>)
Date: 07/31/98

> There is one solution that I can think of:
>
> <A HREF="javascript:document.formname.submit();" onMouseOver="...">
> <IMG SRC="foo.gif"></A>
>
> That is, let the HREF of the tag submit the form (indirectly). The main
> drawback: if you don't have javascript enabled, there is no way to submit
> the form.

There is a way to do both things:
<script language="javascript">
document.write('<A
HREF="javascript:document.formname.submit();"onMouseOver="..."><IMG
SRC="foo.gif"></A>');
</script>
<noscript>
<input type="image" src="...">
</noscript>

Antonio Garcia Mari
Mallorca (Spain)

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3