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…

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…

jQuery slideViewerPro: A “pro” jQuery image slider

slideViewerPro is a fully customizable jQuery image gallery engine which allows to create outstandin…

jQuery Optimization: Avoid Unnecessary Styling

This is another common mistake that many jQuery developer made. jQuery provides us with the ability …