Hey there, I am having a problem with the jquery on my website with Internet Explorer. I have only tested it in IE9 but what i does is it doesn't hide the dropdowns for the list on the right side.
The code is like this:
<script type="text/javascript">
jQuery.noConflict();
function initMenu() {
jQuery('#resources ul').hide();
jQuery('#resources li a').click(
function() {
var checkElement = jQuery(this).next();
var one = jQuery(this);
if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
return false;
}
if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
jQuery('#resources ul:visible').slideUp('normal');
jQuery('#resources li a').removeClass('selected');
checkElement.slideDown('normal');
one.addClass('selected');
return false;
}
}
);
}
jQuery(function(){
// bind change event to select
jQuery('#jumpMenu').bind('change', function () {
var url = jQuery(this).val(); // get selected value
if (url) { // require a URL
window.location = url; // redirect
}
return false;
});
});
jQuery(document).ready(function() {initMenu();});
jQuery(document).ready(function(){
jQuery(function () {
jQuery('div.iframe').load("forum/index.php #navbar");
});
});
</script>
It works well in Firefox, however I have noticed that every once in a while it will not load the jquery fully when I go to a new page and the dropdowns will show up expanded instead of collapsed which should be the default.
Here is an example of the page:
http://bfgamerz.com/downloads.php?id=38&key=Project-Reality-v095-Full-Client
It is also making the popup not working correctly (you have to be logged in to view it) but the popup is just like this:
<script language="javascript" type="text/javascript">
function popup(url,title,height,width,extras){
var windowoptions = 'height=' + height + ',width=' + width + ',' + extras + '';
windoww = window.open(url,title,windowoptions);
if (window.focus) {windoww.focus()}
return false;
}
</script>
Thanks for any help.