- This topic has 13 replies, 4 voices, and was last updated 13 years, 7 months ago by imported_Ryan.
-
AuthorPosts
-
May 16, 2008 at 8:29 pm #210isign4jcMember
Hi,
I’m using the dropdown menu for my site below. It’s working great everywhere else, but not in IE6. The dropdowns aren’t dropping down.
http://65.109.163.39/wp/index.php
Thanks!
EddieMay 16, 2008 at 8:42 pm #2928imported_RyanMemberHi isign4jc,
You need to add the suckerfish_ie.js script to your page for the menu to work in IE6 or lower:
<!–[if lte IE 6]>
<script type=â€[code]<!–[if lte IE 6]>
<script type=â€May 16, 2008 at 9:11 pm #2929isign4jcMemberI added the code you posted to the head section of my page using an absolute path to the javascript, but it still doesn’t work. Am I missing something else?
May 17, 2008 at 1:52 am #2930imported_RyanMemberI didn’t realise you were using the dropdown menu plugin. Is there some reason you aren’t using wp_head in your theme? If the plugin is activated it will automatically add the javascript to your head along with the necessary style sheet information.
You have wrapped the suckerfish() function in a UL tag. remove that and may be the problem will be fixed.
[code:wtkh840a]
<ul id="nav">
<!– Suckerfish WordPress Plugin by Ryan Hellyer ... http://ryanhellyer.net/ –>
<ul id="suckerfishnav"><li>.... [/code:wtkh840a]You also have a bunch of very old invalid tag soup code in there, ie: left-margin, top-margin etc. I doubt they are causing the problem, but it would pay to get rid of them and replace them with body {margin:0;padding:0} in your CSS just incase they are causing issues.
May 19, 2008 at 7:17 pm #2931isign4jcMemberThanks so much for your assistance. I really appreciate your speedy responses to my questions. We were able to figure it out and it turned out to be a piece of code that we were missing on our end. After adding this to the head section, it worked like a charm!
[code:288dv56o]<script type="text/javascript"><!–//–><![CDATA[//><!–
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);//–><!]]></script>[/code:288dv56o]
[size=1:288dv56o]EDIT by Ryan: Put code into CODE tags.[/size:288dv56o]
May 20, 2008 at 3:00 am #2932imported_RyanMemberisign4jc – If you have the plugin activated, you shouldn’t need that code at all. The javascript should be included in your HEAD as long as you have the wp_head function in your theme (almost all themes do).
If you don’t have wp_head in your theme, then you would be better off using code like below, as it will not needlessly load the code for browsers which don’t need it.
[code:312r8aoi]<!–[if lte IE 6]><script language="JavaScript" src="http://domain.com/wp-content/plugins/ryans-suckerfish-wordpress-dropdown-menu/suckerfish_ie.js"></script><![endif]–>[/code:312r8aoi][size=1:312r8aoi]Note: if you are using the latest beta, you will need to enter a different URL as the new plugin has a different folder name.[/size:312r8aoi]
May 20, 2008 at 3:09 pm #2933isign4jcMemberAgain, thanks so much for your time! I added the <?php wp_head(); ?> to my head and it worked, just as you said. It also seemed to resolve another problem I was having with a plugin, so double thanks to you!!
May 20, 2008 at 10:02 pm #2934imported_RyanMemberGlad to hear your other problem was solved too ” title=”Smiley” />
If you are going to use plugins, then adding wp_head is almost mandatory as most of them use it.
May 27, 2008 at 5:42 pm #2935tommygunnerMemberhmm, I’m trying to get dropdown working in IE6 and tried the above solutions witout success. I cut and pasted the code above into the header section of the site. I was seeing a error on getElementById line.
I removed the javascript it and checked to see if wp_header was in header and found < ?php wp_head(); ? > which means I don’t need javascript from my understanding.
I do have suckerfish in a ul tag which I hope is ok.
May 27, 2008 at 11:14 pm #2936imported_RyanMember"tommgunner" wrote:I removed the javascript it and checked to see if wp_header was in header and found < ?php wp_head(); ? > which means I don’t need javascript from my understanding.Yes, that is correct.
I need a link to your site to help any further though. It may be a CSS clash with your theme or something different entirely, but without seeing the code I can’t know for sure.
May 29, 2008 at 4:53 pm #2937tommygunnerMemberIs there a way to private message the url to you?
May 29, 2008 at 9:24 pm #2938imported_RyanMemberHi tommygunner,
You can use our <a href="https://geek.hellyer.kiwi/contact/">contact form</a> to send anything private to me.December 8, 2010 at 1:06 pm #2939AnonymousMemberwordpress drop down menu is not working in all version of IE.
Iam using wordpress V3.01
site link:"http://travel-path.com/india/karnataka/mandya/"Pls help me anyone
April 16, 2011 at 2:23 am #2940imported_RyanMemberHi,
Sorry for the ridiculously long wait time before I have replied."mahendra" wrote:wordpress drop down menu is not working in all version of IE.
Iam using wordpress V3.01
site link:"http://travel-path.com/india/karnataka/mandya/"Pls help me anyone
As per the forum rules, please create a new topic if you want assistance.
-
AuthorPosts
- You must be logged in to reply to this topic.