Hey guys,
I have the following code:
$detail.="<TD>
<!-- AddThis Button BEGIN -->
<script type='text/javascript'>addthis_pub = 'vexxy'</script>
<a href='http://www.addthis.com/bookmark.php' onmouseover='return addthis_open(this, '', '[URL]', '[TITLE]')' onmouseout='addthis_close()' onclick='return addthis_sendto()'><img src='http://s9.addthis.com/button1-addthis.gif' width='125' height='16' border='0' /></a><script type='text/javascript' src='http://s7.addthis.com/js/152/addthis_widget.js'></script>
<!-- AddThis Button END -->
</TD>;"
The problem is, the java script doesn't run correctly, it gives me the following output:
<a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, " .="" [url]="" ,="" [title]="" )=""
Correctly it was:
<a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')"
Now, I know that somewhere I had misplaced the ' and " quotes in the JS functions there but I don't know where and how. Can you guys give me a hand?