Code: Alles auswählen
<script language="javascript">var chtcmdcolor = "/COLOR"; var arrColors = ["#000000", "#800080", "#4169e1", "#8b0000", "#c71585", "#008080", "#dc143c", "#3cb371", "#880000", "#008800", "#ff4500", "#4b0082", "#808080"]; strColors=""; for(i=0;i<arrColors.length;i++){strColors+="<img src='http://wktools.net/images/blind.gif' onclick='parent.mainframe.sendeText(\""+chtcmdcolor+" "+arrColors[i]+"\")' hspace=1 style='background-color:"+arrColors[i]+";width: 11px;height: 11px;'/>"; } center0=parent.info.document.getElementsByTagName("center")[0]; if(!center0.innerHTML.match(/parent.mainframe.sendeText/)){center0.innerHTML = strColors+"<b"+"r>"+center0.innerHTML;}</script>
Vielen Dank für deine Hilfe, Maxs!