While the declaration of how a script must be wrapped in a jQuery function - (function($) { stuffHere })(jQuery); - holds true for Drupal 7, the proper way to include a script in a theme is definitely to use the theme&#39;s info file. Personally, one of the first things I do when writing a theme is to make a script.js that holds all of my custom one-off scripts (such as show/hide functionality). This method is not limited to including custom scripts; I also use this to include jQuery plugins that don&#39;t currently have Drupal equivalents.<br>

<br>Jake Roufa<br>208.557.9390<br><div><a href="http://about.me/jacobroufa" target="_blank">about.me/jacobroufa</a></div><br>
<br><br><div class="gmail_quote">On Fri, Mar 16, 2012 at 8:35 PM, Anthony <span dir="ltr">&lt;<a href="mailto:tony@tony-mac.com">tony@tony-mac.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

That&#39;s sort of what I figured would be the way to do it. <br>I found this page <a href="http://renaudjoubert.com/en/article/how-add-javascript-drupal-7-jquery" target="_blank">http://renaudjoubert.com/en/article/how-add-javascript-drupal-7-jquery</a>   I was rather confused by this text  (partial quote) <i><b>&quot;In the present case, the next best way - a proper way - is to embed the 
script directly into the Article template of the theme. In doing so, the
 script will be available for all nodes created with the Article content
 type. Now, that&#39;s even better. So how do we do this?&quot; </b></i><br><br>I thought that sounds rather cumbersome. <br><br>That&#39;s when I thought I must ask. <br>Tony<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">

On Fri, Mar 16, 2012 at 5:11 PM, Jacob Roufa <span dir="ltr">&lt;<a href="mailto:jacob.roufa@gmail.com" target="_blank">jacob.roufa@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In your theme&#39;s info file, put the location/name of your custom .js below any other scripts. Clear your theme cache and it should take effect.<br>


<br><a href="http://drupal.org/node/171205#scripts" target="_blank">http://drupal.org/node/171205#scripts</a><br>

<br>Everything else about a theme&#39;s info file, such as adding more stylesheets or various other features, is also on this page.<br><br clear="all">Jake Roufa<br><a href="tel:208.557.9390" value="+12085579390" target="_blank">208.557.9390</a><br>


<div><a href="http://about.me/jacobroufa" target="_blank">about.me/jacobroufa</a></div>

<br>
<br><br><div class="gmail_quote"><div><div>On Fri, Mar 16, 2012 at 6:03 PM, Anthony <span dir="ltr">&lt;<a href="mailto:tony@tony-mac.com" target="_blank">tony@tony-mac.com</a>&gt;</span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>

<span> before I start searching away. How to best use JS in Omega? How 
to integrate some JQuery in Drupal 7 and Omega? Is there an article that
 quickly comes to mind. Thanks for any tips.<br>Tony<span><font color="#888888"><br clear="all"></font></span></span><span><font color="#888888"><br>-- <br><p><b style="font-size:13px;font-family:&#39;Lucida Handwriting&#39;,cursive"><i>Anthony Stefan Maciejowski</i></b></p>





<p></p><p><b><font color="#333399" face="Arial"><span style="font-size:10pt">tony maciejowski</span></font></b><b><font face="Arial"><span style="font-size:10pt"> <font color="black">|</font> <font color="#d1a73d">analyst/programmer </font> <font color="black">|</font> <font color="#00cc00">websites</font> <font color="black">|</font><font color="#FF0000"> <a href="mailto:t_maciejowski@hotmail.com" target="_blank"><font style="background-color:rgb(255,255,0)" color="#FF0000">www.tony-mac.com</font></a></font></span></font></b></p>





<p><font color="black" face="Arial"><span style="font-size:10pt"><b>Twitter: anntosh</b> | <b>Cell: <a href="tel:323.899.6206" value="+13238996206" target="_blank">323.899.6206</a></b> | <b>Linked-In:</b> <b>Anthony Maciejowski</b> </span></font></p>




<p><font color="black" face="Arial"><span style="font-size:10pt"> </span></font>“Hope is not the conviction that something will turn out well, but the 
certainty that something makes sense, regardless of how it turns out.”</p><p>--- Vaclav Havel<br></p><p></p><br>
</font></span><br></div></div><span><font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></font></span></blockquote></div><br>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br><p><b style="font-size:13px;font-family:&#39;Lucida Handwriting&#39;,cursive"><i>Anthony Stefan Maciejowski</i></b></p>


<p></p><p><b><font color="#333399" face="Arial"><span style="font-size:10pt">tony maciejowski</span></font></b><b><font face="Arial"><span style="font-size:10pt"> <font color="black">|</font> <font color="#d1a73d">analyst/programmer </font> <font color="black">|</font> <font color="#00cc00">websites</font> <font color="black">|</font><font color="#FF0000"> <a href="mailto:t_maciejowski@hotmail.com" target="_blank"><font style="background-color:rgb(255,255,0)" color="#FF0000">www.tony-mac.com</font></a></font></span></font></b></p>


<p><font color="black" face="Arial"><span style="font-size:10pt"><b>Twitter: anntosh</b> | <b>Cell: <a href="tel:323.899.6206" value="+13238996206" target="_blank">323.899.6206</a></b> | <b>Linked-In:</b> <b>Anthony Maciejowski</b> </span></font></p>

<p><font color="black" face="Arial"><span style="font-size:10pt"> </span></font>“Hope is not the conviction that something will turn out well, but the 
certainty that something makes sense, regardless of how it turns out.”</p><p>--- Vaclav Havel<br></p><p></p><br>
</div></div><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>