Random Christmas Decoration

View previous topic View next topic Go down

Random Christmas Decoration

Post by Guest on 1/22/2015, 4:13 pm


Guest
Guest


JS placement in 'All the Pages'.

Code:
/*** Random XMAS Decorations. December 2014. By Ange Tuteur and Samantha Melissa S.
**** on http://www.avacweb.com and http://www.forumotion.com. No support and usage at
**** your own risk. Distribute and modify freely. Please leave this notice in tact.
***/

$(function() {
          var l=rand(6),r=rand(6),s=rand(3);
         
          // left decos
          if (l==0) $.getScript("http://sd-1.archive-host.com/membres/up/37821634957680146/deco/bn22.js");
          if (l==1) $.getScript("http://sd-1.archive-host.com/membres/up/37821634957680146/deco/botte22.js");
          if (l==2) $.getScript("http://sd-1.archive-host.com/membres/up/37821634957680146/deco/boule22.js");
          if (l==3) $.getScript("http://sd-1.archive-host.com/membres/up/132720629421430912/FDF/Decoration/Noel/eff2.js");
          if (l==4) $.getScript("http://sd-1.archive-host.com/membres/up/132720629421430912/FDF/Decoration/Noel/eff3.js");
          if (l==5) $.getScript("http://sd-1.archive-host.com/membres/up/132720629421430912/FDF/Decoration/Noel/eff4.js");
         
          // right decos
          if (r==0) $.getScript("http://sd-1.archive-host.com/membres/up/37821634957680146/deco/bn22R.js");
          if (r==1) $.getScript("http://sd-1.archive-host.com/membres/up/37821634957680146/deco/botte22R.js");
          if (r==2) $.getScript("http://sd-1.archive-host.com/membres/up/132720629421430912/FDF/Decoration/Noel/boule23.js");
          if (r==3) $.getScript("http://sd-1.archive-host.com/membres/up/132720629421430912/FDF/Decoration/Noel/feu_artifice_droite.js");
          if (r==4) $.getScript("http://sd-1.archive-host.com/membres/up/132720629421430912/FDF/Decoration/Noel/etoilefilantedroite.js");
          if (r==5) $.getScript("http://sd-1.archive-host.com/membres/up/132720629421430912/FDF/Decoration/Noel/etoilesdroite.js");
           
          // snow
          if (s==0) $.getScript("http://illiweb.com/rsc/10/frm/snow.js");
          function rand(n) { return Math.floor( Math.random() * n ) };
        });

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum