|
|
|
SITE STATISTICS
|
|
USERS :
|
7906
|
| STORIES :
|
15267
|
|
 |
 |
 |
 |
|
Bookmark with Submit Capability.
The following examples illustrate the different ways the "Mark it" button can be used.
Example: Simple usage for a web page you want to enable to be vote.
Just drop the following code onto the page. It's that easy.
Code 1:
|
<script src="http://www.addictionaire.com/tools/voteit.js"></script>
|
|
When the URL you wish to "Mark it" differs from the current webpage.
What if you'd like to use a specific URL from a different webpage?
This "Vote it" button to use a very specific version of the URL?
Replace WEBSITE_URL, with the URL that you want to use.
Don't worry about URL-encoding it, our code will do that for you.
Code 2:
<script type="text/javascript">
url = 'WEBSITE_URL';
</script>
<script src="http://www.addictionaire.com/tools/voteit.js" type="text/javascript"></script>
|
|
Change the design of the button
What if you'd like a different background to your button so it looks better on your site?
What if you'd like a smaller more compact version of the button?
Provide one or both of the following options to alter the visual appearance of your button:
Code 3:
<script type="text/javascript">
url = 'WEBSITE_URL';
bgcolor = '#ffffff';
skin = 'compact';
window = 'new';
</script>
<script src="http://www.addictionaire.com/tools/voteit.js" type="text/javascript"></script>
|
2 Marks
|
The bgcolor option can take any valid CSS color and is used only to change the background color
around the outer edge of the button. If omitted, the default color is white.
The window option can be set to 'new' if you wish any clicks to open in a new window,
as opposed to the default which is to open links in the same browser window.
The skin option controls the look at the button.
If specified as 'compact', then a smaller horizontal visual design is used that will fit better into a list of links.
|