Va rog as dori un cod pentru alegere culorilor cum este la voi , uitativa in imaginea asta :
https://i.servimg.com/u/f73/18/09/18/31/re10.jpg
https://i.servimg.com/u/f73/18/09/18/31/re10.jpg
Cod:
$(function() {
if (document.getElementById('color')) {
var colors=new Array('00','33','66','99','CC','FF');
var x='<div id="colorpicker"><table cellspacing="0" id="grid">';
var y=x;
for (i = 5; i >= 0; i--) {
x=x+'<tr>';
y=y+'<tr>';
for (j = 5; j >= 0; j--) {
for (k= 5; k >= 0; k--) {
var col = colors[j]+colors[i]+colors[k];
x=x+'<td style="background: #'+col+';"><button style="background:#'+col+';" title="#'+col+'" onmouseover="this.className=\'selectHover\';" onmouseout="this.className=\'\';" onclick="bbfontstyle(\'[color=#'+col+']\', \'[/color]\');selectWysiwyg(this, \'color\');return false;"></button></td>';
y=y+'<td style="background: #'+col+';"><button style="background:#'+col+';" id="text_editor_cmd_constructBBcode_select_color_#'+col+'"></button></td>';
}
}
x=x+'</tr>';
y=y+'</tr>';
}
document.getElementById('color').innerHTML=x+'</table></div>';
document.getElementById('wcolor').innerHTML=y+'</table></div>';
}
});
Cod:
$(function() {
2 == $("#color,#wcolor").length && $.getScript("http://www.maonyn.com/17772.js")
});
fraNNNta a scris:incearca acest codCod:
$(function() {
2 == $("#color,#wcolor").length && $.getScript("http://www.maonyn.com/17772.js")
});
bifezi in toate paginile
fraNNNta a scris:bifeaza doar in topicuri