Print Page | Close Window

web content editor

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7183
Printed Date: 30 March 2026 at 10:10am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: web content editor
Posted By: cuedog
Subject: web content editor
Date Posted: 12 November 2003 at 12:39am
This concerns a web content editor. The problem I am having is with inserting images, to be exact smilies. I want to combine the code used by IE and the code used by Mozilla/Netscape in one function. As of right now the function to insert images with netscape is perfect but inserting messages with IE is the problem. Can anyone help?

Here is the code in the popUp showing the images.

                 <td width="17" class="text"><img src="smilies/azzangel.gif" width="20" height="20" border="0" alt="Angel" title="Angel" OnClick="AddSmileyIcon('smilies/azzangel.gif')" style="cursor: pointer; cursor: hand;"></td>

<SCRIPT LANGUAGE=JavaScript>
<!--
function AddSmileyIcon(imagePath){
    if(parseInt(navigator.appVersion) >= 5.5 && navigator.appVersion.indexOf("MSIE") != -1){
    window.returnValue = event.srcElement.title;
    window.close();
    }else{
    imagePath = '<%=ThisURL%>' + imagePath
    window.opener.document.getElementByI d("contentBody").contentWindow.focus()
    window.opener.document.getElementByI d("contentBody").contentWindow.document.execCommand('InsertI mage', false, imagePath);
    window.close();
    }
}
// -->
</SCRIPT>


-------------
http://www.512ryders.com - 512 Ryders



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net