By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,046 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,046 IT Pros & Developers. It's quick & easy.

JQuery document.ready

100+
P: 152
Hi to everyone,

I am new to Javascript and i am trying some cool stuff based on JQuery but i have a problem when i want to add more than one in one html page.

For example (following the instructions written in their sites) i add to index.html:
http://eyecon.ro/spacegallery/
and
http://www.ndesign-studio.com/blog/d...css-dock-menu/

but only the effect of the css-dock-menu is activated.

for the spacegallery i added this code to the body section:
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2.         $(document).ready(
  3.                     function(){
  4.                         $('#my_gallery').spacegallery( 
  5.                             {
  6.                                 loadingClass: 'loading'
  7.                             } 
  8.                         )
  9.                     }
  10.                 );
  11. </script>
I would appreciate any help.
Thanks for reading
May 20 '09 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
Can you get the space gallery working on its own?
May 20 '09 #2

100+
P: 152
yes both work on their own... (actually the space gallery works only in firefox for unknowsn reasons)... if you know how spacegallery correctly works then i would appreciate it!

however, regardless of spacegallery, i cannot make two scripts that require document.ready to activate in the same page...

(ps: if you know a link to a very very cool image gallery please let me know... i am trying different to make a personal photo album while learning web development)
May 20 '09 #3

acoder
Expert Mod 15k+
P: 16,027

Post your reply

Sign in to post your reply or Sign up for a free account.