jQueryプラグインを導入したら、GnaviD3でエラー。<br /><br />
根本的な解決策ではない対処法。<br />
jQueryプラグインは、トップページのみで利用していることが前提。<br /><br />
▼修正前(コード抜粋)
<pre class="brush: javascript; collapse: true; democode">
<script type="text/javascript">
$(document).ready(function(){
$('#gallery').gallery({
interval: 5500,
height: '340px',
width: '600px',
//barPosition: 'top'
ratio : '0.5',
thumbHeight: '90',
thumbWidth: '150',
//toggleBar: false
});
});
</script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/application.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/prettify.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/plugins/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/plugins/jquery.gallery.js"></script>
</pre>
<br />
<br />
▼修正後(コード抜粋)
<pre class="brush: javascript; collapse: true; democode">
<{if ($xoops_requesturi == '/index.php' or $xoops_requesturi == '/')}>
<script type="text/javascript">
jQuery(document).ready(function(){
$('#gallery').gallery({
interval: 5500,
height: '340px',
width: '600px',
//barPosition: 'top'
ratio : '0.5',
thumbHeight: '90',
thumbWidth: '150',
//toggleBar: false
});
});
</script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/application.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/prettify.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/plugins/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/plugins/jquery.gallery.js"></script>
<{/if}>
</pre>
根本的な解決策ではない対処法。<br />
jQueryプラグインは、トップページのみで利用していることが前提。<br /><br />
▼修正前(コード抜粋)
<pre class="brush: javascript; collapse: true; democode">
<script type="text/javascript">
$(document).ready(function(){
$('#gallery').gallery({
interval: 5500,
height: '340px',
width: '600px',
//barPosition: 'top'
ratio : '0.5',
thumbHeight: '90',
thumbWidth: '150',
//toggleBar: false
});
});
</script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/application.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/prettify.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/plugins/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/plugins/jquery.gallery.js"></script>
</pre>
<br />
<br />
▼修正後(コード抜粋)
<pre class="brush: javascript; collapse: true; democode">
<{if ($xoops_requesturi == '/index.php' or $xoops_requesturi == '/')}>
<script type="text/javascript">
jQuery(document).ready(function(){
$('#gallery').gallery({
interval: 5500,
height: '340px',
width: '600px',
//barPosition: 'top'
ratio : '0.5',
thumbHeight: '90',
thumbWidth: '150',
//toggleBar: false
});
});
</script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/application.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/prettify.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/plugins/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="<{$xoops_imageurl}>js/plugins/jquery.gallery.js"></script>
<{/if}>
</pre>