How to you keep "active" pseudo-class, well, active?

By default, the a.link:active state is shown only for as long as the button on the mouse is pressed. When you let go, it reverts back to the regular a.link state.
How do I make the active state STICK? In other words, in a navigation menu that is permanently on the screen, I want the active state to stick permanently (until another button is pushed).
How is this accomplished?
Thanks!

Consider this code -
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style type="text/css">
.foo {
          color: red;
          font-weight: bold;
</style>
</head>
<body>
<p><a id="num1" href="#" onclick="this.className='foo';document.getElementById('num2').className='';">Foo</a></p>
<p><a id="num2" href="#" onclick="this.className='foo';document.getElementById('num1').className='';">Foo</a></p>
</body>
</html>

Similar Messages

  • How do you keep yourself well organized at work?

    For documentation I use onenote which is synced to my owncloud server so i can use it when ever needed. I also use a mix of wundlerlist and spiceworks to keep track of all my to do items and issues and requests. My number one recommendation is find the best way that works for you documenting and make sure to stick to it. Writing or typing it down will make sure that you retain what you did that day! 

    I am about to begin my first IT career in about a week (as a help desk position.)
    I'm very excited about my new career shift but am bit worried at the same time.
    That being said, I have a question that I want to ask all of you guys out there who has been working in the field for a quiet some time.
    How do you keep yourself well organized when it comes to documenting results?
    I was taught to document EVERYTHING after you solve your assigned tickets.
    Are there any great tools that could come in handy when you document things?
    Plus, what would be a proper way of documenting?
    Would you document every single steps you've tried to solve your ticket?
    Any tips or suggestions would be appreciated.
    Thank you!
    This topic first appeared in the Spiceworks Community

  • How do you keep a VI running while waiting for user input?

    I have a VI that:
    1.  The user enters set points.
    2.  The user starts the VI and the VI sends the set points to an external process via a serial interface.
    3.  The VI  stops running.
    4   The user waits for the external process to complete.
    5.  Repeat sequence. Go to Step 1.
    This works well except for one small problem.  Starting the VI in step 2 causes an external micro controller to reset.  During the reset it will ignore set point commands.  To get around this problem a delay has been added between when the VI opens the serial port and when the VI sends the set points to the external process   Is it possible to keep a VI running continuously in this type of application, thereby eliminating the start up and shut down of the serial interface?
    If yes, how do you keep a VI running while waiting for user input?
    Howard

    The ones for the event structure specifically. I'm posting from my phone. Look at the basic ones for user input. even a simple while loop with a boolean and a case statement would work.

  • How can you keep your iPhone 4 (using it as my car's iPod) staying on the Audible app?  When I leave the car and return to continue hearing a book, it has switched to iTunes.

    How can you keep your iPhone 4 (using it as my car's iPod) staying on the Audible app?  When I leave the car and return to continue hearing a book, it has switched to iTunes.

    The first time an iPhone is connected to iTunes that is used to sync with another iPhone or iOS device, you are prompted to transfer the backup for the other iPhone or iOS device or to set up the iPhone as a new iPhone.
    The former does as provided - it transfers the backup for the other iPhone or iOS device to the iPhone replacing all data on the iPhone that is included with the backup being transferred. The latter does nothing allowing you to make your various selections for the iPhone sync preferences with iTunes.
    This is designed to be done right away with a new iPhone.
    If you don't have a backup for the iPhone with iTunes on your computer and don't have an iCloud backup that hasn't been updated since choosing to transfer the backup for your iPod Touch to the iPhone, the data that was on the iPhone is gone.

  • How do you keep your message from appearring on a locked screen

    how do you keep your message from appearring on a locked screen

    Go to SETTINGS --> NOTIFICATIONS --> MESSAGES
    Change "View in lock screen" to OFF
    That should sort it for you.

  • HT4489 this is ridiculous! how do you keep the size of the picture for a contact that small? it is usually a piece of  a lager picture... any way to make the size of the pictures the 224 KB they want? I always thought the application cropped the picture t

    this is ridiculous! how do you keep the size of the picture for a contact in the address book that small? it is usually a piece of  a lager picture... any way to make the size of the pictures the 224 KB they want? I always thought the application cropped the picture to fit their requirements...
    Help
    Leo

    Gem
    Events are organised strictly on date and time, as read by iPhoto from the Exif data in the Photo. You cannot manually sort.
    Create Albums. You can do much more organising with Albums, use Photos from different events, place them as you will. Best of all, Albums use no disk space at all. They simply reference the file on the Hard Disk. So a pic can be 1, 10 or 100 Albums with no wasted disk space whatever.
    Regards
    TD

  • How do you keep your purchased apps if you are forced to change your Apple ID?

    How do you keep your purchased apps if you are forced to change your Apple ID? A good example is if you are forced to change your email, which you use as your Apple ID.  what if it is a security app and you lose a lot of data if you lose the app? Why are the apps tied to the Apple ID rather than the user? Why is it impossible to globally change the Apple I D?

    All content is tied to the account, but you can change the primary email address on an account e.g. you can log into your account via the Store > View Account on your computer's iTunes and there should be an Edit button to the right of your account id on your account's page, or similarly on your iPad try tapping on your id in Settings > iTunes & App Store and view your account. Or you can update it by logging into it via this page http://appleid.apple.com . You shouldn't lose any content on the account if you update it.
    After updating the account you may need to log out of your iPad by tapping on your id in Settings > iTunes & App Store and then log back in with the updated version for it to be 'refreshed' on it

  • How do you keep your VPN clients up to date?

    Hi, how do you keep your Cisco VPN clients up to date? Our users connect to a Cisco 3015 Concentrator. It needs to be as automatic as possible.
    Thanks

    Check this link,
    http://www.cisco.com/en/US/docs/security/vpn_client/cisco_vpn_client/vpn_cli
    ent46/administration/guide/vcAch3.html
    Example:
    Steps to perform an automatic update for VPN client :
    ===================================================
    1. Download update-4.8.00.0440-major-K9 file on your PC from the link below and unzip it.
    http://www.cisco.com/cgi-bin/tablebuild.pl/vpnclient-3des
    It will have the following files::
    - binary_config.ini
    - sig.dat
    - vpnclient-win-is-8.00.0440-k9.exe
    - vpnclient-win-msi-8.00.0440-k9.exe
    2. Create a webserver with a folder and move all the above files to this folder on webserver.
    3. Now on your vpn client create a new profile. This profile file will appear in the profiles folder of the vpn client. Copy this file to your desktop and zip it. Name the
    zipped file as profiles.zip. Delete the profile from the client.
    4. Make a copy of your binary_config.ini on your desktop. Rename it to new_update_config.ini. This is just to make sure its not saved as a txt file.
    Open the above file and write the following on it:
    [Autoupdate]
    Required=1
    5. Now move the new_update_config.ini and profiles.zip to the webserver. Once we browse to the webserver it should look like --
    http://webserver/~razshah/vpn_profile_update462/
    Index of /~razshah/vpn_profile_update462
    Name Last modified Size Description
    Parent Directory 09-Mar-2005 13:24 -
    binary_config.ini 09-Mar-2005 13:26 1k
    new_update_config.ini 11-Mar-2005 11:35 1k
    profiles.zip 09-Mar-2005 13:26 1k
    sig.dat 09-Mar-2005 13:26 2k
    vpnclient-win-is-4.6..> 09-Mar-2005 13:26 7.6M
    vpnclient-win-msi-4...> 09-Mar-2005 13:26 10.3M
    6. The concentrator is configured as follows:
    Client Type is Windows
    URL http://webserver/~razshah/vpn_profile_update462
    Revisions 4.6
    7. On your PC go to the VPN Client > updates folder. Delete the update_config file if its already there. This folder should have only autoinstall (this file will be added if update works) autoupdate header files.
    The update does take about 5 mins. To see the new file we have to close and reopen the client. Once connected make sure you are able to browse to the webserver and see all the files.
    1- Auto update runs only on Windows 2000 and Windows XP, all other client types update manually. Windows NT users get notified and can get an update manually from the update server.
    2- Remote users must have the VPN Client for Windows 4.6 or greater installed on their PCs to use the automatic update feature.
    Regards,
    ~JG

  • How do you call a java class from the main method in another class?

    Hi all,
    How do you call a java class from the main() method in another class? Assuming the two class are in the same package.
    Thanks
    SI
    Edited by: okun on May 16, 2010 8:40 PM
    Edited by: okun on May 16, 2010 8:41 PM
    Edited by: okun on May 16, 2010 8:47 PM

    georgemc wrote:
    To answer your impending question, either the method you're calling has to be static, or you need an instance of that other class to invoke it against. Prefer the latterAnd to your impending question after that: no, don't use the Singleton pattern.

  • HT4236 How do you keep photos in the same sequence on the iPhone that they are on the PC folder?

    How do you keep photos in the same sequence in the iPhone as they are in the folder on the PC??

    When I sync my photos they are listed alphabetically (by folder) and within the folders, listed alphabetically again by the name assigned to the photo. The only way I can think of to keep the order that you have in your computer would be to assign a letter as a prefix to each photo. If you have more than 26 photos in a folder, you can double the letters, etc. I think that will keep the photos in the order you want.

  • When burning a playlist to disc, how do you keep the songs in original order?

    When burning a playlist to disc, how do you keep the songs in original order?

    If you are burning an audio CD, they will burn in sequential order as in your playlist.
    If you are burning an MP3 CD or a data CD, they will burn as individual files, and can be sorted any way you like when you view the CD.  For an MP3 CD, the files will be prepended with a sequence number, so if you sort by filename, they will be in the original order.

  • How do you keep the browser heading from showing?

    How do you keep the browser heading from showing in the
    output? I did this once but can't figure out how!
    Thanks in advance,
    Rosie

    You asked...
    quote:
    Is there a way to shrink the application you're capturing so it
    fits within a given capture window rather than requiring scrolling,
    or would I have to go back to the application developers for that?
    (I realize that would shrink the size of everything on the screen,
    but in some cases, that would be worth it to be able to show a
    window without scrolling.
    If, by "shrink" ... you mean by using the AppSizer, the
    answer is "not really". You can configure AppSizer to a defined
    size, then with the mouse pointer double-arrowed on the "edge" of a
    window, right-click and your window-size selections will appear in
    the AppSizer "list" (that you set up) and can be selected there.
    But there is no re-scaling of the window contents, if that is
    what you mean, so the smaller window may now require scrolling.
    But keep in mind that if you use the recording option for
    "Software Simulation" > "Custom Size", you can then snap the
    application window to that size...

  • How do you compile Flex-dependent classes with ASC?

    Hi,
    I've been trying unsuccessfully for most of the evening to compile a .as file that relies on mx.collections.ListCollectionView using asc. I figured I could just import the Flex framework SWCs from the command line with asc, but asc doesn't seem to respect SWCs - it only seems to respect .abc files.
    So, I've spent most of my time trying to compile the Flex framework into a single .abc file that I can import whenever I want to compile a class that relies on Flex. I figured I could make a base .as file with include statements for all of the Flex .as files (copying the approach I saw for files like builtin.as) and compile that, but all I seem to get are compiler errors - mostly "[Compiler] Error #1181: Forward reference to base class (base class name)."
    I have a feeling I'm doing this completely the wrong way. I'd very much appreciate any assistance that anybody can offer me.
    Thanks,
    - max

    <div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>I use MXMLC to compile my .as file projects.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Alex Harui<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Flex SDK Developer<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><a href="http://www.adobe.com/"><span style='color:blue'>Adobe<br />Systems Inc.</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Blog: <a href="http://blogs.adobe.com/aharui"><span<br />style='color:blue'>http://blogs.adobe.com/aharui</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Maxim Porges<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Monday, February 09, 2009 9:22 PM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> How do you compile Flex-dependent classes with ASC?<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new discussion was started by<br />Maxim Porges in <br><br /><br><br /><b>Developers</b> --<br><br />  How do you compile Flex-dependent classes with ASC?<br><br /><br><br />Hi, <br><br /><br><br />I've been trying unsuccessfully for most of the evening to compile a .as file<br />that relies on mx.collections.ListCollectionView using asc. I figured I could<br />just import the Flex framework SWCs from the command line with asc, but asc<br />doesn't seem to respect SWCs - it only seems to respect .abc files. <br><br /><br><br />So, I've spent most of my time trying to compile the Flex framework into a<br />single .abc file that I can import whenever I want to compile a class that<br />relies on Flex. I figured I could make a base .as file with include statements<br />for all of the Flex .as files (copying the approach I saw for files like<br />builtin.as) and compile that, but all I seem to get are compiler errors -<br />mostly &quot;[Compiler] Error #1181: Forward reference to base class (base<br />class name).&quot; <br><br /><br><br />I have a feeling I'm doing this completely the wrong way. I'd very much<br />appreciate any assistance that anybody can offer me. <br><br /><br><br />Thanks, <br><br /><br><br />- max <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b7d5d2">How do you compile<br />Flex-dependent classes with ASC?</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b7d5d2!folder=.3c060fa3">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>

  • Lightroom 5 make adjustments want to transfer to photo shop to make additional adjustments. how do you keep the adjustments made in lr5 when photo is transferred to photo shop

    lightroom 5 make adjustments want to transfer to photo shop to make additional adjustments. how do you keep the adjustments made in lightroom 5 when photo is transferred to photo shop
    I am not able to keep the changes made in light room when I transfer to photo shop

    Something you need to understand. Unless you are using the latest version of Photoshop Elements, it's possible that some of the adjustments that you make in Lightroom won't transfer to Elements if you choose the option to open anyway. If you choose the option to edit a copy with Lightroom adjustments then Lightroom will create a TIF or PSD file (depending on your preferences), and that file will include all of the adjustments that you have made using Lightroom. Then you can finish your work in Photoshop Elements.
    The process of transferring an image from Lightroom to Photoshop or Photoshop Elements involves the Camera Raw plug-in. It has to be used to interpret the Lightroom adjustments and apply those adjustments to the image after it has been converted. Files open in Elements or Photoshop or no longer raw images because those programs are incapable of editing raw image data. I don't know if this will help you in this situation. Feel free to ask if you have more questions.

  • HT3215 How do you keep the clock face showing all the time without the screen going dark?

    How do you keep the clock face showing all the time without the screen going dark?

    Thanks.  I saw a number of answers to the same basic question after I posted my question and apparently there are ways to to keep it on but, as you said, it will drain the battery quickly.

Maybe you are looking for