Smugmug is great, or at least really promising as an e-commerce site for photographers who want their work easily viewable with a lot of exposure. Smugmug also uses the YUI javascript library for it’s UI effects and functionality. I haven’t learned how to use or manipulate the YUI library yet, but I do know a bit of jQuery. So when my brother-in-law wanted to redesign his Smugmug site, I started to wonder. How the hell am I going to load the jQuery library in there, or will I have to teach myself YUI?? I don’t have the time to learn a new library and, as it turns out, jQuery has the functionality to sit side by side with YUI built right in!
The solution was pretty simple. First, you need to edit the “Head” of the site.
- Go to “tools>Go to my Control Panel” and click on “Site-wide Customization”.
- Within the “Head Tag” add these two lines:
<script src="http://ajax.googleapis.com/ ajax/libs/jquery/1.3.1/jquery.min.js" > </script> <script> var $j = jQuery.noConflict(); </script>
This code does two things.
- It gets the jQuery library from the Google API source (v. 1.3.1)
- It loads the library using noConflict() mode, enabling you to use the library with other libraries.
It’s that easy. Now whenever you are writing your jQuery code, remember to use $j() for your jQuery calls instead of $(). More on jQuery’s noConflict() can be found here.
Buy:Amoxicillin.Lipothin.Female Cialis.Wellbutrin SR.Buspar.Female Pink Viagra.Lipitor.Advair.Aricept.Prozac.Acomplia.Seroquel.Zocor.Nymphomax.Benicar.Lasix.Zetia.Ventolin.Cozaar.SleepWell….