I cant seem to be able set a background image with jQuery using css in web2py, I have been trying to create a background slide but all i am getting is white canvas! I dont know why this is happening!
<script> var images=new Array('images/fairytale.jpg','images/gamaila.jpg', 'images/gathuli.png'); var nextimage=0; doSlideshow(); function doSlideshow(){ if(nextimage>=images.length){nextimage=0;} $('.background') .css('background-image','url("'+images[nextimage++]+'")') .fadeIn(500,function(){ setTimeout(doSlideshow,1000); }); } </script> Even a simple script such as this one cant do it, i'm suspecting there is something wrong with way i'm calling the images, the path i'm giving, please help <script> $(document).ready(function(){ $(".background2").css("background", "url(' ../images/background.jpg ')"); }); </script> Regards; Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/75196d5a-ed8d-4035-8f2c-624caaa3e8dd%40googlegroups.com.