Ajax Updates |
- Simple JS
- Bookmark Script Us for Your Website using Javascript
- Wrap Content Around Images: jQSlickWrap
- Beautiful And Free Ajax Poll Script
| Posted: 21 Dec 2009 10:48 AM PST SimpleJS is a simple and light javascript library which proposes functions ready to use to make the the exploitation of ajax easier. First developed for the beginners and the small projects, SimpleJS is a free library which can’t be compared with Prototype or other professional framework. SimpleJS size 5ko and does not require any external framework. The functions are simplified as much as possible. SimpleJS has been tested on IE6, IE7( beta), Firefox 2.0 and Opera 9.02. The current version of SimpleJS is 0.02.beta The Ajax functions included in SimpleJS are based on SACK of Gregory Wild-Smith To use SimpleJS you only have to insert the file simple.js to your page with this piece of script: <script type="text/javascript" src="simple.js"></script> Functions: SimpleJS is a javascript library simple and light proposing functions ready with the use to facilitate the exploitation of ajax. New Version: 0.1 beta simple.js : simpleJs base library (5ko) ![]() Related Listings:
|
| Bookmark Script Us for Your Website using Javascript Posted: 21 Dec 2009 09:03 AM PST For your website to have traffic, people should remember your site and visit again. This problem was solved long time ago with browser’s Bookmarks. Still, people are lazy and usually are not using it, unless you remind them. So a Bookmark us script on your site is very useful. I will show you how you can easily create such a script for your site. The next script is compatible with the major browsers and easy to implement. Let us begin! Place the following script into your < head >section in the page you need to use it: <script type="text/javascript"> function bookmark_us(url, title){ if (window.sidebar) // firefox window.sidebar.addPanel(title, url, ""); else if(window.opera && window.print){ // opera var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } else if(document.all)// ie window.external.AddFavorite(url, title); } </script> Next, place the following code in order to show the link that opens browser’s bookmark window: <a href="javascript:bookmark_us('http://www.mobidhoom.com','Free Mobile Games, Themes, Ringtones, SMS')">Bookmark us!</a> That is all! You have now a full working bookmark us script. Of course, you will have to replace the link and title with your own. Also, instead of a text (in this case “Bookmark us!”) you can use a picture or any other text you want. <a href="javascript:bookmark_us('http://www.reconn.us','You\'ll find here lots of free resources!')">Bookmark us!</a> Enjoy..! ![]() Related Listings:
|
| Wrap Content Around Images: jQSlickWrap Posted: 21 Dec 2009 03:06 AM PST If you’ve ever felt the need to wrap stuff around an irregularly-shaped image using CSS’s float, you may have been somewhat disappointed to find out that it’s forced to wrap around the image’s bounding box, rather than the actual contents of the image. * Client-side, Sliced and Diced Sandbags using HTML 5’s new What browsers does it work on? jQSlickWrap requires that your browser support HTML 5’s element, and in particular it needs to have support for the toDataURL() function on canvases (meaning it won’t work with excanvas, for now). jQSlickWrap is known to work on the following browsers: * Mozilla Firefox 3.5+ If you happen to know that it works on additional browsers, let me know on twitter. Not interested in the nitty gritty low down on how jQSlickWrap works its “magic”? Skip ahead to the examples. As stated in the features list above, jQSlickWrap implements a client-side version of the Sliced and Diced Sandbags method of wrapping text around an irregularly-shaped object (all bundled in a nice tidy jQuery plugin, of course). To do this, it needs to have access to the individual pixels of the images it’s operating on — which is why for jQSlickWrap to work, you need to have a browser that supports HTML 5’s new element. 1. If necessary, pre-load the image. <html> <head> <title>jQSlickWrap Demo 1</title> <script src="./jquery-1.3.2.min.js" type="text/javascript"></script> <script src="./jquery.slickwrap.js" type="text/javascript"></script> <style type="text/css"> .wrapReady { float: left; } </style> <script type="text/javascript" charset="UTF-8"> $(document).ready(function(){ $('.wrapReady').slickWrap(); }); </script> </head> <body> <img src="./myImage.jpg" class="wrapReady" /> <p>Lots of text goes here..</p> </body> </html> Note: the images selected by the query should have some sort of float styling applied to them. Either float: right or float: left SlickWrapping With Style <html> <head> <title>jQSlickWrap Demo 2</title> <script src="./jquery-1.3.2.min.js" type="text/javascript"></script> <script src="./jquery.slickwrap.js" type="text/javascript"></script> <style type="text/css"> .wrapReady { float: left; padding: 30px; } </style> <script type="text/javascript" charset="UTF-8"> $(document).ready(function(){ $('.wrapReady').slickWrap(); }); </script> </head> <body> <img src="./myImage.jpg" class="wrapReady" /> <p>Lots of text goes here..</p> </body> </html> Specifying Settings 1. bgColor – The background color to use when examining the contents of the images resulting from a query. If no value is given, jQSlickWrap will try to determine the background color of the image from the image’s top-left pixel. <html> <head> <title>jQSlickWrap Demo 3</title> <script src="./jquery-1.3.2.min.js" type="text/javascript"></script> <script src="./jquery.slickwrap.js" type="text/javascript"></script> <style type="text/css"> .wrapReady { float: left; padding: 30px; } </style> <script type="text/javascript" charset="UTF-8"> $(document).ready(function(){ $('.wrapReady').slickWrap({ bgColor: { // use red as the background color r: 255, g: 0, b: 0, a: 255 }, cutoff: 10, // let there be a tolerance of 10 resolution: 15, // create s of height 15 bloomPadding: false // let's not use bloom }); }); </script> </head> <body> <img src="./myImage.jpg" class="wrapReady" /> <p>Lots of text goes here..</p> </body> </html> Demo: http://jwf.us/projects/jQSlickWrap/example3.html ![]() Related Listings:
|
| Beautiful And Free Ajax Poll Script Posted: 21 Dec 2009 02:58 AM PST Dracon Ajax Poll is a free PHP-MySQL-Ajax poll script which is simply beautiful. The script is totally skinnable, has multi-language support & can also use XML as the data source rather than MySQL. It records the IPs used in order to prevent repeated-votes as a security measure. It is possible to add unlimited polls & unlimited options to any poll, edit & delete them. ![]() Related Listings:
|
| You are subscribed to email updates from Ajax Updates To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
| Google Inc., 20 West Kinzie, Chicago IL USA 60610 | |




0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.