960 posts
  • Sells items exclusively on Envato Market
  • Had an item featured on Envato Market
  • Taught a course or tutorial on Tuts+
  • Has referred 1+ members
+4 more
jeffeatworld
says

How far should you go when designing templates for folks who have JavaScript disabled?

For instance I want to create a switcher similar to the Envato switcher on Themeforest (top left)

What I’m planning doesn’t really affect functionality, it’s just an enhancement.

Woudl something like this be okay?

1044 posts
  • Has sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
+9 more
Pixelworkshop
says

I’d make it showing on mouse hover, as long as it’s working with or without JS, that’s fine :)

1148 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
fillerspace
says

What I’m planning doesn’t really affect functionality, it’s just an enhancement. Woudl something like this be okay?

If the site functions fine without it, I’d make it display:none, and then reveal it with Javascript. If it were essential functionality, I would make it a form with a select box and submit button, and then replace it with the switcher using Javascript. A good example of this is the pay to autocomplete on PayPal…it starts as a select box, then is replaced with the autocomplete.

960 posts
  • Sells items exclusively on Envato Market
  • Had an item featured on Envato Market
  • Taught a course or tutorial on Tuts+
  • Has referred 1+ members
+4 more
jeffeatworld
says

cheers folks – im now toying with doing it css based and changing it on hover as suggested. That way theres no need for the jQuery :-)

by
by
by
by
by
by