Solved, the accordion script has a few $ used in it.
By using the jQuery.noConflict function everything now works happely ever after :) On Jul 1, 3:16 am, ChrisQuery <[EMAIL PROTECTED]> wrote: > hi, > > im new to jQuery and to programming in general so i hope this isnt a > stupid question. > > A have an accordion which is animated to open and close when a user > clicks a header div. The accordion holds a decent amount of content > which takes some time load in ie (and only ie for some reason) before > the javascript takes effect and closes the accordion to hide all the > data inside them. > > Using the $(document).ready(function() I was able to have the page > load with the accordion closed (content hidden but headers visible). I > was very pleased with that. > > Im now trying to have an animated gif load in when the dom is ready > and swap the gif for the accordion div once the page loads > completely. To accomplish this Im trying to use $ > (document).ready(function() to show the gif and hide the accordion div > and then use window.onload to hide the gif and show the accordion div > as well as create the new instance of my accordion passing through > some parameters. The css manipulation works fine its the accordions > functionality that stops working and loads open for all the content to > be seen. > > <script type="text/javascript" src="scripts/js/accordian-src.js"></ > script> > <script type="text/javascript" src="scripts/js/jquery-1.2.6.min.js"></ > script> > > <script> > $(document).ready(function(){ > > $('div#basic-accordian').hide(); /* show gif */ > $('div#load').show(); /* hide accordion */ > > }); > > window.onload = function(){ > > $('div#load').hide(); /* hide gif */ > $('div#basic-accordian').show('slow'); /* show accordion */ > > new Accordian('basic-accordian',5,'header_highlight'); /* supposed to > activate the accordion */ > > } > > </script> > > Anyone have any idea why the accordion stops working? > > if i remove all the jquery code and js file the window.onload loads > the accordion correctly after the page loads. Once the jQuery code and > js file are put back in the accordion stops working. > > Could it be a clash in code or am i just structuring it incorrectly or > missing something? > > if i haven't provided enough information i can provide more. > > Hope someone can help > this is driving me crazy > chris