Simple Machines Community Forum

General Community => Scripting Help => Topic started by: AllMassive on June 04, 2014, 03:06:35 PM

Title: How to implement "Reset the Net" Splash Screen into 2.0.7 ?
Post by: AllMassive on June 04, 2014, 03:06:35 PM
Hi,
i want to integrate that script into my index.template.php:


<script type="text/javascript">
   window._idl = {};
   _idl.variant = "modal";
   _idl.campaign = "reset-the-net";
   (function() {
     var idl = document.createElement('script');
     idl.type = 'text/javascript';
     idl.async = true;
     idl.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'members.internetdefenseleague.org/include/?url= ' + (_idl.url || '') + '&campaign=' + (_idl.campaign || '') + '&variant=' + (_idl.variant || 'modal');
     document.getElementsByTagName('body')[0].appendChild(idl);
   })();
</script>


I got this script from http://resetthenet.tumblr.com/post/84330794665/the-reset-the-net-splash-screen

Title: Re: How to implement "Reset the Net" Splash Screen into 2.0.7 ?
Post by: kat on June 04, 2014, 04:32:39 PM
From that very page that you linked to...

QuoteAdd this script right before the </body> tag.