CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 1/13/2008 8:36:34 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 10 Views: 64 Favorited: 0 Favorite
11 Items, 1 Pages 1 |< << Go >> >|
phantomlove
Asp.Net User
li a:active problem1/13/2008 8:36:34 PM

0

hi .. i have a navigation menu with a css .. the problem is that the a:active doesn't work properly .. when i hit the button it shows the a:active color .. but it disappears .. and when hitting the browser back button, it shows up!

<ul id="navigation">

<li><a href="a.aspx">a</a></li>

<li><a href="b.aspx">b</a></li>

<li><a href="c.aspx">c</a></li>

</ul>

 

#navigation

{

padding: 3px 0;

margin: 0;

border-bottom: 1px solid #3c719e;

font: bold 12px Verdana,Tahoma,Arial,sans-serif;

}

#navigation li

{

list-style: none;

margin: 0;

display: inline;

}

#navigation li a

{

padding: 3px 0.5em;

margin-left: 3px;

border: 1px solid #3c719e;

border-bottom: none;

background: #7e9dbc;

text-decoration: none;

}

#navigation li a:link

{

color: #ffffff;

}

#navigation li a:visited

{

color: #ffffff;

}

#navigation li a:hover

{

color: #000000;

background: #dfe8ee;

border-color: #3c719e;

text-decoration: underline;

}

#navigation li a:active

{

background: red;

border-bottom: 1px solid white;

}

Amanda Wang - M
Asp.Net User
Re: li a:active problem1/15/2008 11:06:27 AM

0

Hi,

phantomlove:
when i hit the button it shows the a:active color .. but it disappears .. and when hitting the browser back button, it shows up!

I have a test use the code that you provided, it works fine on IE 7, but I repro your problem on the firefox. I have a test by using some links with  a:active (for example: http://www.w3schools.com/css/tryit.asp?filename=trycss_link),,  they all faild on show the a:active color. Maybe, firefox can not support it very well

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
phantomlove
Asp.Net User
Re: li a:active problem1/15/2008 3:05:30 PM

0

hi Amanda

i'm using IE 7 and i have this problem!

"when i hit the button it shows the a:active color .. but it disappears .. and when hitting the browser back button, it shows up!"

so, any suggestion?

brettderry
Asp.Net User
Re: li a:active problem1/15/2008 3:19:44 PM

0

 Have you tried background-color instead of just background?

Rinze
Asp.Net User
Re: li a:active problem1/15/2008 4:41:58 PM

0

the active speudoclass only works at the moment the users performs the action. It doesn't get activated when you are visiting the page the link refers to or anything.

In your menu control try setting the staticselectedstyle or dynamicselectedstyle property. Then apply your background colouring to the class you assign


Hope this helps !
Rinze

---------
please select 'mark as answer' if this post helped you!
Amanda Wang - M
Asp.Net User
Re: li a:active problem1/16/2008 3:12:23 AM

0

Hi,

phantomlove:
when i hit the button it shows the a:active color .. but it disappears .. and when hitting the browser back button, it shows up!

When you click on the link a, its color is red, then  go to the a.aspx page, when you back to the before page, the color of the link a is still red.

What do you want to do? Do you want to the color of the link a back to  #ffffff when you  hitting the browser back button?

Could you please give more details about your requirement?


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
phantomlove
Asp.Net User
Re: li a:active problem1/16/2008 5:55:31 AM

0

hi Amanda..

all i need is a navigation menu .. and whenever i'm in a page .. this "page's tab" in the menu should be in different color to show that i'm here

simply, it's like the www.asp.net navigation menu

Home  Get Started Learn ... .... ..... ..... ...

 

Amanda Wang - M
Asp.Net User
Re: li a:active problem1/17/2008 2:37:12 AM

0

oh,

That used the menu's selectedstyle.

You try  to set the menu's staticselectedstyle or dynamicselectedstyle, which allows you to set the appearance of the dynamic or static menu item selected by the user.

Try to check this links: 

   Hope it helps                                                                                                            


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
phantomlove
Asp.Net User
Re: li a:active problem1/17/2008 4:17:26 PM

0

 

u know .. i found that when i remove the navigteurl .. the active button acts fine! in both <ul> method .. or <asp:menu> method .. any explanation?

<ul id="navigation">

<li><a href="#">a</a></li>

<li><a href="#">b</a></li>

<li><a href="#">c</a></li>

</ul>

 

instead of

 

<ul id="navigation">

<li><a href="a.aspx">a</a></li>

<li><a href="b.aspx">b</a></li>

<li><a href="c.aspx">c</a></li>

</ul>

Amanda Wang - M
Asp.Net User
Re: li a:active problem1/18/2008 2:26:44 AM

0

Hi,

The cause of the problem may be related to the navigatetion.

If you use <li><a href="a.aspx">a</a></li> n, when you click on the link, it open a new page, then you back to the preview page, the link's status is visited.

If you use <li><a href="#">a</a></li> , when you click on the link,  the page does not make navigation, but only scroll on the same the page, open a new page, so the link's status is active.

Maybe, this is explaination is not very accurate.

Any discussion about this problem will be welcomed.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
phantomlove
Asp.Net User
Re: li a:active problem1/20/2008 8:31:36 PM

0

do i need extra code like the following link(but it's for PHP) .. it should have a solution!

http://www.sebastiansulinski.co.uk/web_design_tutorials/css/active_button.php

11 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Nonlinear Lp-norm Estimation Authors: René Gonin, Arthur H. Money, Pages: 300, Published: 1989
Active Networks: IFIP-TC6 5th International Working Conference, IWAN 2003, Kyoto, Japan, December 10-12, 2003 : Proceedings Authors: Naoki Wakamiya, Marcin Solarski, James P. G. Sterbenz, Pages: 308, Published: 2003
Grid and Cooperative Computing: Second International Workshop, GCC 2003, Shanhai [sic], China, December 7-10 2003 : Revised Papers Authors: Minglu Li, Pages: 1112, Published: 2004
Unifying the Software Process Spectrum: International Software Process Workshop, SPW 2005, Beijing, China, May 25-27, 2005 : Proceedings Authors: Mingshu Li, Barry Boehm, Leon Osterweil, Pages: 522, Published: 2005
Computers for Artificial Intelligence Applications: Tutorial Authors: Benjamin W. Wah, Guo-Jie Li, Pages: 648, Published: 1986
Active Media Technology: 6th International Computer Science Conference, AMT 2001, Hong Kong, China, December 18-20, 2001 : Proceedings Authors: Jiming Liu, Pong C. Yuen, Chung-hung Li, Joseph Ng, Toru Ishida, Pages: 402, Published: 2001
Advances in Web-age Information Management: 5th International Conference, WAIM 2004, Dalian, China, July 15-17, 2004 : Proceedings Authors: Qing Li, Guoren Wang, Ling Feng, Pages: 753, Published: 2004
Intelligent Structures: Proceedings of the International Workshop on Intelligent Systems Held in Taipei, Taiwan, 23-26 July 1990 Authors: Ken Pin Chong, Shih Chi Liu, J. C. Li, Pages: 459, Published: 1990
Advances in Intelligent IT: Active Media Technology 2006 Authors: Yuefeng Li, Mark Looi, Ning Zhong, Pages: 456, Published: 2006
Numerical Analysis and Its Applications: Third International Conference, NAA 2004, Rousse, Bulgaria, June 29-July 3, 2004 : Revised Selected Papers Authors: Zhilin Li, Lubin Vulkov, Jerzy Waśniewski, Pages: 630, Published: 2004

Web:
problems using li class="active" - DesignersTalk This targets the parent element and all children inside of it */ li.active {font -weight:bold;} /* This targets the children of any li with a class of ...
Joomla! • View topic - How to create the CSS a:active for my ... here is the problem*/ div.module_menu2 ul li.active a { font-weight: bold; background: red; color: #FFFFFF; text-decoration: none; } div.module_menu2 ul li ...
CSS Hover and Active link problems [Archive] - International Web ... .navabar1 ul li a:active{ background-color:#ff0000; color: #fff; font-weight: bold; } Second problem is that the H2 and tagline styles are ...
Firefox active link dotted border problem Dec 2, 2005 ... li a:focus, #navcontainer li a:active { padding:3px 14px; } } ... Firefox active link dotted border problem - Zoe M. Gillenwater, ...
Bizarre "menu under" dropdown problem "menu under" dropdown problem bizarre "menu under" dropdown problem. ... li ul. navigation-2 li a:active, #navigation-1 li ul.navigation-2 li ...
CSS Creator Somewhat Complex Image Rollover Problem Somewhat Complex Image Rollover Problem. soundscape .... li:active, .rightnav ul li a:active { background-color: #fff; color: #fff; ...
Microsoft Expression Expression Web #navbar ul li a:active does ... ... reply - and realise that you have suggested some code to solve the problem. ... I tried creating a new style “#navbar ul li a:active” and assigning the ...
CSS - Problem with a href. When active I want the links to keep ... Talk about CSS - Problem with a href. When active I want the links to ... I found a fix thought if I had id=current on the right li for this ...
Active Query Caching for Database Web Servers - Luo, Krishnamurthy ... To address this problem, we modify a recentl. ... Krishnamurthy and Pei Cao and Yunrui Li", title = "Active Query Caching for Database {Web} Servers", ...
CSS float problem - Dynamic Drive Forums CSS float problem CSS. ...






getting years to show

trouble opening details from the list

how do i host my own asp.net site to the world?

skinnable interface

inserting a session variable into a table

rss news

checking to see if image exists

sqlexpress not working on a shared hosting....

smtpclient messages size limit?

cross table referencing?

c# questions

property default value

how to use "nocache" in showmodaldialog?

passing values from 'labels' to 'text boxes' via session variables

really simple 'newbie' question re forms

<authentication mode="forms"> error

"this" keyword is read only?

online shopping cart

asp help

instant messaging alerts

use variable in class

comapring file versions help

errors in server with aspx

httpwebrequest problem

creating a "module" or custom control...

add controls to the user control question

'webform_savescrollpositionsubmit is undefined' and webresource.axd

variables in one line

table automatically recentering

file uploading questions#2

   
  Privacy | Contact Us
All Times Are GMT