OT: Re: [Mono-list] C# Patterns Web Site

Rodrigo B. de Oliveira rbo@acm.org
Fri, 21 May 2004 18:08:29 -0300


I think mozilla would be happier if the eval calls were changed to
document.getElementById...

----- Original Message ----- 
From: "Dan" <dan@astusa.com>
To: "'Kevin Berry'" <kevinbe71mono@yahoo.com>; <mono-list@lists.ximian.com>
Sent: Friday, May 21, 2004 5:02 PM
Subject: RE: [Mono-list] C# Patterns Web Site


This function seems to be the culprit, but you'd think mozilla could handle
it, wouldn't you?

<script Language="JavaScript">
<!-- 

function ShowHide( ref )
{
   var color;
   if( ref == 'Structure' )
     color = 'aa0000';
   else
     color = '007733';

   if (eval(ref).style.display =='none')
   {
      eval('x' + ref).innerHTML = '<font face="Arial,helvetica" color=' +
color + ' size=2><b><u>Hide code</u></b></font>';
      eval(ref).style.display ='';
   }
   else
   {
      eval('x' + ref).innerHTML = '<font face="Arial,helvetica" color=' +
color + ' size=2><b><u>Show code</u></b></font>';
      eval(ref).style.display ='none';
   }
}
//-->
</script>

-Dan