turefugio
12-04-2003, 12:12 PM
I have the following expresion in a js file, it works fine, but does not recognize the 'cell_over" or the 'button' comand:
document.write('<td class="button" onmouseover="this.className='cell_over';" onmouseout="this.className='button';" align="center"><a href="1hazmehogar.html" class="menu">HAZME*HOGAR</a></td>');
I have tried using:
onmouseover="this.className=\'cell_over\'
onmouseover="this.className="Cell_over"
onmouseover="this.className=+'cell_over+'
I also tried document.writeln("..."); but it does not work with the rest of the js file.
document.write('<td class="button" onmouseover="this.className='cell_over';" onmouseout="this.className='button';" align="center"><a href="1hazmehogar.html" class="menu">HAZME*HOGAR</a></td>');
I have tried using:
onmouseover="this.className=\'cell_over\'
onmouseover="this.className="Cell_over"
onmouseover="this.className=+'cell_over+'
I also tried document.writeln("..."); but it does not work with the rest of the js file.