<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: javascript conflict with dropdowns</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 19 Jun 2013 08:11:26 +0000</pubDate>

<item>
<title>alst on "javascript conflict with dropdowns"</title>
<link>http://themeshaper.com/forums/topic/javascript-conflict-with-dropdowns#post-4546</link>
<pubDate>Mon, 15 Jun 2009 03:10:56 +0000</pubDate>
<dc:creator>alst</dc:creator>
<guid isPermaLink="false">4546@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;thanks heaps, worked a charm.
&#60;/p&#62;</description>
</item>
<item>
<title>EricH on "javascript conflict with dropdowns"</title>
<link>http://themeshaper.com/forums/topic/javascript-conflict-with-dropdowns#post-4490</link>
<pubDate>Fri, 12 Jun 2009 05:21:02 +0000</pubDate>
<dc:creator>EricH</dc:creator>
<guid isPermaLink="false">4490@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;This has been discussed before, but&#60;br /&#62;
Try adding this above the $(document).ready(function() {&#60;/p&#62;
&#60;p&#62;jQuery.noConflict();&#60;/p&#62;
&#60;p&#62;and change your &#34;$&#34; to &#34;jQuery&#34;
&#60;/p&#62;</description>
</item>
<item>
<title>alst on "javascript conflict with dropdowns"</title>
<link>http://themeshaper.com/forums/topic/javascript-conflict-with-dropdowns#post-4488</link>
<pubDate>Fri, 12 Jun 2009 02:20:57 +0000</pubDate>
<dc:creator>alst</dc:creator>
<guid isPermaLink="false">4488@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi, have this code in my site which I call on the single.php page under content.&#60;br /&#62;
It puts an icon beside links in ie6...i know...i know...&#60;/p&#62;
&#60;p&#62;It needs jquery but isn't working with the version included with wordpress. When I call jquery 1.2.6 separately to make it work, it breaks the superfish dropdowns,&#60;/p&#62;
&#60;p&#62;any ideas:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$(document).ready(function() {
var fileTypes = {
  // extension: &#38;#39;image file&#38;#39;
  doc: &#38;#39;doc.gif&#38;#39;,
  xls: &#38;#39;xls.gif&#38;#39;,
  pdf: &#38;#39;http://xxx/wordpress/wp-content/themes/cdhb/images/icons/4/24x24/pdf_file.jpg&#38;#39;,
  ppt: &#38;#39;http://xxx/wordpress/wp-content/themes/cdhb/images/icons/5/24x24/ppt_file.jpg&#38;#39;
};

// then, loop over the object
// using jQuery&#38;#39;s $.each()
$.each(fileTypes, function(extension,image) {
  $(&#38;#39;a[href$=&#38;quot;&#38;#39; + extension + &#38;#39;&#38;quot;]&#38;#39;).
    css({
      paddingLeft: &#38;#39;30px&#38;#39;,
      paddingTop: &#38;#39;2px&#38;#39;,
      paddingRight: &#38;#39;2px&#38;#39;,
      background: &#38;#39;transparent url(&#38;quot;&#38;#39; + image + &#38;#39;&#38;quot;) no-repeat center left&#38;#39;
    });
});

});&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
