13 Replies - 786 Views - Last Post: 01 August 2009 - 08:30 AM

#1 trickstar34  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 48
  • Joined: 05-June 09

Is there a "A:click" type of thing?

Posted 19 July 2009 - 11:20 PM

I just wanted to know if you can use something like "a:click" with just CSS, no javascript involved?

This post has been edited by trickstar34: 19 July 2009 - 11:28 PM

Is This A Good Question/Topic? 0
  • +

Replies To: Is there a "A:click" type of thing?

#2 noorahmad  Icon User is offline

  • Untitled
  • member icon

Reputation: 209
  • View blog
  • Posts: 2,290
  • Joined: 12-March 09

Re: Is there a "A:click" type of thing?

Posted 19 July 2009 - 11:28 PM

i think you are talking about a (link) Styles
a
a:hover
a:active
a:visited

Was This Post Helpful? 0
  • +
  • -

#3 trickstar34  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 48
  • Joined: 05-June 09

Re: Is there a "A:click" type of thing?

Posted 19 July 2009 - 11:29 PM

So there is nothing that applies a style while a element is being clicked on? And those things you showed me also work for other elements than "a" for me.
Was This Post Helpful? 0
  • +
  • -

#4 noorahmad  Icon User is offline

  • Untitled
  • member icon

Reputation: 209
  • View blog
  • Posts: 2,290
  • Joined: 12-March 09

Re: Is there a "A:click" type of thing?

Posted 19 July 2009 - 11:36 PM

Quote

no javascript involved?

is there any problem to do it with javascript?
Was This Post Helpful? 0
  • +
  • -

#5 trickstar34  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 48
  • Joined: 05-June 09

Re: Is there a "A:click" type of thing?

Posted 19 July 2009 - 11:49 PM

I can do it just fine with JScript, but every once in a while it wont work on Safari.
Was This Post Helpful? 0
  • +
  • -

#6 kewlkreator  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 38
  • View blog
  • Posts: 1,065
  • Joined: 25-March 09

Re: Is there a "A:click" type of thing?

Posted 20 July 2009 - 08:10 PM

Erk... Try a different browser?
Was This Post Helpful? 0
  • +
  • -

#7 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5395
  • View blog
  • Posts: 27,389
  • Joined: 10-May 07

Re: Is there a "A:click" type of thing?

Posted 20 July 2009 - 08:12 PM

View Posttrickstar34, on 20 Jul, 2009 - 12:29 AM, said:

So there is nothing that applies a style while a element is being clicked on?

Active is the action taken while a text link is being clicked on.

The css a:active will trigger at the time that the viewer is clicking on the text link.
Was This Post Helpful? 0
  • +
  • -

#8 boisei0  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 21-July 09

Re: Is there a "A:click" type of thing?

Posted 21 July 2009 - 01:15 AM

Most browsers, except Internet Explorer, could handle these code, if you mean what I think you mean.
I encountered the same thing when building a website for a school project. I made a menu, but IE wouldn't handle the code I'd written. Searching on the web for a solution, brought me to a site where they explain how to make a horizontal or a vertical drop down menu, using css.
To make a long story short, they use behaviors. I shall not tell you how to handle this. It's much easier to place a link to the pages I uses.

The site contains the tutorial for the menu, with a link to other site you might need.

The behavior can be found on this site with a guide how to use it.
Was This Post Helpful? 0
  • +
  • -

#9 SoLi  Icon User is offline

  • andydust.com

Reputation: 41
  • View blog
  • Posts: 1,438
  • Joined: 27-January 02

Re: Is there a "A:click" type of thing?

Posted 21 July 2009 - 06:00 AM

a:focus is kind of similar, although the state will remain after the click as well (until the focus has been removed from the anchor).

a:focus {
  background: red;
}



Although bear in mind this doesn't work IE6 or IE7... :/
Was This Post Helpful? 0
  • +
  • -

#10 kewlkreator  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 38
  • View blog
  • Posts: 1,065
  • Joined: 25-March 09

Re: Is there a "A:click" type of thing?

Posted 31 July 2009 - 08:00 PM

Since hovering over a link happens befor you click, why not create a a:hover style. Will this work?
Was This Post Helpful? 0
  • +
  • -

#11 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1199
  • View blog
  • Posts: 7,309
  • Joined: 07-September 06

Re: Is there a "A:click" type of thing?

Posted 31 July 2009 - 08:18 PM

Quote

Wish everyone just used FF. *Sigh*

Now what fun would that be? If everyone used the same browser there would be no skill required in web development, everyone would be able to use Dreamweaver because it would make things the way Firefox would always see them and that would be the end of a lot of jobs.
Was This Post Helpful? 0
  • +
  • -

#12 kewlkreator  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 38
  • View blog
  • Posts: 1,065
  • Joined: 25-March 09

Re: Is there a "A:click" type of thing?

Posted 31 July 2009 - 08:28 PM

It's still a pain.
Was This Post Helpful? 0
  • +
  • -

#13 tshauck  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 70
  • Joined: 04-January 09

Re: Is there a "A:click" type of thing?

Posted 01 August 2009 - 07:44 AM

I say if you're not using an up-to-date browser its your fault if you can't look at webpages.
Was This Post Helpful? 0
  • +
  • -

#14 kewlkreator  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 38
  • View blog
  • Posts: 1,065
  • Joined: 25-March 09

Re: Is there a "A:click" type of thing?

Posted 01 August 2009 - 08:30 AM

View Posttshauck, on 1 Aug, 2009 - 06:44 AM, said:

I say if you're not using an up-to-date browser its your fault if you can't look at webpages.

Correct. Updates are free guys.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1