+ Reply to Thread
Results 1 to 7 of 7

Thread: How to make active link colour ?

  1. #1
    amer89716 is offline x10Hosting Member amer89716 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    10

    Post How to make active link colour ?

    Hi

    I want to make a the colour of link a different colour until the web page is being previewed in another frame but when i get off that link the colour of link should change back.

    I wanted to do this as it looks more Good.

    Hope you people can help me. ?

  2. #2
    stardom's Avatar
    stardom is offline x10 Sophmore stardom is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    Lexington, Kentucky
    Posts
    162

    Re: How to make active link colour ?

    Use CSS to do this. Hope this helps

    A:link
    Defines the style for normal unvisited links.

    A:visited
    Defines the style for visited links.

    A:active
    Defines the style for active links.
    A link becomes active once you click on it.

    A:hover
    Defines the style for hovered links.
    A link is hovered when the mouse moves over it.

  3. #3
    darknessiseek is offline x10Hosting Member darknessiseek is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    10

    Re: How to make active link colour ?

    <style>
    a:link, a:visited {
    text-decoration: none;
    color: #000;
    }
    a:active, a:hover {
    text-decoration: underline;
    color: #33CC00;
    }
    </style>

    just an example

  4. #4
    amer89716 is offline x10Hosting Member amer89716 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    10

    Re: How to make active link colour ?

    I mean when a page active the colour will stay and when i move to another hyper link the colour of that link changes back and the link i clicked on changes colour.

    I am using frames you see

  5. #5
    Jennacide's Avatar
    Jennacide is offline x10 Sophmore Jennacide is an unknown quantity at this point
    Join Date
    Jun 2011
    Location
    Naraka
    Posts
    149

    Re: How to make active link colour ?

    Quote Originally Posted by amer89716 View Post
    I mean when a page active the colour will stay and when i move to another hyper link the colour of that link changes back and the link i clicked on changes colour.

    I am using frames you see
    Frames shouldn't matter, the CSS suggestions above will work, providing you link the CSS to those pages loading in the frames. Although, if you're putting someone else's site or page into that frame, then no, you don't have much control over it other than a Firefox extension that allows you to predefine specific aesthetic values for YOUR viewing and only YOUR viewing... but I digress... LOL

  6. #6
    darknessiseek is offline x10Hosting Member darknessiseek is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    10

    Re: How to make active link colour ?

    What i provided will do so... you can change the color... if your putting it in a php page it goes exactly like so above the <?php If your putting it in a css file take off the style tages... also you should have your css file included in your header for it to take effect... as for the code i provided you can place it in your header.. and it will effect all pages... IFRAMES with different websites you can not change their links as the poster above already stated you have no control of their site...

  7. #7
    amer89716 is offline x10Hosting Member amer89716 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    10

    Re: How to make active link colour ?

    Quote Originally Posted by darknessiseek View Post
    What i provided will do so... you can change the color... if your putting it in a php page it goes exactly like so above the <?php If your putting it in a css file take off the style tages... also you should have your css file included in your header for it to take effect... as for the code i provided you can place it in your header.. and it will effect all pages... IFRAMES with different websites you can not change their links as the poster above already stated you have no control of their site...
    I tried the above and i already did that in html.

    here is website.

    http://iphoneprobs.x10.mx/

    basically if i click on one link, it stays the changes to a colour of grey cause i have visted but i am saying if i click the link the colour will go red for example. and when click the next link it goes white again and the next link goes red.

    ....

+ Reply to Thread

Similar Threads

  1. Please make my website active....PLEASE HELP!!!
    By mattdon in forum Free Hosting
    Replies: 1
    Last Post: 09-02-2010, 08:21 AM
  2. Please make my websites active....HELP!!!!
    By mattdon in forum Free Hosting
    Replies: 1
    Last Post: 08-09-2010, 04:58 PM
  3. Please make my site active.
    By adobo in forum Free Hosting
    Replies: 1
    Last Post: 07-28-2010, 12:43 AM
  4. How do I make my HTML form active?
    By Steeevoe in forum Programming Help
    Replies: 8
    Last Post: 03-13-2009, 12:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers