Results 1 to 7 of 7

Thread: Switch Content Script

  1. #1
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Switch Content Script

    Script name: Switch Content Script
    Link: Switch Content Script
    I have this script installed and working perfectly. Just was wondering if there is a way to have the link toggle either an image or a plus/minus sign depending on the state of the "<div>" tag. ie: if expanded a plus would show and if collapsed a minus would show. Thanks in advance for any help.

  2. #2
    Join Date
    Nov 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I tried getting this inside the script mkboynton, but sadly I had no luck at all. I just don't know enough about JavaScript. The thread got burried and I never received help regarding it. Hope it goes better for you. I'm still keeping my eyes out for a way to do this, and I'll reply if I come across anything. Good luck!

  3. #3
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks CrimsonDawn, I don't know very much about javascript either. I have also been searching for an answer.

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I'm possibily looking at upgrading the script for such a feature. No promises yet, but it's been noted.

  5. #5
    Join Date
    Nov 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That's great news, ddadmin. Look forward to seeing if it happens!

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ok, script updated for this feature: http://www.dynamicdrive.com/dynamici...tchcontent.htm

  7. #7
    Join Date
    Dec 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm trying desperately to get this thing working. The click on link is working fine. the + changes to a minus and back to a + when clicked. my problem is the content absolutely does nothing ( it's always visible.

    I've used exact cut and paste of your code for every part, this is pissing me off , it looks like such a cool script.

    Code:
    <table width="100%" cellpadding="1" cellspacing="0" align="center" border="0">
    <tr><td colspan="2" align="center">
    	<div class="ArticleTitle"><?=$zonedesc?></div>
    </td></tr><tr><td align="center">
    	NPC Count: <?=$npccount?> <a href="<?=$objectlink?>&DATA2=<?=$zone?>">View NPCs</a>
    </td><td align="center">
    	Quest Count: <?=$questcount?> <a href="<?=$questlink?>&DATA2=<?=$zone?>">View Quests</a>
    </td></tr><tr><td colspan="2" align="center">
    	<br /><br /><div onClick="expandcontent(this, 'feckyou')" style="cursor:hand; cursor:pointer"><span class="showstate"></span>Adjacent Zones:</div>
    </td></tr>
    <div id="feckyou" class="switchcontent"><?=$zones?></div>
    </table>
    any ideas?

    (Header file has the full exact unmodified javascript)

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
  •