Jump to content

Java help


Dane

Recommended Posts

the best way to do this, is to add your smilies in the same page as your textarea; this will eliminate the need to open a pop-up each time a smiley is wanted.

 

<script language="javascript">
function getHappy()
{
document.getElementById('smile').style.display='block';
}
function getSad()
{
document.getElementById('smile').style.display='none';
}
</script>

<img src="smiley-image.jpg" onclick="getHappy()" style="cursor:pointer">
<br style="line-height:0.01em">
<div id="smile" style="display:none;width:200px;height:200px;overflow:auto;background:white;border:solid 1px black;position:absolute;z-index:1000;margin-top:-5px">
<div style="height:15px;overflow:hidden;text-align:right;background:black;color:white;width:auto;font-family:arial;font-size:10px;padding-right:5px"><span style="cursor:pointer" title="close" onclick="getSad()">X</span></div>
<!-- add your smilies here -->
</div>
<textarea style="width:500px;height:200px"></textarea>

 

but if you want to use a pop-up window for your smilies; you need to use a JavaScript Pop-Up Remote Control.

 

here is a good example:

 

http://javascript.internet.com/navigation/remote-control.html

Link to comment
https://forums.phpfreaks.com/topic/79858-java-help/#findComment-405680
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.