color code is urgently needed for designing the look of the blog, if you want a color code appear on your blog this time I will give free widgets for color code
please follow the steps below:
for example widgets please click here
COLOR CODE FREE WIDGET
save this code in the post or a new page
and the last step you should do is add the code below in a way add gadget> HTML / JAVA SCRIPT
<br />
<span class="Apple-style-span" style="color: red;"><script language='javascript'></span><br />
<span class="Apple-style-span" style="color: red;">function Barva(koda)</span><br />
<span class="Apple-style-span" style="color: red;">{</span><br />
<span class="Apple-style-span" style="color: red;">document.getElementById("vzorec").bgColor=koda;</span><br />
<span class="Apple-style-span" style="color: red;">document.hcc.barva.value=koda.toUpperCase();</span><br />
<span class="Apple-style-span" style="color: red;">document.hcc.barva.select();</span><br />
<span class="Apple-style-span" style="color: red;">}</span><br />
<span class="Apple-style-span" style="color: red;">function BarvaDruga(koda)</span><br />
<span class="Apple-style-span" style="color: red;">{</span><br />
<span class="Apple-style-span" style="color: red;">document.getElementById("vzorec2").bgColor=koda;</span><br />
<span class="Apple-style-span" style="color: red;">document.hcc.Barva2.value=koda.toUpperCase();</span><br />
<span class="Apple-style-span" style="color: red;">document.hcc.Barva2.select();</span><br />
<span class="Apple-style-span" style="color: red;">}</span><br />
<span class="Apple-style-span" style="color: red;"></script></span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><script type='text/javascript'></span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">var hue;</span><br />
<span class="Apple-style-span" style="color: red;">var picker;</span><br />
<span class="Apple-style-span" style="color: red;">//var gLogger;</span><br />
<span class="Apple-style-span" style="color: red;">var dd1, dd2;</span><br />
<span class="Apple-style-span" style="color: red;">var r, g, b;</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">function init() {</span><br />
<span class="Apple-style-span" style="color: red;">if (typeof(ygLogger) != "undefined")</span><br />
<span class="Apple-style-span" style="color: red;">ygLogger.init(document.getElementById("logDiv"));</span><br />
<span class="Apple-style-span" style="color: red;">pickerInit();</span><br />
<span class="Apple-style-span" style="color: red;">//ddcolorposter.fillcolorbox("colorfield1", "colorbox1") //PREFILL "colorbox1" with hex value from "colorfield1"</span><br />
<span class="Apple-style-span" style="color: red;">//ddcolorposter.fillcolorbox("colorfield2", "colorbox2") //PREFILL "colorbox1" with hex value from "colorfield1"</span><br />
<span class="Apple-style-span" style="color: red;">}</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">// Picker ---------------------------------------------------------</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">function pickerInit() {</span><br />
<span class="Apple-style-span" style="color: red;">hue = YAHOO.widget.Slider.getVertSlider("hueBg", "hueThumb", 0, 180);</span><br />
<span class="Apple-style-span" style="color: red;">hue.onChange = function(newVal) { hueUpdate(newVal); };</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">picker = YAHOO.widget.Slider.getSliderRegion("pickerDiv", "selector", 0, 180, 0, 180);</span><br />
<span class="Apple-style-span" style="color: red;">picker.onChange = function(newX, newY) { pickerUpdate(newX, newY); };</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">hueUpdate();</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">dd1 = new YAHOO.util.DD("pickerPanel");</span><br />
<span class="Apple-style-span" style="color: red;">dd1.setHandleElId("pickerHandle");</span><br />
<span class="Apple-style-span" style="color: red;">dd1.endDrag = function(e) {</span><br />
<span class="Apple-style-span" style="color: red;">// picker.thumb.resetConstraints();</span><br />
<span class="Apple-style-span" style="color: red;">// hue.thumb.resetConstraints();</span><br />
<span class="Apple-style-span" style="color: red;">};</span><br />
<span class="Apple-style-span" style="color: red;">}</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">executeonload(init);</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">function pickerUpdate(newX, newY) {</span><br />
<span class="Apple-style-span" style="color: red;">pickerSwatchUpdate();</span><br />
<span class="Apple-style-span" style="color: red;">}</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">function hueUpdate(newVal) {</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">var h = (180 - hue.getValue()) / 180;</span><br />
<span class="Apple-style-span" style="color: red;">if (h == 1) { h = 0; }</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">var a = YAHOO.util.Color.hsv2rgb( h, 1, 1);</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">document.getElementById("pickerDiv").style.backgroundColor =</span><br />
<span class="Apple-style-span" style="color: red;">"rgb(" + a[0] + ", " + a[1] + ", " + a[2] + ")";</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">pickerSwatchUpdate();</span><br />
<span class="Apple-style-span" style="color: red;">}</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">function pickerSwatchUpdate() {</span><br />
<span class="Apple-style-span" style="color: red;">var h = (180 - hue.getValue());</span><br />
<span class="Apple-style-span" style="color: red;">if (h == 180) { h = 0; }</span><br />
<span class="Apple-style-span" style="color: red;">document.getElementById("pickerhval").value = (h*2);</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">h = h / 180;</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">var s = picker.getXValue() / 180;</span><br />
<span class="Apple-style-span" style="color: red;">document.getElementById("pickersval").value = Math.round(s * 100);</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">var v = (180 - picker.getYValue()) / 180;</span><br />
<span class="Apple-style-span" style="color: red;">document.getElementById("pickervval").value = Math.round(v * 100);</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">var a = YAHOO.util.Color.hsv2rgb( h, s, v );</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">document.getElementById("pickerSwatch").style.backgroundColor =</span><br />
<span class="Apple-style-span" style="color: red;">"rgb(" + a[0] + ", " + a[1] + ", " + a[2] + ")";</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">document.getElementById("pickerrval").value = a[0];</span><br />
<span class="Apple-style-span" style="color: red;">document.getElementById("pickergval").value = a[1];</span><br />
<span class="Apple-style-span" style="color: red;">document.getElementById("pickerbval").value = a[2];</span><br />
<span class="Apple-style-span" style="color: red;">var hexvalue = document.getElementById("pickerhexval").value ='#'+</span><br />
<span class="Apple-style-span" style="color: red;">YAHOO.util.Color.rgb2hex(a[0], a[1], a[2]);</span><br />
<span class="Apple-style-span" style="color: red;">ddcolorposter.initialize(a[0], a[1], a[2], hexvalue)</span><br />
<span class="Apple-style-span" style="color: red;">if (hexvalue!="#FFFFFF") document.getElementById("pickerhexval").select();</span><br />
<span class="Apple-style-span" style="color: red;">}</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"></script><!--[if gte IE 5.5000]></span><br />
<span class="Apple-style-span" style="color: red;"><script type="text/javascript"></span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.</span><br />
<span class="Apple-style-span" style="color: red;">{</span><br />
<span class="Apple-style-span" style="color: red;">for(var i=0; i<document.images.length; i++)</span><br />
<span class="Apple-style-span" style="color: red;">{</span><br />
<span class="Apple-style-span" style="color: red;">var img = document.images[i]</span><br />
<span class="Apple-style-span" style="color: red;">var imgName = img.src.toUpperCase()</span><br />
<span class="Apple-style-span" style="color: red;">if (imgName.substring(imgName.length-3, imgName.length) == "PNG")</span><br />
<span class="Apple-style-span" style="color: red;">{</span><br />
<span class="Apple-style-span" style="color: red;">var imgID = (img.id) ? "id='" + img.id + "' " : ""</span><br />
<span class="Apple-style-span" style="color: red;">var imgClass = (img.className) ? "class='" + img.className + "' " : ""</span><br />
<span class="Apple-style-span" style="color: red;">var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "</span><br />
<span class="Apple-style-span" style="color: red;">var imgStyle = "display:inline-block;" + img.style.cssText</span><br />
<span class="Apple-style-span" style="color: red;">if (img.align == "left") imgStyle = "float:left;" + imgStyle</span><br />
<span class="Apple-style-span" style="color: red;">if (img.align == "right") imgStyle = "float:right;" + imgStyle</span><br />
<span class="Apple-style-span" style="color: red;">if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle</span><br />
<span class="Apple-style-span" style="color: red;">var strNewHTML = "<span " + imgID + imgClass + imgTitle</span><br />
<span class="Apple-style-span" style="color: red;">+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"</span><br />
<span class="Apple-style-span" style="color: red;">+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"</span><br />
<span class="Apple-style-span" style="color: red;">+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"</span><br />
<span class="Apple-style-span" style="color: red;">img.outerHTML = strNewHTML</span><br />
<span class="Apple-style-span" style="color: red;">i = i-1</span><br />
<span class="Apple-style-span" style="color: red;">}</span><br />
<span class="Apple-style-span" style="color: red;">}</span><br />
<span class="Apple-style-span" style="color: red;">}</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;">YAHOO.util.Event.addListener(window, "load", correctPNG);</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"><br />
</span><br />
<span class="Apple-style-span" style="color: red;"></script></span><br />
<span class="Apple-style-span" style="color: red;"><![endif]--></span><br />
save and see the results
congratulations now you have your color code widget
No comments:
Post a Comment