| | |
| | | /**
|
| | | * $RCSfile: form_utils.js,v $
|
| | | * $Revision: 1.11 $
|
| | | * $Date: 2006/04/07 15:53:12 $
|
| | | * $Id: form_utils.js 43 2006-08-08 16:10:07Z spocke $
|
| | | *
|
| | | * Various form utilitiy functions.
|
| | | *
|
| | |
| | | * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
|
| | | */
|
| | |
|
| | | var themeBaseURL = tinyMCE.baseURL + '/themes/' + tinyMCE.getParam("theme");
|
| | |
|
| | | function getColorPickerHTML(id, target_form_element) {
|
| | | var html = "";
|
| | | var h = "";
|
| | |
|
| | | html += '<a id="' + id + '_link" href="javascript:void(0);" onkeydown="pickColor(event,\'' + target_form_element +'\');" onmousedown="pickColor(event,\'' + target_form_element +'\');return false;">';
|
| | | html += '<img id="' + id + '" src="../../themes/' + tinyMCE.getParam("theme") + '/images/color.gif"';
|
| | | html += ' onmouseover="this.className=\'mceButtonOver\'"';
|
| | | html += ' onmouseout="this.className=\'mceButtonNormal\'"';
|
| | | html += ' onmousedown="this.className=\'mceButtonDown\'"';
|
| | | html += ' width="20" height="16" border="0" title="' + tinyMCE.getLang('lang_browse') + '"';
|
| | | html += ' class="mceButtonNormal" alt="' + tinyMCE.getLang('lang_browse') + '" /></a>';
|
| | | h += '<a id="' + id + '_link" href="javascript:void(0);" onkeydown="pickColor(event,\'' + target_form_element +'\');" onmousedown="pickColor(event,\'' + target_form_element +'\');return false;">';
|
| | | h += '<img id="' + id + '" src="' + themeBaseURL + '/images/color.gif"';
|
| | | h += ' onmouseover="this.className=\'mceButtonOver\'"';
|
| | | h += ' onmouseout="this.className=\'mceButtonNormal\'"';
|
| | | h += ' onmousedown="this.className=\'mceButtonDown\'"';
|
| | | h += ' width="20" height="16" border="0" title="' + tinyMCE.getLang('lang_browse') + '"';
|
| | | h += ' class="mceButtonNormal" alt="' + tinyMCE.getLang('lang_browse') + '" /></a>';
|
| | |
|
| | | return html;
|
| | | return h;
|
| | | }
|
| | |
|
| | | function pickColor(e, target_form_element) {
|
| | |
| | | var html = "";
|
| | |
|
| | | html += '<a id="' + id + '_link" href="javascript:openBrower(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;">';
|
| | | html += '<img id="' + id + '" src="../../themes/' + tinyMCE.getParam("theme") + '/images/browse.gif"';
|
| | | html += '<img id="' + id + '" src="' + themeBaseURL + '/images/browse.gif"';
|
| | | html += ' onmouseover="this.className=\'mceButtonOver\';"';
|
| | | html += ' onmouseout="this.className=\'mceButtonNormal\';"';
|
| | | html += ' onmousedown="this.className=\'mceButtonDown\';"';
|