PDA

View Full Version : rssPit RSS subscription box



trof
09-01-2010, 07:49 PM
1) CODE TITLE: rssPit RSS subscription box

2) AUTHOR NAME: Alexey Trofimov

3) DESCRIPTION: rssPit.com RSS subscription box for your RSS feeds.

4) URL TO CODE: http://rssPit.com

Instructions:
1. Add this code immediately before the closing </head> tag:
<script type="text/javascript" src="http://rsspit.com/rsspit.js"></script>
2.1. Insert class="rsspit" into your RSS link tags.
or
2.2. Add hash (aka "fragment identifier") #rsspit to the link URLs instead.
or
2.3. Call via JavaScript the rssPit.processLink(oElement), where oElement is the RSS link id or object.

that's it! :) Although, also see Javascript API at http://rssPit.com

bluewalrus
09-01-2010, 07:56 PM
JS limits class names to 1? I thought you could have any amount of class name within an elements class attribute.

trof
09-01-2010, 08:32 PM
JS limits class names to 1? I thought you could have any amount of class name within an elements class attribute.

You are right - technically you can use several names in the class (in fact this script does it too) . This part of the instructions must be rewritten.
Done.
Thanks! :)

trof
09-14-2010, 06:41 PM
API description (http://rsspit.com/) added:
rssPit.processLink(oElement)
rssPit.setShowDelay(iMSeconds)
rssPit.setHideDelay(iMSeconds)
rssPit.parsePage()
rssPit.setLanguage(strLang)
rssPit.showBox(strRssUrl,X,Y)
rssPit.showBoxModal(strRssUrl)

Suggestions are welcome ;)