• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Hide Advanced Details

Status
Not open for further replies.
Currently once you click on the button, you can only refresh to hide the advanced details of a model. I suggest there be a button to hide it once it is shown.
 

Attachments

  • Screenshot_2014-09-05-00-21-06-11801412417.png
    Screenshot_2014-09-05-00-21-06-11801412417.png
    66.9 KB · Views: 81
  • Screenshot_2014-09-05-00-16-32-11871173093.png
    Screenshot_2014-09-05-00-16-32-11871173093.png
    85.9 KB · Views: 74

Deleted member 219079

D

Deleted member 219079

HTML:
<td class="alt1">
		<a href="http://www.hiveworkshop.com/forums/models-530/templar-plague-doctor-256875/#" style="cursor: pointer; font-weight: bold; font-size: 14px; text-align: center" onclick="this.style.display='none'; document.getElementById('extrad').style.display=''; return false">Click here to display advanced details.</a>
		<div style="display: none" id="extrad">
		<dl>
			...
		</dl>
		</div>
	</td>

into

HTML:
<td class="alt1">
                  <input type="checkbox" id="toggle">
                  <label for="toggle" class="link hideontoggle">Click here to display advanced details.</label><label for="toggle" class="link toggled">Click here to hide advanced details.</label>
                  <div class="toggled">
                     <span class="toggled" style="display:block; margin-top:10px"></span>
                     <div style="display: none" id="extrad">
		          ...
                  </div>
               </td>

in css
HTML:
input[type=checkbox]:checked ~ .toggled {
	display: none;
}
input[type=checkbox]:checked ~ .hideontoggle { 
	display: block;
}
.hideontoggle{
	display: none;
}

that's a method i used in a school work. but dont take it for granted, i believe it needs some fixing, but the mechanic works i guarantee it.
 
Last edited by a moderator:
Status
Not open for further replies.
Top