Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Menu effects
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

doransmolias2002
Novice

13 Posts

Posted - 25 Jan 2010 :  02:17:49  Show Profile  Visit doransmolias2002's Homepage  Reply with Quote
Hi,

I am trying to build a menu where clicking on a menu button will have a white bar appear above that button when the page loads so the user knows what page they are currently on by looking at the menu.
I have tried using the graphical menu for the basis of my menu and then have placed white rectangle boxes on top of all the buttons. I then use the events sections in the graphical menu options and use onclick show the desired rectangle while hiding the other rectangles. When I do this the link becomes nonfunctional, so I added an onclick link event. Now the link works but when the page loads the rectangle I want to stay above the menu button disappears after the page loads. I suspect the reason is because when the new page loads the onclick event has not occurred therefore the events to show and hide rectangles are not run. I tried making an onload event for each page to show and hide the rectangles but they are not selectable objects in the drop down list. I am using a masterpage system for this menu.

Any help appreciated.

Thanks.

2hats
Practical

36 Posts

Posted - 25 Jan 2010 :  04:58:40  Show Profile  Visit 2hats's Homepage  Reply with Quote
Seems a lot of work, and will probably end up with bloated code anyway.

Best to look for a css solution....try http://www.cssplay.co.uk as there are lots of examples there to use as a base.

If you want to show what page you are on, then use php (or asp!!!!) to dynamically set the style for the <li> class
Go to Top of Page

petran
Super User

Netherlands
345 Posts

Posted - 25 Jan 2010 :  09:11:41  Show Profile  Visit petran's Homepage  Reply with Quote
There is a more simple solution. Just make your masterpage placeholder big enough to cover your menu. Then in each page, place one rectangle above the menu of that page. There is no need for that link to work since you are already on that page. You could make your menu partial transparent and place the rectangle beneath it. In that case the link will keep working.
I did something similar on this site: www.wereldboom.com

--------

regards

Petran
Go to Top of Page

doransmolias2002
Novice

13 Posts

Posted - 26 Jan 2010 :  03:46:46  Show Profile  Visit doransmolias2002's Homepage  Reply with Quote
Thanks...used Petran's solution works well (take a look if you like: www.drjohnkania.com), unfortunately don't have much knowledge of php,css or asp maybe when I have some time I will look into studying it...

Doran
Go to Top of Page

joneq
Super User

433 Posts

Posted - 26 Jan 2010 :  06:17:19  Show Profile  Visit joneq's Homepage  Reply with Quote
http://blog.themeforest.net/screencasts/diving-into-php-video-series/

There is a link to a nice php video tutorial--doesn't go too deep but very easy to understand and pretty short--compared to others

I think everyone needs to know some php--then MAYBE asp
Go to Top of Page

T00N
Super User

573 Posts

Posted - 26 Jan 2010 :  07:48:13  Show Profile  Visit T00N's Homepage  Reply with Quote
quote:
Originally posted by doransmolias2002

Thanks...used Petran's solution works well (take a look if you like: www.drjohnkania.com), unfortunately don't have much knowledge of php,css or asp maybe when I have some time I will look into studying it...

Doran



I like what you did with the first capitols!

Edited by - T00N on 26 Jan 2010 07:48:28
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000