Hey everyone,
I’m designing a site where on the home page I would like to have tabs that display some info on the clients three main product categories (and with links to the actual category pages and featured products), such that the first is displayed when the page is first reached and they can then view the info on the other products by clicking on the tabs for those.
Hope that’s clear!
Ok, so one way of doing this would be to have three diferent versions of the home page - but that’s no good because there is other content on the home page and we would run into issues with duplicate content.
The obvious way is with javascript displaying / hiding the right content onclick. Problem then is accessibility with javascript disabled users unable to get to the other content.
I guess the answer is writing the code in such a way that the barebones HTML is all there for those without javascript and then the javascript does its work reformatting the sections into the tabbed nav…but that seems like a complicated bit of programming for me.
Another solution is to simply display an error message “it appears javascript is disabled, please enable if you want this site to function fully” and then hide the message with javascript of course.
Anyway I was wondering if:
- anyone had any thoughts on all of this
- anyone can think of a better solution
- anyone knows any scripts out there that do this sort of thing that I could use
Many thanks,
cph