Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- In Oxygen Builder, set the close button attribute name to 'onclick' and value to 'myFunction()' without the quotes.
- */
- function myFunction() {
- /* --------------- CLOSE SECTION WITHOUT FADE OUT -------------------*/
- var x = document.getElementById("section-86-2").style;
- x.display = "none";
- /* ---------------- CLOSE SECTION WITH FADE OUT -----------------------------
- var s = document.getElementById("section-86-2").style;
- s.opacity = 1;
- (function fade(){(s.opacity-=.1)<0?s.display="none":setTimeout(fade,40)})();
- */
- /* ----------------- SET COOKIES TO EXPIRE AT END OF BROWSER SESSION ----------------- */
- document.cookie = "section-advert=section-advert-1";
- /* --------------- SET COOKIES TO EXPIRE AFTER 1 DAY (replace 1 with any number of days) ----------------------
- document.cookie = "name-of-cokie=value-of-cookie; max-age=" + 1*24*60*60;
- (use any name and any value)
- */
- }
Add Comment
Please, Sign In to add comment