Triky
03-31-2009, 03:46 PM
Hey there, in my HTML code I am calling a javascript code like this:
<div class="smallfont">
<script type="text/javascript" src="http://www.site.org/external.php?forumids=73,74&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 6; x++)
{
document.writeln("<img class=\"inlineimg\" style=\"vertical-align: middle\" src=\"http://www.site.org/skin/buttons/lastpost.gif\" alt=\"\" border=\"0\" /> <a href=\"http://www.site.org/showthread.php?t="+threads[x].threadid+"\">"+(threads[x].title.length > 56 ? threads[x].title.substr(0, 56) + '..' : threads[x].title)+"</a><br />");
}
//-->
</script></div>
The problem is: this code in a mail reader it is not displayed. Any advice?
<div class="smallfont">
<script type="text/javascript" src="http://www.site.org/external.php?forumids=73,74&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 6; x++)
{
document.writeln("<img class=\"inlineimg\" style=\"vertical-align: middle\" src=\"http://www.site.org/skin/buttons/lastpost.gif\" alt=\"\" border=\"0\" /> <a href=\"http://www.site.org/showthread.php?t="+threads[x].threadid+"\">"+(threads[x].title.length > 56 ? threads[x].title.substr(0, 56) + '..' : threads[x].title)+"</a><br />");
}
//-->
</script></div>
The problem is: this code in a mail reader it is not displayed. Any advice?