hum4ngus
11-02-2006, 10:58 AM
1) Script Title: Switch Content Script
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem:
Hi all,
I am trying to use the script in combination with PHP and functions.
normaly using PHP wouldn't be a problem, but when you do this:
?>
<div onClick="expandcontent(this, 'sc1')" style="cursor:hand; cursor:pointer">Lopende projecten:</div>
<div id="sc1" class="switchcontent">
<?php
echo $this->actief( $this->checkedov );
?>
</div>
<?php
It doesn't just take the function "actief" but the rest of the page as well.
and when i insert more of these buttons to create more expandable content i have to open the first on first to use the second one and so on.
is there anyone with a solution to this?
thanks in advance.
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem:
Hi all,
I am trying to use the script in combination with PHP and functions.
normaly using PHP wouldn't be a problem, but when you do this:
?>
<div onClick="expandcontent(this, 'sc1')" style="cursor:hand; cursor:pointer">Lopende projecten:</div>
<div id="sc1" class="switchcontent">
<?php
echo $this->actief( $this->checkedov );
?>
</div>
<?php
It doesn't just take the function "actief" but the rest of the page as well.
and when i insert more of these buttons to create more expandable content i have to open the first on first to use the second one and so on.
is there anyone with a solution to this?
thanks in advance.