This site presents how to show the latest image on your site.
Probably you are wondering how it works?
This is how its done:
1) It takes RSS feed from site (looking for it in the root domain - /index.php?x=rss...) as document with needed data. Im using for it advAJAX lib (an advAJAX 2.0 RC2) oryginally written by Ćukasz Lach - http://anakin.us/
2) It parses RSS feed where are all the latest images and takes first from them (the newest one).
3) It looks within document for element with ID equel to:
showImageHereand puts there:
<img src="URLtoImage" border="0"/>
Now you are thinking "Coooooool but how to do the same at my Pixelpost???".
Solution is easy. All what you need is:
1) Copy this files to your site (click on it using right button of mouse and use option called "Save As"):
advajax.js lib.js2) Using FTP upload this files to some dir at your blog's web accout (i.e. to ftp://yourdomain.com/pixelpost_dir/latestphoto/)
<script type="text/javascript" src="pixelpost_dir/latestphoto/advajax.js"></script> <script type="text/javascript" src="pixelpost_dir/latestphoto/lib.js"></script>4) Remember to change paths to above files if you are using other then this which I gave here.
<div id="showImageHere"></div>
This is the result of working script: