時失去跟蹤的圖像文件夾的這是我和它的工作原理:MVC局部視圖使用jQuery
$(function(){
$('.slide-out-div').tabSlideOut({
tabHandle: '.handle', //class of the element that will become your tab
pathToTabImage: 'http://mhmiisdev2/images/contact_tab.gif', //path to the image for the tab //Optionally can be set using css
imageHeight: '122px', //height of tab image //Optionally can be set using css
imageWidth: '40px', //width of tab image //Optionally can be set using css
tabLocation: 'right', //side of screen where tab lives, top, right, bottom, or left
speed: 300, //speed of animation
action: 'click', //options: 'click' or 'hover', action to trigger animation
topPos: '200px', //position from the top/ use if tabLocation is left or right
leftPos: '20px', //position from left/ use if tabLocation is bottom or top
fixedPosition: true //options: true makes it stick(fixed position) on scroll
});
});
這就是我想要的東西,當我從一個控制器切換到另一個控制器,它不工作。請注意圖片的路徑不是絕對
$(function(){
$('.slide-out-div').tabSlideOut({
tabHandle: '.handle', //class of the element that will become your tab
pathToTabImage: '/images/contact_tab.gif', //path to the image for the tab //Optionally can be set using css
imageHeight: '122px', //height of tab image //Optionally can be set using css
imageWidth: '40px', //width of tab image //Optionally can be set using css
tabLocation: 'right', //side of screen where tab lives, top, right, bottom, or left
speed: 300, //speed of animation
action: 'click', //options: 'click' or 'hover', action to trigger animation
topPos: '200px', //position from the top/ use if tabLocation is left or right
leftPos: '20px', //position from left/ use if tabLocation is bottom or top
fixedPosition: true //options: true makes it stick(fixed position) on scroll
});
});
的HTML完整性....
<div class="slide-out-div">
<a class="handle" href="http://link-for-non-js-users.html">Content</a>
<h3>Medical Variance Reports</h3>
<div>
<ul>
<li><a href="http://mhmssrs2/Reports/Pages/Report.aspx?" target="_blank">Individual Medicines</a></li>
</ul>
</div>
</div>
我懷疑某種程度上pathToTabImage: /images/contact_tab.gif'
瀏覽throught控制器時,失去了它的背景。瀏覽throught控制器時/images/contact_tab.gif」失去它 方面:幫助我理解......
是否有一個jQuery相當於MVC到@urlcontent? – hidden 2012-03-19 23:17:01
你的圖像在哪裏搜索?在控制檯或「資源」頁面中,您應該可以看到圖像已被搜索的位置。 – 2012-03-19 23:22:31