[Javascript] syntax

Kromel Jan jan.kromel at lynx.sk
Fri Oct 12 03:36:15 CDT 2007


What do you mean? 

This script is part of <a href... and it should turn layer TestL
visible, write some things to it and then write Close at the end with
event that will turn off visibility of layer TestL. Everything works
except, when I click on Close it gives me syntax error...

 

  _____  

From: javascript-bounces at lists.evolt.org
[mailto:javascript-bounces at lists.evolt.org] On Behalf Of Rafael Menezes
Sent: Friday, October 12, 2007 9:55 AM
To: JavaScript List
Subject: Re: [Javascript] syntax

 

Please... ident that thing.

On 12/10/2007, 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




-- 
Rafael de Menezes 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20071012/c73c5d7a/attachment.htm>


More information about the Javascript mailing list