How to use jquery Backstretch in asp.net mvc -


how use backstretch in asp.net mvc. included script files in view page after when run program image not shown in browser.

here code:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="~/scripts/jquery.backstretch.min.js"></script>  <script> $.backstretch([ "images/img1.jpg",                 "images/img2.jpg],                 {                    fade:750,                    duration:10000                 }); </script> 

it syntax error. don't have closing quotation mark img2.jpg. should be

$.backstretch([ "images/img1.jpg",                 "images/img2.jpg"],                 {                    fade:750,                    duration:10000                 }); 

make use of developer tools in browser (example: in google chrome f12 take dev tools) identify javascript errors. switch console tab see errors. , can click on link on right hand side locate error.

enter image description here


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -