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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.