Jetzt wünschte ein Kunde ein paar default-Farben zur Auswahl.
Dabei fiel mir auf, daß in der Farbtabelle ein Transparent-Bild benutzt wird. Leider stimmt aber der Pfad nicht, so daß ein Bildplatzhalter gezeigt wird und die Optik stört.
Daher habe ich alle Vorkommen von
Code: Alles auswählen
src="images/transparent.gif"
Code: Alles auswählen
src="../_images/transparent.gif"
(alternativ kann man auch das Bild von _images in das Verzeichnis _editor/images kopieren)
Dann habe ich noch die Zeile
Code: Alles auswählen
<p><?php echo ___('Please choose a color from below or enter the color value in the text area below.'); ?></p>
Code: Alles auswählen
Farbvorgaben:
<script type="text/javascript"><!--
document.write('<table style="margin-bottom: 5px;margin-top: 5px;"><tr>');
colors = new Array('005959','88ADA6');
for (i=colors.length-1; i>=0; i--) {
color = "#"+colors[i];
document.write('<td width=20 bgcolor="'+color+'"><img src="../_images/transparent.gif" width="20" height="20" onClick="changeColor(\''+color+'\');" style="cursor: hand"></td>\n');
}
document.write('</tr></table>');
//--> </SCRIPT>
Code: Alles auswählen
colors = new Array('005959','88ADA6');