English
PHP, HTML & JavaScript- Forum

keyboard request

 

Gerhard
Putschalka
gives it an example How I in a HTML keyboard-Keys inquire and evaluate can without in the HTML extra a Button or ähnliches for einzusetzen?

in the example is with (Mause-)Click on up.gif in the oberen plain index.html called.

<a href="../index.html"><img src="up.gif"></a>

here would like I in lieu of the Click on "up.gif" the same appeal To index.html by a Click on The "After oben" Button on the keyboard achieve.

Thank you.
 
Xprofan 11.2, Windows7 Home Premium, AcerAspire 7540G
09/08/12  
 



Hi!

Try time addHotKey and look too this here on:  [...] 
 
09/08/12  
 




Gerhard
Putschalka
Hi,
unfortunately is not the I my around the trouble To solve.
i want the in the HTML-code solve. here game Profan not!
Can the possible with JavaScript solve?
thanks
 
Xprofan 11.2, Windows7 Home Premium, AcerAspire 7540G
09/08/12  
 




Julian
Schmidt
Yes, functions by JavaScript.

here time one Link with Examples and Explanations: [...] 
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
09/08/12  
 



Hello Gerhard,

having a little while ago only by Handy here red and the your question wrong understood -

naturally GEHTS by JS what about me bound you an example on and poste the then here.
 
09/08/12  
 



so,

here the example:  [...] 
<html>
<head>
<script>
// Parts of jProfan (C) 2008-2012 David Strutz (iF) david.strutz@googlemail.com

;function int(s) {

    ;var b=parseInt(s)
    ;if (isNaN(b)) b=0
    ;return b

;}

;function st(n) {;return String(n);}

;function lever(e){

    ;if (document.getElementById(e)) return document.getElementById(e)
    ;return 0

;}

;function ui_wmKeyDown(e) {

    ;var keycode = document.all ? event.keyCode : e.which
    ;keycode=int(""+keycode)

    ;if (keycode==38) {//pfeiltaste high

        ;top.location.href="https://XProfan.com/intl/de/php,html,js/keyboard-request/"

    } else {

        ;lever("ui_debugOut").innerHTML="Taste "+st(keycode)+" pressed."

    ;}

    ;return true

;}

</script>
</head>
<body onload="document.onkeydown=ui_wmKeyDown;if (document.layers) document.captureEvents(Event.KEYDOWN)">
<div id="ui_debugOut">...</div>
</body>
</html>

If you further JS-functions benötigst which How gleichnamige XProfan-
functions use let then simply report because I have in the welt
the Herstellens of jProfan (already vieler Orts under the Haube) already very
plenty umgesetzt.
 
09/08/12  
 




Gerhard
Putschalka
thanks for the time being, into couple Meet can I it first testing.
 
Xprofan 11.2, Windows7 Home Premium, AcerAspire 7540G
09/09/12  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

13.080 Views

Untitledvor 0 min.
p.specht08/28/20
AndreasS11/30/18
iF07/03/18
Peter Max Müller10/08/17
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie