CyberiaPC.com Community Forums Main Page
RSS Feeds: Late(st) News | Zenith Picture Gallery | Most Recent Community Topics | Tips, Tricks and Other Useful Stuff

Welcome Guest ( Log In | Register )

2 Pages V  < 1 2   Digg this topic Digg this topic   Add to my del.icio.us Add to my del.icio.us
Reply to this topicStart new topic
> Creating collapsible elements using JavaScript,CSS
usr.c
post Jun 15 2006, 01:29 PM
Post #16


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




Sure. Expect a reply from me during the weekend (sorry about this very late reply)


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
Guest_Matthew_*
post May 11 2007, 06:47 AM
Post #17





Guests







QUOTE(Guest @ Feb 7 2006, 01:03 PM) *
I have solved the issue by using a blend of: "hidify_showify" combined with "document.getElementById(button1).style.display='none'"
I create a series of buttons which appear and dissapear depending on what elements i want to "dynamically" create. Not very clean...but worx!!!
valid for ie & firefox so far....
Thanx for the original idea
SZ a.k.a MrEnjoy

Can you show some of that code? I don't understand. lookaround.gif
Go to the top of the page
 
+Quote Post
Guest_Chris-McC_*
post Jul 6 2007, 03:09 PM
Post #18





Guests







QUOTE(Matthew @ May 11 2007, 06:47 AM) *
Can you show some of that code? I don't understand. lookaround.gif


I'd like to see this code too. I'm trying to create a page with 3 tables, all hidden by default and display on the press of a button.

I'm great at HTML but javascript is something I'm very basic with. But if someone can point me in the direction of a way to do this I'd be thankful.
Go to the top of the page
 
+Quote Post
usr.c
post Jul 8 2007, 06:06 PM
Post #19


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




I promise to get back to you on that in a few days once the new ZPG release is out safely. original.gif


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
usr.c
post Jul 13 2007, 06:52 PM
Post #20


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




I should have read your post more closely back when you made it; sorry about that.

If you want the button to simultaneously display and hide your three tables then using the following code should do the trick.

CODE
<div>
    <a href='#' onclick="return hidify_showify('search_options','search_arrow','Less','More');">
    <img src='images/arrow_down.gif' alt='Advanced Options' border='0' id='search_arrow' />
    </a>
</div>

<div id='search_options'>
<!-- PUT YOUR THREE TABLES HERE -->
</div>

It displays your button as before, but now hides and shows the div that contains your three tables. Replace "PUT YOUR THREE TABLES HERE" with your tables and you should be set. If you have any problems please let me know; Hopefully, I won't take as long to reply this time.


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
Guest_Mr Enjoy_*
post Sep 26 2007, 11:15 AM
Post #21





Guests







QUOTE(Chris-McC @ Jul 6 2007, 03:09 PM) *
I'd like to see this code too. I'm trying to create a page with 3 tables, all hidden by default and display on the press of a button.

I'm great at HTML but javascript is something I'm very basic with. But if someone can point me in the direction of a way to do this I'd be thankful.


http://www.naturemeetings.com/booking/booking_form.html

add & remove elements by clicking on the links!

thanx
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd May 2013 - 02:38 PM