2014年2月20日木曜日

Adobe MuseにjQueryプラグインを読み込む方法

How to add jQuery Slideshow to Adobe Muse and Business Catalyst website | jQuery Slider, WordPress Slideshow, jQuery Video Gallery

In Abode Muse, click menu Page -> Page Properties, then click Metadata tag, add the following codes to the HTML for <head> box. You need to replace “yourwebsite.com” with your own domain name.
Adobe Muse jQuery Slideshow
<script language="JavaScript">
  function insertToHead(src) {
    var head = document.getElementsByTagName("head")[0];
    var script = document.createElement('script');
    script.setAttribute('type', 'text/javascript');
    script.setAttribute('src', src);
    head.appendChild(script);
  };
  var jQueryLoaded = setInterval(function(){
    if (jQuery)
    {
      clearInterval(jQueryLoaded);
      insertToHead('http://yourwebsite.com/myslider/amazingslider.js');
    }
  }, 500);
  var AmazingSliderLoaded = setInterval(function(){
    if (jQuery.fn.amazingslider)
    {
      clearInterval(AmazingSliderLoaded);
      insertToHead('http://yourwebsite.com/myslider/initslider-1.js');
    }
  }, 500);
</script>

0 件のコメント:

コメントを投稿