View Single Post
12-22-2006, 07:18 AM
#7
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old

Originally Posted by Echo1031
Man i missed what indy said but hes but nevermind :\ Anyways that probaly not the whole code but it does give him some ideas how it works.
That's just the code that calls the JavaScript to do the real work, here...
PHP Code:
<script language="javascript" type="text/javascript">
function _open(){
document.getElementById('options').style.display='block';
document.getElementById('status').innerHTML='<span onclick="_close();">Close Options</span>';
}
function _close(){
document.getElementById('options').style.display='none';
document.getElementById('status').innerHTML='<span onclick="_open();">Open Options</span>';
}
</script>
<div id="status"><span onclick="_open();">Open Options</span></div>
<div id="options" style="display: none">
<?php echo $PHProxy->options_list(truetrue?>
</div>
Just place that were you want the options...