Kier presents an interesting workaround, but another solution is to change what is considered deprecated javascript...
Code:
<a href="javascript:smilie('$smilie[smilietext]')">
<img src="$smilie[smiliepath]" alt="$smilie[title]" border="0"></a>
to:
Code:
<a href="#" onclick="smilie('$smilie[smilietext]');return false">
<img src="$smilie[smiliepath]" alt="$smilie[title]" border="0"></a>
I am not sure if this limits you to HTML4 browsers or not but I know it works great on my board.
I read about it here:
http://www.experts-exchange.com/Web/..._20308449.html