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="" /> Link to comment https://forums.phpfreaks.com/topic/129299-new-question/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.