/* ---------------------------------------------------------------------- *\ Function : retrieveWYSIWYG() Description : Retrieves the textarea ID for which the color will be inserted into. \* ---------------------------------------------------------------------- */ function retreiveColor() { var query = window.location.search.substring(1); var parms = query.split('&'); for (var i=0; i 0) { var key = parms[i].substring(0,pos); var val = parms[i].substring(pos+1); qsParm[key] = val; } } document.getElementById('enterColor').value = "#" + (qsParm['color']); }
/* ---------------------------------------------------------------------- *\ Function : selectColor() Description : Selects the color and inserts it into the WYSIWYG \* ---------------------------------------------------------------------- */ function selectColor(color) { window.opener.document.getElementById('wysiwyg' + qsParm['wysiwyg']).contentWindow.document.execCommand(qsParm['command'], false, color); window.close(); }
/* ---------------------------------------------------------------------- *\ Function : previewColor() Description : Updates the preview pane as the user mouses over different colors \* ---------------------------------------------------------------------- */ function previewColor(color) { document.getElementById('enterColor').value = color; document.getElementById('PreviewColor').style.backgroundColor = color; }