background preloader

jQuery Before/After Plugin

jQuery Before/After Plugin
About a month ago I was reading the New York Times online and they had an article which showed a road in Brooklyn that had been reconstructed to make it safer and more pleasing to the eye. To show the difference in the reconstruction project, they showed a before and after picture using Flash that let the visitor drag a slider over the images, which were sandwiched with one on top of the other, so that you could easily see how dramatic the changes were. I immediately thought that this could be done in JavaScript using jQuery, so I set out to do it. Here’s the result: Pretty slick no? Download Go to the Before/After download page What’s So Great About this Plugin? Slick effect, no Flash neededIt’s just 7K (4K compressed)Reusable on multiple containersDegradable. How to Use First, your before and after images must be the same size. All images *MUST* have the width and height declared otherwise the plugin won’t work in Safari, Chrome, and any other webkit-based browsers. That’s it! Options Demos Related:  JavaScript

AutoSuggest: An AJAX auto-complete text field : CSS . XHTML . Javascript . DOM, Development : Brand Spanking New kk said Jeffrey Ropp said Nicely done. For some reason, my results dont appear within a scroll area? I copied most of your CSS and still can't get it to work. I've also found that my results aren't always qualified by the first character provided. Try an "S" first. Any thoughts would be appreciated! Thanks, Jeff Robert said Very interesting. peter said Hi, is it possible to submit the form after clicking on some of the results? Josh said I tried that, I can't seem to get it to respond right. in order for the dropdown to be clickable you must change the code above from: this.fld.addEventListener('blur',function () { pointer.clearSuggestions() },false); to this.fld.addEventListener('blur',function () { setTimeout(function () { pointer.clearSuggestions() }, 300) },false); I figured out how to make the autosuggest show on when focused and clear when the field loses focus. replace line 24: this.toID = setTimeout(function () { pointer.clearSuggestions() }, this.oP.timeout); with return element; } Enjoy

Tipped - The Javascript Tooltip Framework Tipped allows you to easily create beautiful tooltips using the jQuery Javascript library. Evolved from the popular Prototip library, Tipped takes tooltips to the next level by using HTML5 to give you full control over the look and feel of your tooltips. Canvas graphics The entire skin of the tooltip, from shadow to loading icon, is drawn using Canvas. Canvas based tooltips also have the advantage that they look great in every browser, even in IE6! Javascript API With the powerful API provided by Tipped it's possible to quickly create and control tooltips customized to your site, all it takes is a few lines of Javascript. And more... Check out the demonstrations below or head over to the documentation to discover more awesome features.

Photo-Interprétation avancée Les photo-montages et les contrefaçons d’images ne sont pas récents. Dès que l’image a servi un but politique ou commercial, s’est posé la question de l’existence et de l’autehnticité de la scène représentée. L’avènement du numérique n’a que peu changé de choses dans les buts poursuivis. En revanche, l’informatique de masse a diffusé tout à la fois les outils de création de retouches et contrefaçons ainsi que les vecteurs de diffusion de ces images aux contenus altérés. Nous proposons la première plateforme logicielle spécialisée dans l’assistance à la photo-interprétation avancée pour l’identification des images numériques altérées. TUNGSTENE intègre une palette de filtres et de fonctions d’analyse qui autorisent l’opérateur à entrer au plus profond de l’image et à y rechercher les incohérences et altérations qui se répartissent en deux grandes familles. TUNGSTENE doit être considéré comme une extension de la vision et de l’intuition de l’expert.

CSS3 before and after slider CSS play - Before and After Image Slider - NO javascript 10th October 2012 Firefox, Safari, Chrome and Opera [IE9 without animation and 'hold'] copyright © stu nicholls - CSS play Information A slider to show 'before' and 'after' images by sliding a pointer left and right Just hover the mouse over the left/right pointer circle and move it right and left to reveal/hide the 'after' image. Moving the mouse vertically off the left/right slider will stop the transition at its current position which will be held until you move the mouse back onto the left/right slider. Working in Firefox, Safari, Chrome and Opera. Copyright You may use this method on your personal 'non-profit' web site without seeking my permission. Commercial usage is also permitted without seeking approval, but I would ask that a donation is considered to support my work on CSSPlay.

[jQ]使用前後的重疊展示效果 | 男丁格爾's 脫殼玩 沒錯!只要 1,600 元就能獲得我們團隊完整的協助,讓效果能迅速的整合到您的網站,並保證瀏覽器的相容性。立刻申請! 各位應該會多會少有收到從朋友的 MSN 傳來不知名的網址,通常這類的網址點了都不是什麼好康的。不過梅干昨天傳了一個網頁過來,其中有個 Flash 的效果是用來展出使用前後的比對: 使用者可以透過滑鼠的移動來控制上層圖片的寬度,這樣的效果是不是像是某功能使用前跟使用後的比對呢? 首先到梅干的網站再 A 幾張圖,接著把 HTML 架構排好: 下一步就是利用 CSS 來排版,並使圖片所在的區塊能重疊: 完成 HTML 及 CSS 的設定之後,就能看出類似的畫面了: 通常筆者都是先把想要的效果畫面排好之後,再補上 jQuery 來使其能"動"起來: 這樣就能利用滑鼠的 x 座標來控制 .first 區塊的寬度囉: 不過這樣在移動時只能仔細的看滑鼠指針的位置,若要做到像原網頁一樣有個控制鈕的話,咱們得在 CSS 中新增: 接著程式中就把原本用來觸發 mousemove() 事件的 $block 改成 $control: 將將~多了個顯示用的控制鈕,是不是移動起來就更有 fu 了呢(圖片是梅干熱情提供的唷)! 啊~不過這圖片效果怎麼會讓我想到了"天蠶變"咧! 10 jQuery Transition Effects: Moving Elements with Style Whatever content you have to present, you can present them in a more interactive & more responsive ways. In this article we’d like to present 10 Brilliant techniques using some jQuery magic to grab the attention of your users with a simple, rich user experience that gets them excited about your website. 1. Fluid Navigation – How to create an informative menu-bar with jQuery & CSS Learn how to create a menu that appears like a standard menu bar in it’s default state, but which on rollover pulls down an information area that covers both the original menubar item and has an expanded section containing the text we want to display. 2. Roundabout is a jQuery plugin that converts a structure of static HTML elements into a highly customizable turntable-like interactive area. 3. A simple image slider using HTML/CSS/Javascript. 4. jQuery Quicksand Plugin With Quicksand you can reorder and filter items with a nice shuffling animation. 1. 5. jQuery Magic Line Sliding Style Navigation 6. 8. 9. 10.

Ajax (informatique) Un article de Wikipédia, l'encyclopédie libre. Pour les articles homonymes, voir Ajax. L'architecture informatique Ajax (acronyme d'Asynchronous JavaScript and XML) permet de construire des applications Web et des sites web dynamiques interactifs sur le poste client en se servant de différentes technologies ajoutées aux navigateurs web entre 1995 et 2005. Ajax combine JavaScript, les CSS, XML, le DOM et le XMLHttpRequest afin d'améliorer maniabilité et confort d'utilisation des Applications Internet Riches (abr. RIA)[1],[2] : DOM et JavaScript permettent de modifier l'information présentée dans le navigateur en respectant sa structure ;L'objet XMLHttpRequest sert au dialogue asynchrone avec le serveur Web ;XML structure les informations transmises entre serveur Web et navigateur. Outre le XML, les échanges de données entre client et serveur peuvent utiliser d'autres formats, tels que JSON. Dialogue entre serveur et navigateur L'interface de programmation Document Object Model (abr.

Comparez vos images avant après avec un slider jQuery jQuery Image Comparison est un plugin jQuery permettant de comparer 2 images en mode "avant - après" grâce à un slider CSS / JS. Que ce soit pour vos tutos photos ou pour montrer l'état d'un lieu avant et après une certaine date, ce plugin jQuery vous sera fort utile. Ce plugin est moderne, à la fois compatible mobile, responsive et prend en charge à partir d'Internet Explorer 9 en compatibilité navigateur. Simple à mettre en place, il vous suffit de créer la structure HTML suivante avec vos deux images: 01.<figure class="cd-image-container"> 02. 03. 05. 06. 07. 08. 10. 11. Vous pouvez ajouter une légende à vos images pour spécifier laquelle est celle avant et laquelle celle d'après.

***P*X*L*8*** [alterImg - a jQuery before and after image slider] This is my first jQuery plugin, and it comes after a 6 year absence from coding. I'm not sure if it's a true plugin - I'm really just hijacking the built-in jQuery slider functionality. It started out as an exercise during some downtime. I had seen plugins with this behavior, first on The Guardian's website and then on CatchMyFame.com. Being a fairly simple and lazy person, I thought there should be a simpler way of achieving the same effect. The plugin part that makes this work is only 4kb, so you're not adding a great load to what you're probably already using in your page. Here's the code you'll need to make this work: Put this in the head tags. You can download the script here: Minified: jquery.alterimg-1.0.min.js Non-minified:jquery.alterimg-1.0.js Put this in the body where you want the image slider to be. Add this code to initiate the slider.

管理者的印記 - 專案管理的生活思維 甚麼樣的工作經驗最令你難忘?你是否曾經歷過這樣的工作,即使已離開了崗位多年,回頭想起自己曾經付出過的熱血青春,不知不覺就自High了起來?當然,工作帶來的高薪給人滿足,同事間的情誼讓人溫暖(更不用說是辦公室戀情了!),但如果你問我這題,我會說「成就感」才是王道!OK,那甚麼是成就感? 我和Joe的公司裡,其實還有幾位比我們更資深的顧問(他們專業更強,但不像我跟Joe那麼會屁XD)。 不知道各位有沒有類似的經驗? 都江堰? 一般人心中,中國古代最偉大的工程是萬里長城,偉大主要是因為它的量體。 我認為做PM的都該記住李冰這個人,為什麼? 可以想像,在西元前256年的李冰在進行都江堰工程時就知道,一項工程成敗的關鍵,在於能否長久發揮它的功能。 治水六字訣的六個字是:「深淘灘,低作堰」。 「遇灣截角,逢正抽心」也是千年以來流傳後世的治水八字格言。 老僑在上篇「你想成為孔明還是趙括」談起了孔明靠妙計修理曹操,讓我想到三國演義另一段,孔明給劉備三個「錦囊妙計」,讓周渝「賠了夫人又折兵」的故事。 我家裡有位長輩,是位退休的公務員。 寫到這裡,我突然想起以前在美國工作時,公司會發給我們印上個人姓名的專屬便條紙,而且一發就是好幾本。 覺得這篇文章好嗎?

40 Useful jQuery Techniques and Plugins - Smashing Magazine Over the last year, Smashing Magazine has evolved. We’ve been publishing fewer lists and more in-depth articles about design and Web development. We have invited professionals and high-profile developers to write for us. We’ve been investing more resources in the quality and relevance of our articles. We’ve tried our best to fuel the growing appetite of our readers for more advanced articles, but recently we’ve been receiving more requests for carefully selected, useful round-ups. In this post, we present 40 useful but obscure jQuery plug-ins that will hopefully help you improve the user experience on your websites. TipTip jQuery PluginTipTip detects the edges of the browser window and will make sure the tooltip stays within the current window size. Contextual Slideout Tips With jQuery and CSS31A set of contextual slideout tips with jQuery and CSS3, which are ideal for product pages and online tours. jQuery MegaMenu Plugin8 Forms Link Slideshows and Galleries Link Layouts Link

Related:  JQueryDatavisucréer une appli