Results 1 to 2 of 2

Thread: Using switch content script with PHP

  1. #1
    Join Date
    Nov 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using switch content script with PHP

    1) Script Title: Switch Content Script

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...tchcontent.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:

    PHP Code:
    ?>
    <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. #2
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    im trying to do the same thing. Anyone have any input.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •