[thelist] Javascript not validating (RESOLVED)
David Travis
dwork at macam.ac.il
Fri Sep 24 06:41:54 CDT 2004
Hi there,
The solution has nothing to do with onclick event... you simply did not
close the IMG tag... you should have used a closing tag "</img>" or "<img
.... />".
The error you got was because the parser sees an opening tag (the image
tag), and than a closing </a>. Since overlapping tags is not allowed you got
the error.
David.
-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Christopher Mahan
Sent: Thursday, September 23, 2004 10:55 PM
To: thelist at lists.evolt.org
Subject: RE: [thelist] Javascript not validating (RESOLVED)
--- Kevin Switzer <Kevin.Switzer at Stamats.com> wrote:
> Perfect! Thanks SOO much!!
You're welcome
> -----Original Message-----
> From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Christopher
> Mahan
> Sent: Thursday, September 23, 2004 2:58 PM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] Javascript not validating
>
>
> --- Kevin Switzer <Kevin.Switzer at Stamats.com> wrote:
> > document.write('<a href="Javascript:forward2()"><img
> > src="/images/home/random/R'+which+'.jpg" width="331" height="199"
> > border="0" id="photoslider" alt="Click to view next
> image"></a>');
>
> use onclick on the image tag, like this:
>
> <img src="/images/home/random/R'+which+'.jpg" width="331"
> height="199" border="0" id="photoslider" alt="Click to view next
> image" onclick="forward2();" />
>
> Eliminate the <a href tag
> Don't forget to close your image tag.
>
>
> =====
> Chris Mahan
> 818.943.1850 cell
> chris_mahan at yahoo.com
> chris.mahan at gmail.com
> http://www.christophermahan.com/
>
>
>
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
=====
Chris Mahan
818.943.1850 cell
chris_mahan at yahoo.com
chris.mahan at gmail.com
http://www.christophermahan.com/
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list