Forum Moderators: open
<SCRIPT>
function anything ()
{
return '<TABLE border="0" width="450" cellspacing="9">
<TR><TD style="filter:progid:DXImageTransform.Microsoft.Gradient(
endColorstr='#88AAFF', startColorstr='#FFFFFF', gradientType='0');">
<FONT face="Tahoma" size="1" color="444444">text text text</FONT></TD>
<TD>more text more text</TD></TR></TABLE>'
}
</SCRIPT>
But as i'm sure you can tell, the " ' "'s are messing it all up for me. How can i tell javascript to just ignore all those " ' "'s before the one i need to close the return function?
Javascript is best done with external .js files, called using:
<script type="text/javascript" language="javascript" src="/path/file.js"></script>
But...it makes it nice because then you don't have to escape...what I mean is, if you need to quote some text with quotes in it, for example, HTML tags...
<a href="blah.htm">Blah</a>
...then you just use the opposite quotes around it...
'<a href="blah.htm">Blah</a>'
...then you only need to scape when you have a string that uses both, like...
'<a href="blah.htm" onclick="alert(\'Blah!\');">Blah</a>'
Jordan