hyperic
+ Reply to Thread
Results 1 to 2 of 2

Thread: PHP question involving shortcut keys

  1. #1
    Join Date
    Sep 2006
    Posts
    1,649

    PHP question involving shortcut keys

    Okay, I noticed that when I'm typing here to make a post, I can press Ctrl+B and the Bold Tags will appear.

    I want to use this feature. When the user presses Ctrl+Y for example, it'll take them to a secret part of the site.

    I think this is some time of PHP thing, but it could be JS too. So, how would I do this?
    "Workers of the world unite; you have nothing to lose but your chains." -Karl Marx

  2. #2
    Join Date
    Sep 2005
    Posts
    2,050
    Quote Originally Posted by Moonbat View Post
    Okay, I noticed that when I'm typing here to make a post, I can press Ctrl+B and the Bold Tags will appear.

    I want to use this feature. When the user presses Ctrl+Y for example, it'll take them to a secret part of the site.

    I think this is some time of PHP thing, but it could be JS too. So, how would I do this?
    It's almost definitely Javascript, unless you do some sort of elite AJAX coding to check each user key press.

    You'd probably have to use onkeydown or something like that. I never learned that much Javascript, so check here:

    [url]http://www.w*schools.com/jsref/jsref_events.asp[/url]

+ Reply to Thread

Similar Threads

  1. bump keys
    By mid3vildan in forum General discussion
    Replies: 4
    Last Post: 10-19-2008, 08:01 PM
  2. Otto - *024 bit RSA keys crackable?
    By Blacksheep in forum Security & Encryption
    Replies: 6
    Last Post: 04-21-2002, 09:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts