Hi
I am a Newbie to ASP.Net and NopCommerce and I am struggling to get some javascript working, I have used before galleryview to present changing images on a page.
Unfortunatly i do not seem to be able to get it to work in NopCommerce probably because I do not understand yet Ajax, ASP.Net and visual studio.
The code that goes in the head is
<script src="../Scripts/jquery-1.4.min.js" type="text/javascript"></script>
<script src="../Scripts/js/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="../Scripts/js/jquery-galleryview-1.1/jquery.galleryview-1.1.js" type="text/javascript"></script>
<script src="../Scripts/js/jquery-galleryview-1.1/jquery.timers-1.1.2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#photos').galleryView({
panel_width: 552,
panel_height: 207,
frame_width: 100,
frame_height: 30,
background_color: 'transparent',
border: 'none',
nav_theme: 'light',
easing: 'easeInOutQuad',
pause_on_hover: true
});
});
</script>
code that goes in the home page body
<div id="photos" class="galleryView">
<div class="panel"> <img alt="pic" src="http://localhost/images/thumbs/0000246_250.jpeg" /></div>
<div class="panel"> <img alt="pic" src="http://ocalhost/images/thumbs/0000245_250.jpeg" /></div>
<div class="panel"> <img alt="pic" src="http://ocalhost/images/thumbs/0000244_250.jpeg" /></div></div> <br />
<br />
So I have put the java bit in the rootmaster in the head section and the DIV's in the welcome message topic (this is where I think I am going wrong) but looking at the source when the page loads looks correct.
Anyway the images load but the java does not seem to be working, have searched the web and I am getting so confussed, do i put code in the code behind that creates the java bits or do I need to load the java from the code behind, do i need to do something in visualstudio express 2008.
I need some help please as I am so close to going live with this sit, but need this bit to work.
Many Thanks Andy