• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The Poll

Next, we will display the poll. We will first show how the SVG for the poll is constructed; then we will present ways to prevent people from getting more than one vote per survey.

SVG Representation of the Poll

For the SVG representation of the poll, we will create a rect element that contains the text of each possible alternative. The voting button consists of a circle that represents the button and another circle that creates a shadow for the button. Additionally, we will create a hook or check mark that resembles a cross you can make on your voting sheet (even in Florida ;-)). Using a little bit of ECMAScript, the hook appears when the user moves the mouse pointer over the button. The sample in Listing 23.3 shows two alternatives.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint