Post by jefrey1983 » Sun Feb 19, 2012 8:18 pm

Hi
My problem is i can't seem to highlight two information page.
test site: helikungfu[dot]com
Using Version 1.4.9

the Home, Get To know , New Items and Special work fine because they have different route but when i add another route like

Code: Select all

else if (route == 'information/information') {
			$('#tab_lessons').addClass('selected');
it will stop working

Code: Select all

$(document).ready(function() {
	route = getURLVar('route');
	
	if (!route) {
		$('#tab_home').addClass('selected');
	} else {
		part = route.split('/');
		
		if (route == 'common/home') {
			$('#tab_home').addClass('selected');
		} else if (route == 'information/information') {
			$('#tab_gtknow').addClass('selected');
		} else if (route == 'product/special') {
			$('#tab_specials').addClass('selected');
} else if (route == 'product/category') {
			$('#tab_nitems').addClass('selected');
		
		} else {
			$('#tab_home').addClass('selected');
		}
	}
});
Please help :-*

User avatar
Active Member

Posts

Joined
Sat Jan 30, 2010 6:58 pm

Post by jefrey1983 » Tue Feb 21, 2012 2:04 am

Short Version.
I want something similar to opencart.com tab when click it gets highlighted

User avatar
Active Member

Posts

Joined
Sat Jan 30, 2010 6:58 pm
Who is online

Users browsing this forum: No registered users and 8 guests