- Convert an href into a modal window just by setting its class=”submodal”. Now you can do
<a href="foo.html" class="submodal">foo</a>
and when you click the link the contents will show up in a modal window. Previously submodal required specifying onclick functions and duplicating the target URL.
- You no longer need to put special div containers in each individual page, subModal.js now adds them to the DOM for you.
- I fixed a bug in Opera where one of the subModal functions that gets triggered on page load was called infintely.
- Safari active scrollbar fix suggested by Thomas Risberg in a comment on this post.
Here is the file with my changes: subModal.zip.