rednimer
11-12-2006, 06:06 AM
1) Script Title: Switch Content Script
2) Script URL (on DD):http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem:
Im trying to use the Switch Content Script with a php funcion in it.
I know why it doesnt work, but dont know how to make it work.
here is what I have. I want to be able to click to show the php echo
<h3 onClick="expandcontent(this, 'sc1')" style="cursor:hand; cursor:pointer"><span class="showstate"></span>Display more</h3>
<div id="sc1" class="switchcontent"><?php echo $PHPfile->options_list(true, true) ?></div>
</td></tr>
anyone have any ideas
2) Script URL (on DD):http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem:
Im trying to use the Switch Content Script with a php funcion in it.
I know why it doesnt work, but dont know how to make it work.
here is what I have. I want to be able to click to show the php echo
<h3 onClick="expandcontent(this, 'sc1')" style="cursor:hand; cursor:pointer"><span class="showstate"></span>Display more</h3>
<div id="sc1" class="switchcontent"><?php echo $PHPfile->options_list(true, true) ?></div>
</td></tr>
anyone have any ideas