これは、jquery関数でphpスクリプトを使用する正しい方法ですか?pathToTabImage変数
<script type="text/javascript">
$(function(){
$('.slide-out-div').tabSlideOut({
tabHandle: '.handle', //class of the element that will become your tab
pathToTabImage: '<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/ack.jpg';, //path to the image for the tab //Optionally can be set using css
alert(pathToTabImage);
imageHeight: '122px', //height of tab image //Optionally can be set using css
imageWidth: '125px', //width of tab image //Optionally can be set using css
tabLocation: 'right', //side of screen where tab lives, top, right, bottom, or left
speed: 600, //speed of animation
action: 'click', //options: 'click' or 'hover', action to trigger animation
topPos: '600px', //position from the top/ use if tabLocation is left or right
leftPos: '550px', //position from left/ use if tabLocation is bottom or top
fixedPosition: false //options: true makes it stick(fixed position) on scroll
});
});