Jump to content

Is it possible to...


MasterRenny

Recommended Posts

Here's my script: http://cory.110mb.com/generator.php

 

 

 

Put this in the 'head':

		<script type="text/javascript">
	<!--
		function toggle_visibility(id)
		{
			var e = document.getElementById(id);
			if(e.style.display == 'block')
			e.style.display = 'none';
			else
			e.style.display = 'block';
		}
//-->
</script>

 

 

 

 

Here's your checkbox:

<input type="checkbox" name="mlgvariant" id="mlgvariant" onclick="toggle_visibility('custom_mapset');" />

 

 

 

Then I just made a 'span' with the name inside the toggle_visibility javascript function:

<span name="custom_mapset" id="custom_mapset" style="display: block">
					<label for="mapset">Custom Mapset:</label>
					<select name="mapset" style="width: 220">
						-----SNIP-----
						</span>

 

 

I'm sure you could easily tweak that to work for what you need. :)

 

If you need any further explanation to my codes, go ahead and ask ;)

Link to comment
https://forums.phpfreaks.com/topic/201404-is-it-possible-to/#findComment-1056864
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.