Javascript Image Slider / Posts /

Multiple Licenses for the same slider?

204
Are you able to include multiple licenses on a single .js file?  I have multiple URL's of the same website and use Intuit to build the site.  If so, how would i do that?
Matt  9 years ago   viewed: 43221    

1 Answer

0
Yes you can add a piece of code just after the var sliderOptions block to handle the different domains. Below is a sample for four domains:
var sliderOptions = { ...... license: "license1" }; if(document.domain.indexOf("domain2.com")!=-1) sliderOptions.license = "license2"; else if (document.domain.indexOf("domain3.com")!=-1) sliderOptions.license = "license3"; else if (document.domain.indexOf("domain4.com")!=-1) sliderOptions.license = "license4"; var imageSlider=new mcImgSlider(sliderOptions); /* Menucool Javascript Image Slider ... (the follows are remain unchanged)
Milo
  9 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: