Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Are you a developer? Do you make IMVU layouts? Are you someone who wants an easy way to generate clickable product icons? Well look no further! I have made a bookmarklet that will let you do just that!
- Description
- ---------------------
- A bookmarklet is a bookmark stored in a web browser that contains JavaScript commands to extend the browser's functionality. For instance, a bookmarklet might allow the user to select text on a page, click the bookmarklet, and be presented with a search engine results page for the search term selected.
- Installation
- ---------------------
- Installation of a bookmarklet is performed by creating a new bookmark, and pasting the code into the URL destination field. Alternatively, if the bookmarklet is presented as a link, under some browsers it can be dragged and dropped onto the bookmark bar. The bookmarklet can then be run by loading the bookmark normally.
- HTML Bookmarklet
- ---------------------
- This bookmarklet will generate HTML code for a clickable product icon that takes you to the product page for using in layouts or other websites.
- javascript: (function generateHTMLCode() {
- /*Get the product page url*/
- var strURL = document.URL;
- if(strURL != "" && strURL.indexOf("http://www.imvu.com/shop/product.php?products_id=") != -1) {
- /*Get the product icon url*/
- var strIMGURL = document.getElementById("product-image").src;
- /*Generate the BBCode and alert it to the user for copying*/
- window.prompt ("HTML Code:","<a href='" + strURL + "' target='_blank'><img src='" + strIMGURL + "'/></a>");
- }
- })();
- BBCode Bookmarklet
- ---------------------
- This bookmarklet will generate BBCode for a clickable product icon that takes you to the product page for posting on forums like ours and IMVU.
- javascript: (function generateBBCode() {
- /*Get the product page url*/
- var strURL = document.URL;
- if(strURL != "" && strURL.indexOf("http://www.imvu.com/shop/product.php?products_id=") != -1) {
- /*Get the product icon url*/
- var strIMGURL = document.getElementById("product-image").src;
- /*Generate the BBCode and alert it to the user for copying*/
- window.prompt ("BBCode:","[url=" + strURL + "][img]" + strIMGURL +"[/img][/url]");
- }
- })();
- For more free IMVU stuff, check out these sites:
- ------------------------------------------------
- http://tim-dm.deviantart.com
- http://imvufiles.tumblr.com/
- http://www.imvumafias.org/community/viewtopic.php?f=33&t=8932
- http://www.imvumafias.org/community/buysell/
- http://pastebin.com/iWH07Fbe
- http://www.imvumafias.org/community/tutorials/
- http://www.imvumafias.org/community/clubs.php?mode_clubs=info&cid=11
- Keywords
- ---------
- imvu, imvu icon, imvu code, javascript, script, imvu script, imvu tool, bookmarklet, imvumafias, gray market, imvu developer, dev, developing, developer, creating, creator
Advertisement
Add Comment
Please, Sign In to add comment