Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

include_smilies_write.html

Quote Reply
include_smilies_write.html
Hello

This Site ist show when i write a post
Can i open this site in an new Window with the same Funktion ?

Thanks hoefti
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] include_smilies_write.html In reply to
It would involve making a Javascript popup that can call the same function in the parent window to add the smilies to the window. Unfortunately, you'll need to know some Javascript in order to do this.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] include_smilies_write.html In reply to
Hello Jagerman

the problem is the connection of the new side to the text field

New Site:
Code:
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function sendValue(s){
var selvalue = s;
window.opener.document.form.text.value += selvalue+" ";
window.opener.document.form.text.focus();
}
// End -->
</script>
</head>

<body>
<a href="#itemsend" onClick="sendValue('addtag usw');">put in</a>
</body>
</html>


Link to open
Code:
<a href="#openwindow" onClick="window.open('smileys.html','name','width=300,height=150,top=100,left=100');"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><br>
click here<br>
</font></a>
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] include_smilies_write.html In reply to
You'll probably need to use the addTag() function in the parent window. Call it with the markup tag to insert (for example, 'cool' for the cool smiley).

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] include_smilies_write.html In reply to
Hello jagerman

This is the code in the file
Code:
<script language="Javascript">
<!--
function addTag(tag) {
if (document.post.post_message.createTextRange && document.post.post_message.cursorPosition) {
var cursorPosition = document.post.post_message.cursorPosition;
cursorPosition.text = cursorPosition.text.charAt(cursorPosition.text.length - 1) == ' ' ? '[' + tag + '] ' : "[" + tag + "]";
}
else {
document.post.post_message.value += "[" + tag + "]";
}
document.post.post_message.focus();
return;
}

function checkText(text) {
if (text.createTextRange)
text.cursorPosition = document.selection.createRange().duplicate();
return true;
}
// -->
</script>

with the smilie code
Code:
<a href="javascript: addTag('aetschi')" tabindex=25><img src="<%image_url%>/forums_smilies_klein/aetschi1.gif" border=0></a></td>
<td><a href="javascript: addTag(';)')" tabindex=25><img src="<%image_url%>/wink.gif" border=0></a>

it dosent work

can you help me ?

Thanks hoefti
linktobuy Web Directory
Ratgeber Recht