Here is a link preview mod that I re-wrote to work with STW and enhanced from there. I have left the original author's reference information intact, and the only requirement for you to use this is that you do the same.
To use the code, just download it and extract it.
Check out the latest sample codes and plugins on our plugins page:
ShrinkTheWeb Site Preview Plugins
The files will be in a folder called "stwpopup" and you will need to modify a few things before using it.
1. open up stwpopup.js
2. find the following:
http://www.shrinktheweb.com/xino.php?embed=1&stwu=&STWAccessKeyId=&Size=lg&stwUrl=
3. replace with your simple method URL. In other words, put your secret key after stwu= and then put your access key after STWAccessKeyId=
4. Now, just upload the folder into your root directory on your server.
5. Then, in your page where you want to show the preview bubble, you will need to put this before the < /head > tag:
<style type="text/css" media="screen">@import "/stwpopup/stwpopup.css";</style> <script type="text/javascript" src="/stwpopup/stwpopup.js"></script>
This link preview will show a popup with a thumbnail in it for any link in your page that uses a class="stwpopup" in it. For example:
<a href="http://www.shrinktheweb.com" class="stwpopup">STW</a>
That will show the popup bubble on mouseover. If you do not use that class, the link will not show the popup bubble.
That should be it. If you have any troubles, please PM or email me.
If anyone has a better preview, please do post it for others to share!
-Brandon
p.s. If you want to use the xlg thumbnails for previews, you will need to:
1. open up stwpopup.js
2. find the following:
http://www.shrinktheweb.com/xino.php?embed=1&stwu=&STWAccessKeyId=&Size=lg&stwUrl=
3. replace &Size=lg with &Size=xlg
4. rename stwpopup-xlg.css to stwpopup.css
5. rename lb-xlg.png to lb.png
6. rename rb-xlg.png to rb.png
7. rename lt-xlg.png to lt.png
8. rename rt-xlg.png to rt.png
9. Then, upload those files to your server
