[Javascript] syntax

Dave Goodchild buddhamagnet at gmail.com
Fri Oct 12 11:26:03 CDT 2007


Any lose the inline styles - why not apply classes instead?

On 10/12/07, Anthony Ettinger <anthony at chovy.com> wrote:
>
> I don't know who wrote that thing, but if you want to learn to write
> javascript,  try "DOM Scripting" -- it got me off and running in a
> hurry (used to write like this myself once).
>
>
> On 10/11/07, Kromel Jan <jan.kromel at lynx.sk> wrote:
> > Hello!
> >
> > Can anyone check my syntax? Ff and ie gives me error on this:
> >
> > onmousedown="document.getElementById('TestL').style.visibility='visible'
> > ; document.getElementById('TestL').innerHTML='<div style=\'left:10%;
> > width: 200px; position:absolute; font-size:20px;\'>Test</div><div
> > style=\'top:35px; left:1%; position: absolute;\'><img
> > src=\'test1.jpg\'></div><div style=\'right:18%; top: 0px; right:60px;
> > width: 100px; position:absolute; font-size:20px;\'>Test</div><div
> > style=\'right:1%; position: absolute; top:35px;\'><img src=\'test2.jpg\'
> > width=\'300px\'></div><div style=\'right:1%; top: 260px; width: 220px;
> > position:absolute; font-size:20px;\'>Test</div><div style=\'right:2%;
> > top:298px; position: absolute;\'><img src=\'test3.jpg\'
> > width=\'200px\'></div><div style=\'left:360px; top:40px; position:
> > absolute;\' align=\'left\'><u>Text</u><br /><br /><ul><li>text1</li>
> > <li>text2</li> </div><div style=\'top:370px; width 60px;  left: 45%;
> > position: absolute;\'><a href=\'\'
> > onmousedown=\'document.getElementById(\'TestL\').style.visibility=\'hidd
> > en\'\'><center>Close</a></center></div> '"
> >
> > I think error is in this part: <a href=\'\'
> > onmousedown=\'document.getElementById(\'TestL\').style.visibility=\'hidd
> > en\'\'><center>Close</a></center></div> '"
> >
> > Thanx!!!
> >
> > jano
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at lists.evolt.org
> > http://lists.evolt.org/mailman/listinfo/javascript
> >
>
>
> --
> Anthony Ettinger
> Ph: 408-656-2473
> var (bonita, farley) = new Dog;
> farley.barks("very loud");
> bonita.barks("at strangers");
>
> http://chovy.dyndns.org/resume/
> http://utuxia.com/consulting
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20071012/58a7460a/attachment.htm>


More information about the Javascript mailing list