PDA

View Full Version : Fadeslideshow has issue with $(document).ready(function(){



jbielefeldt
09-20-2011, 03:34 PM
1) Script Title: fadeslideshow.js

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem:

I have jquery scripts in a js file that uses $(document).ready(function(){ at the beginning of the file. When I added the fadeslideshow.js to my web page the line causes an error. If I remove $(document).ready(function(){ in my script, that code does not work.

How can fadeslideshow.js and my js file that includes $(document).ready(function(){ work together?

azoomer
09-20-2011, 09:54 PM
you could change
$(document).ready(function()
to
jQuery(document).ready(function($)
an alternative is to remove
jQuery.noConflict()
from the fadeslideshow.js