WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-22-2007, 10:00 AM
thindenim's Avatar
WebProWorld Pro
 

Join Date: Jan 2007
Location: Scotland
Posts: 238
thindenim RepRank 1
Default CSS Slides

Hi,

I'm currently working on an admin centre for a site and instead of either having: -

a) Very long forms
b) Splitting forms over several pages

I'd like to use css slides/tabs to split up the form and show/hide sections as required. For example, it might be split like so: -

Required Fields I Description I Media I Related Items

so that when you click on say "required fields" it only shows that particular part of the form.

I'm currently searching through google, but any suggestions/reccomendations would be greatly appreciated.


Thanks!
__________________
Girlz Night - professional hair and beauty products
Web design glasgow - from Thin Denim
Reply With Quote
  #2 (permalink)  
Old 04-14-2007, 12:01 AM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: California,USA
Posts: 373
drummin RepRank 0
Default

Hi,
I've used this JS CSS Switcher for many applications besides the simple samples they show.
For example:
Changing the complete layout shown, with different graphics or making a site switch from a two or three column layout.

Just make a div class name for all the required form areas like background color or something. Do the same for those you want to hide. This would be on your default CSS.
When "alternative" CSS is selected, have "that hidden class" display:none.

In case anyone is interested in how to make this work as a one-name link that changes the css instead of the selection areas shown in the examples, give each a CSS name (like above) and use z-index to change position behind or in front of a background. So it would look like this on your page...
On default, the link would show as "Show Required Fields Only".
On alternative, "Show All Fields"

I found this works smoother than display:none type events.

http://www.dynamicdrive.com/dynamici...etswitcher.htm
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0