Free Pop-up / Overlay Script
I created a cool little script to help you create custom pop-up screens for your website.
For example: http://jpmalloy.com/popup.html
All you need to do is add the JavaScript at the bottom of your webpage's source code, before the closing </body> and create a div container like below. Also, don't forget the CSS. There is an ability to create new instances of popups via the JavaScript mode too. View the source code for the example at view-source:http://jpmalloy.com/popup.html
or download the JavaScript file here: http://jpmalloy.com/popup.js
Feel free to modify the script and use however you want, but leave credit intact. Thanks.
<div id="popup-container2" data-header="Example 2" data-style="background-color:lightblue;width:80%;margin-top:40px;z-index:2" style="display:none">
<div style="padding:0px 20px 20px 20px;">
content goes here
</div>
</div>
If I update the script, I will let you know here:
Script last updated 9/4/2020
Cleaned up the code and added a new override on the fly for the style sheet
Added new underlay option, can be set to on or off
I don't need any furniture or pest control. ;)
ReplyDelete