jQuery Chaos Modal: A Simple yet extendable jQuery modal script built for use with inline HTML, forms, and images in mind

A Simple yet extendable jQuery modal script built for use with inline HTML, forms, and images in mind.

There are many other modal plugins out there. The goal of this project is to make one that is dead simple to use and implement, while still allowing for easy customization.

Features

  • Stand alone JS file. No additional CSS file required.
  • Window resize handling for better performance responsive websites.
  • Vertical scroll position retention to maintain the user’s position on the webpage.
  • On-the-fly modal HTML generation. No preprocessing loops before the page is shown to the user.
  • Content type handling:
    • Image tags
    • Links to images
    • Inline HTML
    • Inline HTML defined by element id
  • Iframe lazy loading for iframes in hidden modal content to improve page load.

Download: https://github.com/msigley/jquery-chaos-modal

Demonstration: https://github.com/msigley/jquery-chaos-modal/blob/master/README.md

Plugin homepage: https://github.com/msigley/jquery-chaos-modal

Implementation:

Options:

Screenshots:

How to Create Custom CSS, jQuery Autocomplete Plugin

Web developers often use autocomplete features in websites as a part of their work. Yet lot of good …

How to Make Sticky Sidebar Using jQuery and CSS

Sticky sidebar is an essential part of web development. Not in all cases but for some cases where ou…

Selectors, Animation, and AJAX – jQuery Tutorial And Examples

By now I’m sure you have grasped at least the basics and simplicity of the jQuery library. Now it’s …

s3Slider jQuery Plugin & Tutorial

The s3Slider jQuery plugin is made by example of jd`s smooth slide show script. Usage: HTML: Sample …

jQuery Optimization: Avoid Unnecessary Selector

Common subexpression elimination is a common way to optimize any programming code. Doing unnecessary…

Fading Links Using jQuery: dwFadingLinks

Earlier this month, we posted a MooTools script that faded links to and from a color during the mous…