AV1611 Posted October 20, 2008 Share Posted October 20, 2008 I did this: http://www.phpfreaks.com/forums/index.php/topic,221929.0.html and it's working fine now. Now, here is the change I made: Rather than having the smileys in the table under the shoutbox I put the table in a separate popup page. the hope is it works the same. the actual question is what do I have to do to make the img click apply back to the original page? main page snippet: <script type="text/javascript"> function insertSmiley(smiley){ var txtarea = document.getElementById('smileytext'); txtarea.value = txtarea.value+smiley; } </script> <script type="text/javascript"> function popitup(url) { newwindow=window.open(url,'terms','height=500,width=750,resizable=yes'); if (window.focus) {newwindow.focus()} return false; } </script> popup: <img onclick="insertSmiley('');" src="Smileys/grin.gif" alt="" /> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.