I have a table with 5 TD's set up like tabs, when you click a tab the css classname changes so that the tab is active or inactive, that i have managed with an onclick event.
But what i really need is a JS function that operates when you click a tab, swaps the current tab from inactive to active and swaps all the other tabs to inactive, each TD has a name cell1 through to cell5.
No, size is not the only selling point. I did not even remotely say that.
Your claim was that "building your own will be faster and cheaper". This is false. You cannot build something close to that form factor with off-the-shelf parts. You can build a Mini-ITX PC and pay more, or something larger and pay less.
But these are different market segments. It's apples and oranges.
There is a default resolution setting in Settings > Display that can be changed with a click. You can also change the settings on a per-game basis. No CLI needed.
Also, Steam has countless games that are not "[perpetual] alpha/beta games", so no need for the straw man. Plus you can use other stores as well. And console games (e.g. PS5) cost a fortune, which itself more than negates the price subsidy on the system, unless you plan on exclusively playing 1 or 2 games.
It's true that you shouldn't buy a system that doesn't support the game(s) you want to play, but I think that's kinda obvious, and applies to every console as well as PC.
I don't game in the living room and have no need of a Steam Machine, but there is a clear market segment that would find it useful.
Question
Large
Hi Guys,
I hope you can help ? :unsure:
I have a table with 5 TD's set up like tabs, when you click a tab the css classname changes so that the tab is active or inactive, that i have managed with an onclick event.
But what i really need is a JS function that operates when you click a tab, swaps the current tab from inactive to active and swaps all the other tabs to inactive, each TD has a name cell1 through to cell5.
Can anyone help with a JS function to do this ?
Kind Regards
Link to comment
https://www.neowin.net/forum/topic/338811-css-switching-with-js/Share on other sites
1 answer to this question
Recommended Posts