- 0
Help needed in Javascript
Asked by
eangulus,
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By MacDaddyAz · Posted
One of the worst Linux distros out there, it's so locked down you can't customize the desktop environment and they limit your choices of apps. It's like you play in their sandbox only. The revolving door never stops spinning with Elementary OS because users install it only to find out how restricted it is compared to to Windows so they end up leaving Linux altogether or switch to Mint or Ubuntu. -
By excalpius · Posted
Precisely. Once this current generation of milquetoast pseudo-AI achieves 100% accuracy on the things we already know as a baseline, then perhaps it has a chance of advancing our knowledge on things we're still finding solutions for. -
By Arceles · Posted
Laughs in Arch in both my Rog Ally and Asus Advantage. -
-
By TarasBuria · Posted
Nvidia App gets light theme, bug fixes, and support for more games by Taras Buria Nvidia has released a new update for the Nvidia App on Windows. Version 11.0.4 is now available with a few changes, such as automatic theme switching with light mode support, Windows Narrator support, fixed bugs, and optimal settings for 12 new games. With today's update, Nvidia App now supports light mode. You can switch between modes in settings or let the app follow the system settings (Windows still does not support automatic theme switching). To change the mode, go to Settings > Features > Theme. In addition, Nvidia App now supports Windows Narrator. The system's native screen reader can now properly read aloud on-screen content to improve accessibility for those relying on assistive technologies. Next, the list of games that Nvidia App can tune for optimal performance has been extended with 12 new titles: Assassin's Creed: Shadows Clair Obscur: Expedition 33 Deadlock ELDEN RING NIGHTREIGN Grand Theft Auto V Enhanced Half-Life 2 with RTX Indiana Jones And The Great Circle inZOI Monster Hunter Wilds Split Fiction The Last of Us Part II Remastered The Elder Scrolls IV: Oblivion Remastered Finally, Nvidia App 11.0.4 fixes the following bugs: Fixed an issue where DLSS-FG defaults to 2x irrespective of in-game setting when DLSS override model is set to "Latest” and Frame generation is set to “Use the 3D application setting". Fixed an issue where the driver download could not be completed. Fixed an issue where the recording bitrate setting was not saved. Fixed an issue where HDR video colors were not encoded properly for HEVC and AV1 playback. Fixed a bug where the in-game overlay was not accessible on the GeForce RTX 5070. Fixed an issue where a PC reboot would reset microphone boost to an incorrect value. Fixed an issue where Highlights summary window could not be disabled. Various stability fixes. You can download the Nvidia App from the official website. Full release notes are available here.
-
-
Recent Achievements
-
lilyandrew11 earned a badge
Conversation Starter
-
Ed B went up a rank
Contributor
-
moporcho earned a badge
One Month Later
-
Parotel earned a badge
One Month Later
-
Cryptecks earned a badge
Reacting Well
-
-
Popular Contributors
-
Tell a friend
Question
eangulus
HI all I am having trouble getting a javascript to work as I want it.
The code is as follows:
the oc function is to search for a string in an array I found.
I want to call the script like this:
The call is not restricted to how many items 1 or 10...
What it has to do is toggle the display css for a div to hide/show content. by using multiple names in the onclick I should be able to toggle 2 items at once.
Also to avoid conflict I would like the div id's to have an operating extension as in:
products_toggle == toggle
products_show == force display: ; if it isn;t already
products_hide == force display: none; if it isn;t already
I am going nuts on trying to get this to work. I have had it work half way there but not all features at once. The code above opens and closes the items but doesn't close all others that are open. each div will be a content panel and the reason for the multiple id's is so I can open a page panel and then show the relevant sub content on that page. For example I might call about_open, contact this should force open the about panel and show a contact form. the using about_open, privacy it should open about panel if not already and show the privacy content while closing all other div's.
If needed I can abbreviated each toggled div with a name as in id="about_content", id="contact_content" etc.
Please help me.
Link to comment
https://www.neowin.net/forum/topic/631537-help-needed-in-javascript/Share on other sites
19 answers to this question
Recommended Posts