SitePoint Sponsor |
|
User Tag List
Results 1 to 14 of 14
Thread: question about hiding divs?
-
Mar 24, 2007, 18:52 #1
- Join Date
- Mar 2002
- Location
- Canada
- Posts
- 240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
question about hiding divs?
Hi guys! I'm redoing www.nyraju.com so its more compliant. Now if you take a look at the top menu and click a link you'll be directed to the main page for that sectiona nd simultaneously you'll see a submenu appear. I know I can riv a hidden div, but do I need to do multiple divs for each section? Or can someone point me to a possible faster solution?
Thanks guys!!
-
Mar 24, 2007, 19:08 #2
- Join Date
- Mar 2005
- Location
- USA
- Posts
- 5,482
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Why do you need to hide elements?
Just output different sub-navs for each section.
I'm curious, what do <div>s have to do with it?We miss you, Dan Schulz.
Learn CSS. | X/HTML Validator | CSS validator
Dynamic Site Solutions
Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.
-
Mar 24, 2007, 19:10 #3
- Join Date
- Mar 2002
- Location
- Canada
- Posts
- 240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Could you show me an example of what you mean? I thought of it this way b/c as you can see the sub menu only shows up when the main link is clicked?
-
Mar 24, 2007, 19:18 #4
- Join Date
- Mar 2002
- Location
- Canada
- Posts
- 240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Regarding the divs, I'm using the Web Designer's Reference as a , well reference and it looked like it would be a good idea.
-
Mar 24, 2007, 19:34 #5
- Join Date
- Mar 2005
- Location
- USA
- Posts
- 5,482
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Different sub-navs are coded into each page. (Hopefully server-side includes were used.) This has nothing to do with JavaScript.
I suggest you learn how semantics apply to X/HTML. Semantics is really a very important subject when it comes to X/HTML.We miss you, Dan Schulz.
Learn CSS. | X/HTML Validator | CSS validator
Dynamic Site Solutions
Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.
-
Mar 24, 2007, 19:37 #6
- Join Date
- Mar 2002
- Location
- Canada
- Posts
- 240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'm not sure what you mean and could really use the help
-
Mar 24, 2007, 19:38 #7
- Join Date
- Mar 2002
- Location
- Canada
- Posts
- 240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Nope. The site was totally done is a program called Swish.
-
Mar 24, 2007, 19:56 #8
- Join Date
- Mar 2002
- Location
- Canada
- Posts
- 240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How would you handle this?
-
Mar 24, 2007, 21:47 #9
- Join Date
- Mar 2005
- Location
- USA
- Posts
- 5,482
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The main page gets the main menu. Then each section gets a sub-menu in addition to the main menu and all pages in that section get the sub-menu for that section. So two different sections will have different sub-menus.
I'd do this with some amount of PHP. Here's a tutorial on PHP includes. That site's server might not support PHP though.We miss you, Dan Schulz.
Learn CSS. | X/HTML Validator | CSS validator
Dynamic Site Solutions
Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.
-
Mar 25, 2007, 06:37 #10
- Join Date
- Mar 2002
- Location
- Canada
- Posts
- 240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How would you do this with Javascript?
-
Mar 25, 2007, 06:43 #11
- Join Date
- Mar 2002
- Location
- Canada
- Posts
- 240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
There'd still be the issue of hiding the men till the link was clicked as well.
-
Mar 25, 2007, 21:55 #12
- Join Date
- Mar 2005
- Location
- USA
- Posts
- 5,482
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Here's an example of what I've been saying: http://www.dynamicsitesolutions.com/...s-example.html
I'm curious, why are you so fixated on using JavaScript anyway?
I recommend you read up on JavaScript Best Practices.We miss you, Dan Schulz.
Learn CSS. | X/HTML Validator | CSS validator
Dynamic Site Solutions
Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.
-
Mar 26, 2007, 07:13 #13
- Join Date
- Mar 2002
- Location
- Canada
- Posts
- 240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Because I'm in a rush, I don't know what the host has and the guy wants it yesterday.
-
Mar 26, 2007, 07:18 #14
- Join Date
- Mar 2002
- Location
- Canada
- Posts
- 240
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
And I thought it would be the fastest way
Bookmarks