Skip to content

Instantly share code, notes, and snippets.

@PEM-FR
Created May 20, 2011 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PEM-FR/983032 to your computer and use it in GitHub Desktop.
Save PEM-FR/983032 to your computer and use it in GitHub Desktop.
Hex color generator
dojo.style(
zone,
"border",
"2px solid #" + ("00000"+(Math.random()*16777216<<0).toString(16)).substr(-6)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment