Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript: Show/Hide Div. Footer below it not adjusting consistently

Status
Not open for further replies.

johnnyriss

Programmer
Jul 31, 2009
1
US
Greetings,

Thx for your attention. My problem is on this page using IE 7 & 8:


If you click the tabs, you'll see that the footer doesn't adjust accordingly. Only in IE. Works fine in Firefox (Mac & PC) and Safari Mac.

Here's the javascript:

Code:
<script type="text/javascript" charset="utf-8">
		$(function () {
			var tabContainers = $('div.imgswap > div');
			tabContainers.hide().filter(':first').show();
			
			$('div.imgswap ul.tabNavigation a').click(function () {
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				$('div.imgswap ul.tabNavigation a').removeClass('selected');
				$(this).addClass('selected');
				return false;
			}).filter(':first').click();
		});
</script>

The really goofy thing is that on the menus page /menus (which should be identical code and structure as the other page) it looks like the footer adjusts on the FIRST click of a different tab. But then it doesn't adjust again. On /special-events the footer doesn't adjust even the first time.

Not sure what additional code should be posted here – if the style sheet and page code should be added here or if it's best for people to look on the page.

Any guidance and help is greatly appreciated.
 
Unrelated entirely... but given the international nature of the web - suggest to the customer they put the country (or some large identifiable area/state) in the contact details.

I would normally look at your code and try to help - but I don't really do jQuery :)

Cheers!

[tt]Visit my blog [!]@[/!] Visit Code Couch [!]@[/!] [/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top