Put this code into html where you want to see the widget:
<div id="petitionSpotWidget">
<h1>PetitionSpot Widget</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<script type="text/javascript" src="http://widgets.petitionspot.com/widget.js"></script>
<script type="text/javascript">
swfobject.embedSWF("http://widgets.petitionspot.com/widget.swf", "petitionSpotWidget", "400", "350", "9.0.0", "expressInstall.swf", {datafile:"http://www.petitionspot.com/rss.xml?id=26913"}, {wmode: "transparent"});
</script>
You should use real URL for files (instead of
http://dev.faceyspacey.com/flash-widgets/petitionWidget/) and necessary sizes for widget (instead of
400(min.300) and
350(min.250)).
Widget parses special xml file with all information. Sample file you can
see here. Use unique file for each user.
Put this code into html where you want to see the widget:
<div id="divWildfirePost"></div>
<script src="http://widgets.petitionspot.com/gigyaConfig.js"></script>
<script src="http://cdn.gigya.com/wildfire/js/wfapiv2.js"></script>
<script>
pconf = generateGigyaConfig("http://widgets.petitionspot.com/widget.swf", "http://www.petitionspot.com/rss.xml?id=26913", "http://bookmark.com", 400, 350);
Wildfire.initPost('344531', 'divWildfirePost', '300', '200', pconf);
</script>
You should set correct urls and sizes.