select color






openWYSIWYG | Select Color



var qsParm = new Array();


/* ---------------------------------------------------------------------- *\
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;
}






































































































































































































































































































Wyszukiwarka

Podobne podstrony:
select color
select color
select color
select color
select color
select color
color selector (4)
Functional Origins of Religious Concepts Ontological and Strategic Selection in Evolved Minds
function ncurses can change color
border top color
function socket select
selectnpc
grafika inzynierska wyklad 3 color
Coherence Selection Phase Cycling and Gradient Pulses
selectors

więcej podobnych podstron