- Joined
- Dec 11, 2014
- Messages
- 2,004
Hey there hive! I Hope you have a nice day.
It's the second day I'm trying to learn some ways to write scripts, So I'm a n00b.
Anyways, on one of my JavaScript Scripts, I encountered a Problem:
The main Idea is supposed to be Something like Hidden tags, To show screenshots when a button is clicked, and Hide when clicked again. I Used some variables and If/then/elses, they didn't work out... So any help would be appreciated.
The button things
The script:
And don't hurt me, I'm a noob
I also tried inspecting the Hidden tags in the Hive, understood Nothing
It's the second day I'm trying to learn some ways to write scripts, So I'm a n00b.
Anyways, on one of my JavaScript Scripts, I encountered a Problem:
The main Idea is supposed to be Something like Hidden tags, To show screenshots when a button is clicked, and Hide when clicked again. I Used some variables and If/then/elses, they didn't work out... So any help would be appreciated.
The button things
Code:
<button onclick="displayScreenshots()">Screenshots</button>
Code:
function displayScreenshots() {
var boolScreenies = "false";
var ScreenshotString;
if (boolScreenies = false) {
boolScreenies = "true";
ScreenshotString = "Daiee"
} else {
boolScreenies = "false";
ScreenshotString = "";
}
document.getElementById("ScreenshotsHere").innerHTML = ScreenshotString;
}
And don't hurt me, I'm a noob
I also tried inspecting the Hidden tags in the Hive, understood Nothing