December 29, 201015 yr Right. I should've asked this here first rather than get an immature response from (apparently) the most popular web design forum. hmmm. Anyhoo, what I have is a piece of javascript which rotates some addresses in a div on my pages. This works on all pages except for the main page which I am guessing is because of the flash rotator/lightbox which is only on that page. Example can be seen at My link Could anyone help me in solving this problem? Or pointing me in the right direction? TIA
December 29, 201015 yr I can't see your specific issue right now, probably because there's an error on all pages: "Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function." This happens here: $.noConflict(); $(function() { $(".newsticker-jcarousellite").jCarouselLite({ vertical: true, hoverPause: true, visible: 2, auto: 1000, speed: 1000 }); }); Do you really need the jQuery.noConflict()? If the dollar sign in the next line should refer to jQuery you must spell it out: jQuery(function(){...});
December 29, 201015 yr Author Apologies. It was something I was trying which I forgot to take out once I realised it did not work. Now taken out.
December 29, 201015 yr Give this a try <script type="text/javascript"> var $j = jQuery.noConflict(); $j(function() { $j(".newsticker-jcarousellite").jCarouselLite({ vertical: true, hoverPause: true, visible: 2, auto: 1000, speed: 1000 }); }); </script>
December 29, 201015 yr Mteams's answer should work. The problem is that script.aculo.us also defines a $ function.
December 29, 201015 yr Author Thank you mteam! That worked perfectly. In total awe now! It always amazes me how people can actually work this stuff out. I just sit there with a blank expression on my face wondering what the hell I've got myself into. heh. Thanks again!
Create an account or sign in to comment