What is pspot?
pspot是一段js程序,通过嵌入到你的网页上,使访问者可以对你的网页图片上任意位置发表评论,这些评论被保存在google app engine,如果你没有更多的需求,那么简单的嵌入一个js就可以了。
如果你打算管理你网页上的留言,需要先
用google帐号登录,然后嵌入包含有你的ID的js文件。
这样你就可以在"Manage comments"中管理, 还可以订阅最新留言的feed。
贴在不同网页上的同一图片,将共享其留言(所谓同一图片,指src相同)。
另外,你在这里登录之后发布的留言,可以在"My comments"中管理。
Pspot is a javascript application which allows people to post comments anywhere on your photos. These comments are saved in Google App Engine. If you don't plan to delete them, just embed a js file and everything's ok.
If you want to manage the comments, you need to
log in with your Google account, and embed the js file with your ID.
The comments you posted after logged in here, can be managed in "my comments". You can also subscribe to the latest comments on your site.
The same picture (identified by its url) posted on different places will share the same comments.
code for your site
首先,把这段代码加在你网页上任何地方。
First, embed this code anywhere on your page.
(注意,任何人都不能管理这段代码下发布的留言。 建议你登录并使用只有你能够管理留言的代码。) (Notice: no one can manage the comments made by the code below, you'd better login and use your own code.
<script type='text/javascript'
src='http://pspot.appspot.com/getcmt.js'></script>
然后,给你的图片加上class="psp",像这样:
Then, add class="psp" to your photo, like this:
<img src='/static/s.jpg' alt='test img' class='psp'/>
现在点击图片右下角的发表按钮或者双击图片上任何地方即可发表评论。效果见
demo.
Now try to click the post button at right bottom corner of the photo, or just double-click anywhere.
Check the
demo.
Changelog
- 2009.8.1 Add feed for latest comments.
- 2009.3.15 Fixed quote in json bug.
- 2009.2.24 Fixed multi-line and XSS bug.
- 2009.2.23 Nothing changed today.
Contact
任何问题和建议,请联系
我 / damn.su [at] gmail.com
Any problems or suggestions, please contact
me / damn.su [at] gmail.com