Jump to content

New Question:


AV1611

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.