We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Toggle Chat box
Topic Started: Dec 11 2011, 11:55 PM (1,814 Views)
noxmyreality
Member
[ * ]
Board Address: http://s15.zetaboards.com/A_Twist_of_Fate/index/
Board Software: ZetaBoards
Description: I'd like a code that makes a toggling chat box that can come from the right side of my board.
I have a Chat Box system, I just need the code for the box that I can put it into. Where you click and it pops out.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<div id="chat_toggle">Click here to toggle:</div>
<div id="chat">Chat Box Code</div>

<script type="text/javascript">
$('#chat_toggle').click(function () {
$('#chat').toggle('slow');
});
</script>
Simply replace 'Chat Box Code' with your chat box coding.
Offline Profile Goto Top
 
noxmyreality
Member
[ * ]
This might sound stupid but...where do I put that code? :oy:

And thank you for it.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
You place it in your Board Template. Which specific wrapper you place it in is dependent on where you want it to appear.
Offline Profile Goto Top
 
noxmyreality
Member
[ * ]
It doesn't seem to work for me. I click the toggle and it closes, but then it whips back open again all fast. o.o
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Can I see it added to your board? I tried it on my test board and it allows me to open and close the content with the toggle.
Offline Profile Goto Top
 
noxmyreality
Member
[ * ]
I'm testing it here: http://w11.zetaboards.com/TwistedTester/index/
The Board is "offline" as it's a tester board, but the chat box is at the bottom.



I figured out what was causing it. I'd left behind a piece of code in another location. :facepalm:

Thank you so much!!
Edited by noxmyreality, Dec 12 2011, 11:39 PM.
Offline Profile Goto Top
 
lightfire
Member Avatar
littlegraycloud
[ *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic