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.
Comments
Post a Comment