Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with simple JQuery Plugin issue news ticker

Status
Not open for further replies.

GOSCO

Technical User
Sep 26, 2000
134
GB
Hi there, I have what I think will probably be a simple issue. I have installed a news ticker for a website I am designing.

I follow the instructions and have this in my html file

Code:
<script>
	$(window).load(function(e) {
        $("#bn1").breakingNews({
			effect		:"slide-h",
			autoplay	:true,
			timer		:3000,
			color		:"red"
		});
		
    });
 </script>

But the console gives me the following errors:

breakingNews.js:5 Uncaught TypeError: Cannot read property 'fn' of undefined
>(anonymous function) @ breakingNews.js:5
>(anonymous function) @ breakingNews.js:218

Code:
Line 5:
$.fn.breakingNews = function(params){

Code:
Line 218:
})(jQuery);

index.php:640 Uncaught TypeError: $ is not a function
>(anonymous function) @ index.php:640

Code:
Line 640:
$(window).load(function(e) {

I guess this is an issue with a Jquery conflict. Can anybody offer some assistance? Hopefully I have provided enough information!

Andy

 
Can we see this in relation to the JQuery framework include and the plugin.

Also have a look here :

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top