$(document).ready(function(){
$('#slider-comingsoon').bxSlider({
mode: 'fade',
pagerCustom: '#slider-comingsoon-pager',
nextSelector: '#slider-comingsoon-next',
nextText: '<img src="../images/box-rightarrow-hd.png" height="34px" width="27px" onmouseover="this.src='../images/box-rightarrow-hd-rollover.png';" onmouseout="this.src='../images/box-rightarrow-hd.png';" />'
});
});
Как правильно выполнить следующую строку, чтобы она работала?
nextText: '<img src="../images/box-rightarrow-hd.png" height="34px" width="27px" onmouseover="this.src='../images/box-rightarrow-hd-rollover.png';" onmouseout="this.src='../images/box-rightarrow-hd.png';" />'
Используйте \'
вместо '
nextText: '<img src="../images/box-rightarrow-hd.png" height="34px" width="27px" onmouseover="this.src=\'../images/box-rightarrow-hd-rollover.png\';" onmouseout="this.src=\'../images/box-rightarrow-hd.png\';" />'