960 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+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?

1043 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
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+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 :-)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by