Hi, Im using the following javascript function on the page where i click to open a pop up which contains smileys:
index.php:
I click the following code which opens the smileys popup:Code:<script> function showSmileys(){ var w = window.open('smileys.htm','Smiley Chooser','width=610,height=550,scrollbars=1'); w.targetField = targetField; w.focus(); return false; } function insertSmiley(a){ document.getElementById('msg_txt').value += a; } </script>
And then on the poped up page (smileys page), I have the following javascript:Code:<a href="javascript:showSmileys();void(0)">Smileys</a>
smileys.htm:
Code:<script> function putSmiley(a){ opener.insertSmiley(a); window.close(); } </script>
and im using it like this:
When i click on the smiley it places it within index.php, but what i want to do is instead of opening the smileys.htm page in a popup, open it in a lightbox.Code:<a href="javascript:putSmiley(':))');void(0)" style="text-decoration:none;color:white;"><img src="images/smileys/21.gif" title="laughing"></a>
I found the following code: ( http://particletree.com/examples/lightbox/ ) which is the effect that im after, anyone can help![]()



Reply With Quote

Bookmarks