• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[HIDDEN] Bugs

Status
Not open for further replies.
Level 27
Joined
May 30, 2007
Messages
2,872
Show 1

Show 2
Now hide 1.


This one never shows:
Unreachable


I would do this in the page:
Code:
<input onclick="showhide(this);" value="Title" type="button"><div style="visibility:collapse;">
	<div>
		 Text
	</div>
</div>
and in the script:
Code:
function showhide(button){
	var target = button.nextSibling.style;
	target.visibility = (target.visibility == "visible") ? "collapse" : "visible";
}
You should collapse it so that it doesn't take up so much space when hidden.
 
Last edited by a moderator:

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
I knew of this bug long ago. Doesn't happen to be grave though, since you must first click "1" to see "2", only then can you hide "1" and get to the bug.

And if you didn't notice, when you click the one you claim it never shows, the "2" of the previous HIDDEN will show/disappear.
 
Status
Not open for further replies.
Top