Jump to content

submenu links not working


tchoy

Recommended Posts

About OHKA

Who We Are

We are dedicated to being a premier association in Central New Jersey which provides a gathering place for social, recreational, and business

activities for members and their families in a distinctive Asian atmosphere.

In achieving our mission, we will:

Maintain a commitment to an Asian identity

Maintain an association environment which is open and hospitable

Maintain a fiscal responsibility

Project a positive image within our community

Be responsive to our members

OHKA Board for the term of 2008-2010

President

Josephine Yanmail.gif

Vice President

Clement Kwokmail.gif

Secretary

Tina Choymail.gif

Treasurer

Pius Chumail.gif

Program Director

Frank Laumail.gif

Public Affairs

Lily Chumail.gif

 

Nelson Yanmail.gif

Youth & Charity Director

Lezlee Homail.gif

Art Director

Betty Yeungmail.gif

By-Laws

Click here to view the by-laws of the Overseas Hong Kong Association.

Contact Us

Overseas Hong Kong Association (OHKA)

P.O. Box 254

3124 Highway 27

Franklin Park, NJ 08823

If you have any questions regarding OHKA, please contact us at

ohka.email@yahoo.com.

 

Copyright ©2001 Overseas Hong Kong

Association. All rights reserved.

Link to comment
Share on other sites

Where is your doctype? (Use HTML 4.01 strict)

 

Who We Are

Our Board

By-Laws (Note the typo)

Contact Us

 

What are you trying to achieve with the green parts?

 

The links actually work for me (minus the one with the typo), but they lead to the page you're already on, so nothing changes.

Link to comment
Share on other sites

i have these contents hidden for the green parts in the css code because if they are not, the page you are on, shows all this contents underneath each other.

#about-board {

display: none;

}

#about-bylaws {

display: none;

}

#about-contact {

display: none;

}

When you click on the links, it's suppose to bring up other content.

See primary content in the html with the nested divs below -

 

About OHKA

Who We Are

We are dedicated to being a premier association in Central New Jersey which provides a gathering place for social, recreational, and business

activities for members and their families in a distinctive Asian atmosphere.

In achieving our mission, we will:

Maintain a commitment to an Asian identity

Maintain an association environment which is open and hospitable

Maintain a fiscal responsibility

Project a positive image within our community

Be responsive to our members

OHKA Board for the term of 2008-2010

President

Josephine Yanmail.gif

Vice President

Clement Kwokmail.gif

Secretary

Tina Choymail.gif

Treasurer

Pius Chumail.gif

Program Director

Frank Laumail.gif

Public Affairs

Lily Chumail.gif

 

Nelson Yanmail.gif

Youth & Charity Director

Lezlee Homail.gif

Art Director

Betty Yeungmail.gif

By-Laws

Click here to view the by-laws of the Overseas Hong Kong Association.

Contact Us

Overseas Hong Kong Association (OHKA)

P.O. Box 254

3124 Highway 27

Franklin Park, NJ 08823

If you have any questions regarding OHKA, please contact us at

ohka.email@yahoo.com.

Link to comment
Share on other sites

There still is no doctype.

 

And I'm still not clear what

 

Our Board

 

is supposed to be. The '#' is generally used in your html as a bookmark --- or in your CSS as an ID. What you have there, makes no sense to me -never seen anything like it before.

 

If you have a bookmark on a page and want to go to it, then you'd have to write the link like this:

 

Our Board

 

If you want a special style for this part, then it need to look htis way:

 

Our Board -- and your CSS

 

#about-board {what: ever;}

 

And the CSS you have there - display: none - means DO NOT display, so I"m not sure how clicking is supposed to not not-display.

 

Are you trying something frame-like here, where you want to just change a certain part of a page?

 

BTW

- there should NOT be a space between mailto: and the email address.

-

Link to comment
Share on other sites

We have an older files on our website now. I am trying to re-design it using css as it shows much better.

I have never seen a doctype in any of the files.

 

I had seen some code like this from another website: but they were using a .php file instead of html.

Our Board

 

In the css I have display: none because the page I want to show is the first content and when I click on Our Board, the second link I want another content to show, otherwise they all show and that's not what I want.

 

So in the css:

#about-board {what: ever;}

 

after a display:none, how do I get it to display or how do I hide it until the link is clicked?

 

The mailto: has a space because it only show icon and we need space there.

Link to comment
Share on other sites

Just because there is no doctype on that site now does not mean that a doctype isn't part of a properly coded webpage.

 

--- is a link to a bookmark (a specific place inside a page). It has nothing to do with CSS (or PHP) -- and it's not what you have on your site right now. You have the #about-board OUTSIDE the quotes.

 

You could set the display none as the default, and then use a hover or link CSS to display - but that's really not how websites work - at least none of the ones I've ever studied.

 

What's wrong with just creating a new page for the new content?

Link to comment
Share on other sites

creating a page for new content would just create more files.

i believe that the code i was using, they may be using a .js in conjunction with that.

 

If you go to http://www.stevens.edu/csa and then go to about csa, it has those links on the side and when you click on them, it brings up other content, but in the url, does not show the #. Look at their code through view source and you will see what I am talking about.

Link to comment
Share on other sites

It looks like the JavaScript is what runs this thing - just keep in mind if someone has JavaScript turned off, it won't work. And --- there's nothing wrong with one file for each page - that's how websites work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...