LJ-Poll Tag
From No LJ Ads Wiki
The <lj-poll> tag and others that are associated with it allow you to manually create Polls. You may also be interested in the Poll Generator.
Contents |
[edit] lj-poll
This tag starts and ends a Poll.
<lj-poll> [ Contents of Poll ] </lj-poll>
It also has some optional attributes:
[edit] name
Include a name for your Poll.
<lj-poll name="name">
[edit] whovote
Declare who can vote in your Poll. Default value is all.
<lj-poll whovote="all">
Valid values include:
- all
- friends
[edit] whoview
Declare who can view the results of your Poll. Default value is all.
<lj-poll whoview="all">
Valid values include:
[edit] lj-pq
This tag creates a "Poll Question."
<lj-poll>
<lj-pq>
[ Contents of Poll Question ]
</lj-pq>
</lj-poll>
It also has some optional attributes:
[edit] type
Declare the type of Poll Question. Default value is text.
<lj-pq type="text">
Valid values include:
[edit] check
This is a checkbox.
<lj-pq type="check">
[edit] drop
This is a selectbox/pull-down menu.
<lj-pq type="drop">
[edit] radio
This is a radio button.
<lj-pq type="radio">
[edit] scale
This is a scale.
<lj-pq type="scale">
It also has required attributes:
[edit] from
This is the beginning of the scale.
<lj-pq type="scale" from="1">
[edit] to
This is the end of the scale.
<lj-pq type="scale" to="10">
[edit] by
This is the interval of the scale.
<lj-pq type="scale" by="1">
[edit] text
This is a text input box.
<lj-pq type="text">
It also has optional attributes:
[edit] size
This is the size of the input box. The value can be between 0 and 100 characters.
<lj-pq type="text" size="20">
[edit] maxlength
This is the maximum length of characters for the input box. The value can be between 0 and 255 characters.
<lj-pq type="text" maxlength="20">
[edit] lj-pi
This tag creates a "Poll Item."
<lj-poll>
<lj-pq type="check">
<lj-pi>Poll Item text.</lj-pi>
</lj-pq>
</lj-poll>
Text Poll Questions do not have Poll Items.
[edit] check
This creates a checkbox item.
<lj-pi>I am a checkbox.</lj-pi>
The HTML output will look similar to:
<input type="checkbox" />I am a checkbox.
[edit] drop
This creates a selectable item.
<lj-pi>I am a selectable item.</lj-pi>
The HTML output will look similar to:
<option>I am a selectable item.</option>
[edit] radio
This creates a radio button item.
<lj-pi>I am a radio button.</lj-pi>
The HTML output will look similar to:
<input type="radio" />I am a radio button.
[edit] scale
This creates a scale item.
<lj-pi>Are scales neat?</lj-pi>
The HTML output will look similar to:
Are scales neat?
<table>
<tr>
<td><input type="radio" value="1" /><br />1</td>
<td><input type="radio" value="2" /><br />2</td>
<td><input type="radio" value="3" /><br />3</td>
<td><input type="radio" value="4" /><br />4</td>
<td><input type="radio" value="5" /><br />5</td>
<td><input type="radio" value="6" /><br />6</td>
<td><input type="radio" value="7" /><br />7</td>
<td><input type="radio" value="8" /><br />8</td>
<td><input type="radio" value="9" /><br />9</td>
<td><input type="radio" value="10" /><br />10</td>
</tr>
</table>

