The largest Interview Solution Library on the web


« Previous | 1 | 2 | 3 | Next »
ColorPalette: The ColorPalette is a color picker to the web pages. ColorPalette provides you a lot of colors, user can choose color to your requirement. This is an abstraction of hexa colors code that is provided by dijit.
<html>
<head>
<title>ColorPalette Demo</title>
<style type="text/css">
@import "../dijit/themes/soria/soria.css";
@import "/resources/dojo.css";
</style>
<script type="text/javascript" src="dojo.xd.js" djConfig="parseOnLoad: true"></script>
<script type="text/javascript">
dojo.require("dojo.parser");
dojo.require("dijit.ColorPalette");
function myColorPalette(selectColor) {
console.debug(selectColor);
}
</script>
</head>
<body class="soria">
<div dojoType="dijit.ColorPalette" onChange="myColorPalette"></div>
</body>
</html>
Can also use : src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js"
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com