You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<!DOCTYPE html> <html> <head> <title>jscolor Example</title> </head> <body style="text-align:center;">
<script src="jscolor.js"></script>
<h2>Example 1</h2> Color: <input class="jscolor" value="ab2567">
<h2>Example 2</h2>
<button class="jscolor {valueElement:'chosen-value', onFineChange:'setTextColor(this)'}"> Pick text color </button>
HEX value: <input id="chosen-value" value="000000">
<script> function setTextColor(picker) { document.getElementsByTagName('body')[0].style.color = '#' + picker.toString() } </script>
<p style="margin-top:3em;">Check out <a href="http://jscolor.com/examples/">more examples at jscolor.com</a>!</p>
</body> </html>
|