September 3, 200917 yr ok, there's this website twopoints.net which has an expanding post container which allows any number of columns. what baffles me is how they have managed to code the posts so they meet each other, pure css leaves ugly line-breaks and gaping holes in the columns. I have recreated the static page and all css and js on my computer and it doesn't work so I assume it uses a php trick...the problem is I have no idea where to start. clues? cheers Jonny
September 4, 200917 yr Its JavaScript is known as an accordion script, there are loads of free coded versions out there, if you search google you will find them. Here is an the one that is used on that site: http://bassistance.de/jquery-plugins/jquery-plugin-accordion/
September 4, 200917 yr The first thing I noticed is that the page looks completely different when javascript is on or off, so it must be basically javascript or jQuery (although the jQuery script at the bottom relates to the right accordion menu). However, with javascript turned off the left side items still expand after clicking the arrow so that cannot be javascript but you then have to use the browser back button to close the item, which points to PHP. Look at this PHP show/hide example which works the same way:- http://www.wickham43.net/showform.php
September 4, 200917 yr Author Ah, missed the 'organize-me' js at the bottom - idiot. clever bit of script that. ps. sorry for posting in the wrong section, what a n00b
September 4, 200917 yr Sorry I misread your question, serves me right checking the forum when I first got up and thinking it will make sense before I got caffeine in my system Glad to see you have sussed it
Create an account or sign in to comment