Current location: Hot Scripts Forums » General Web Coding » JavaScript » Hotkey Help


Hotkey Help

Reply
  #1 (permalink)  
Old 12-27-06, 09:32 AM
smithygotlost smithygotlost is offline
Aspiring Coder
 
Join Date: Jul 2006
Location: United Kingdom
Posts: 412
Thanks: 12
Thanked 3 Times in 3 Posts
Exclamation Hotkey Help

On My Website You Have To View It In f11 ( FullScreen ) Mode ! Is There Anywhere That Has A HotKey Script So That If I Put A Message Like So


*****************************************
****** Please Press F11 To Enter The Site ******
*************** Thank You *****************
*****************************************

That They Press F11 And It Redirects Them ??

thanks
Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-09-07, 07:27 PM
grafman grafman is offline
Coding Addict
 
Join Date: Dec 2006
Posts: 278
Thanks: 0
Thanked 0 Times in 0 Posts
Mike,

I'm not sure how you are using "enter the site" and "redirect" Do you mean put up a page "before" they come it and then do the key stroke and go in?

You can trap key presses and resize the browser, or you can redirect and resize with a simple script.

However, you can do an onLoad function and resize the browser to whatever size you want to unless the user has that capability disabled in their browser security options.

You don't need a key stroke either. A simple link will do the same thing and save you from having to do the keypress event trap. Its a very easy script as well. In fact both of these tasks would be relatively simple functions.

Is there some reason that a key press is preferable to a link?
__________________
"Things are difficult only while you don't understand them."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 01-10-07, 04:59 AM
smithygotlost smithygotlost is offline
Aspiring Coder
 
Join Date: Jul 2006
Location: United Kingdom
Posts: 412
Thanks: 12
Thanked 3 Times in 3 Posts
It Nots Really Prefered

Basiclly

I Wanna Have A Page that makes The Screen like When Pressing F11 As I have Build A Menu That Sits Litteraly On The Start Bar When Full Screened !

So I mean Ill Give The Script A Go If You Could Point me To A Copy Of It
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 01-13-07, 07:29 PM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
you make an index.html page, with the message you want to display. You then put this as body tag:

Code:
<body onKeyUp="if (window.event.keyCode == 111) {location = "your_real_site.htm";}">
Ofcourse, change "your_real_site.htm" to the according page.
__________________
Jack Bauer makes Chuck Norris cry
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 01:07 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.