Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • Code University
  • this is for zb
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
this is for zb; but i need it for html
Tweet Topic Started: Mar 26 2009, 11:36 AM (240 Views)
high_sky Mar 26 2009, 11:36 AM Post #1
Member Avatar
doughnuts!

Posts:
71
Group:
Member
Member
#2,360
Joined:
Feb 17, 2009
Coding language
HTML/CSS
http://support.zetaboards.com/topic/142255/1/

Hi,
that code is for zb forum but i need it for (well only the collapse feature) for basic html that i could use on a website (i will be planning on using it in a simple html box with text)

Any help is appreciated

Thanks (again <3 )
Posted Image
ZBtopsite| ZBthemezone| ZBcode
Offline Profile Goto Top
 
Vitality Mar 26 2009, 01:46 PM Post #2
Member Avatar
Tabula Rasa

Posts:
784
Group:
Former Staff
Member
#320
Joined:
Jul 26, 2008
Well, the reason the collapse code works that way in this code is because it is built in with ZB. For any other collapsing codes, you would need to use something else such as Javascript.

If you are wondering though, this is the collapse feature snippet:
Code:
 
<span class="collapse">STUFF</span>
Offline Profile Goto Top
 
HolySavior Mar 26 2009, 01:50 PM Post #3
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
in order to make this work you need JS or jQuery on your webpage and in order for it to stay closed after you leave the page you need to use cookies or something of that nature.
Offline Profile Goto Top
 
high_sky Mar 26 2009, 02:30 PM Post #4
Member Avatar
doughnuts!

Posts:
71
Group:
Member
Member
#2,360
Joined:
Feb 17, 2009
Coding language
HTML/CSS
I dont think JS or jQuery is on my webpage because that collapse code doesnt work, so cant i do anything to get it to work now, ? (sorry, im such a noob are coding xD )

edit: or does anybody know the link to a java one that might work

edit2: if found one, (i think) but what do i do with it xD
http://javascript.internet.com/miscellaneous/collapsible-text.html
Edited by high_sky, Mar 26 2009, 02:36 PM.
Posted Image
ZBtopsite| ZBthemezone| ZBcode
Offline Profile Goto Top
 
HolySavior Mar 26 2009, 02:47 PM Post #5
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
thats not bad of a code.
Offline Profile Goto Top
 
high_sky Mar 28 2009, 05:14 AM Post #6
Member Avatar
doughnuts!

Posts:
71
Group:
Member
Member
#2,360
Joined:
Feb 17, 2009
Coding language
HTML/CSS
yeah i know (well not really)

could you give me some simple instructions on what to do, i get it slightly but not much :/
Posted Image
ZBtopsite| ZBthemezone| ZBcode
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code University · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 7:48 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy