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:

Creating a JavaScript Library

I recently wrote a JavaScript library for creating random colors and color schemes, and while I foun…

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…

jQuery Flash Plugin

This jQuery plugin is for embedding Flash movies. Pages are progressively enhanced when Flash and Ja…

jQuery Optimization: Optimize Selector

We can also optimize our selector other than being a bit specific on our selector. The key to optimi…

jQuery drop down menu: droppy

Quick and dirty nested drop-down menu in the jQuery style. I needed a nav like this for a recent pro…