Join Joseph Lowery for an in-depth discussion in this video Choosing a color, part of HTML5 Projects: Photo Card Titles.
- View Offline
For me, color choice is pretty critical, especially when you're dealing with a…variety of backgrounds.…So we want to make this operation particularly smooth and of course visual.…Let's put our snazzy color pickers to work.…To pull this off, we only need to add our two basic code blocks: one for the…event listener and the other for the function.…So I'll start with the event listener and put it below the others at the…bottom of the page.…I'll scroll down towards that. Let's grab the last one and copy it, paste it in,…change the element id from textSize to textFillColor, and then change the…function called from textSizeChanged to textFillColorChanged.…
Check out the rest of the HTML5 Projects series.
- Setting up a caption submission form
- Creating basic text entry fields
- Integrating color pickers in the form
- Applying text effects like shadows and gradients