472,969 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,969 software developers and data experts.

Keyboard navigation in photoalbum

Hi!

I've just started to learn PHP, so this may be a dumb quiestion, but I'll
ask it anyway...

Is it possible to create a photoalbum (or make use of such) with PHP,
where I could navigete with my keyboard? When some picture from a gallery
would be selected, could I navigate to next or previous picture by using
for example buttons "n" and "p" from my keyboard? Is this possible to do
with PHP or should I use JavaScript or such instead?

Thanks!

Juha-Markku Liikala
Department of Information Processing Science
University of Oulu, Finland
Jul 17 '05 #1
2 2129
Juha-markku Liikala wrote:
Hi!

I've just started to learn PHP, so this may be a dumb quiestion, but I'll
ask it anyway...

Is it possible to create a photoalbum (or make use of such) with PHP,
where I could navigete with my keyboard? When some picture from a gallery
would be selected, could I navigate to next or previous picture by using
for example buttons "n" and "p" from my keyboard? Is this possible to do
with PHP or should I use JavaScript or such instead?


php is server side. Your script has finished execution by the time the
document is displayed.

Javascript can capture keys:

function keypress() {
key = event.keyCode;
}

document.onkeydown = keypress();

Jul 17 '05 #2
On Thu, 20 Nov 2003 14:21:00 +0200, Juha-markku Liikala
<jl******@mail.student.oulu.fi> wrote:
Hi!

I've just started to learn PHP, so this may be a dumb quiestion, but I'll
ask it anyway...

Is it possible to create a photoalbum (or make use of such) with PHP,
where I could navigete with my keyboard? When some picture from a gallery
would be selected, could I navigate to next or previous picture by using
for example buttons "n" and "p" from my keyboard? Is this possible to do
with PHP or should I use JavaScript or such instead?


If you want to use an existing album site, try Opera 7. It can
automatically work out which links are the "previous" and "next" ones.
You can navigate these links by pressing CTRL+ the left and right
arrow keys. I find this feature invaluable for speedy browsing of
search results from Google, eBay, etc.

If you're writing one and want to add this feature, try adding LINK
elements in your <head> thus:
<link rel="prev" href="album.php?page=4">
<link rel="next" href="album.php?page=6">

Some browsers may allow keyboard navigation of these links.

I was also going to suggest using the accesskey attribute, but from
what I've read it appears poorly supported and inconsistently
implemented.

--
David ( @priz.co.uk )
The Internet Prisoner Database: http://www.priz.co.uk/ipdb/
The Tarbrax Chronicle: http://www.tarbraxchronicle.com/
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andrus Moor | last post by:
I want to use the keyboard keys for navigation in menu: 1. Alt+hotkey must activate menu bar 2. Left and right arrow must move between menus, 3. Up and Down arrow move between menu items. 4....
9
by: Marek Mand | last post by:
How to use generated keyboard events? What I am trying here to do is in onkeyup event handler http://www.hot.ee/idaliiga/braggart/createEventTest.htm generate a (shift)TAB keydown so the...
8
by: Yeah | last post by:
I wish to use a drop box where each Option will not take the user to a web page - but a certain location on the same page the drop box exists. For example, Option 1 would take the user to "Chapter...
1
by: Richard Coutts | last post by:
I have a Continous Form with 5 or so fields for each record, in a line from left to right. Because the Contuous Form lists several records at once, the form looks pretty much like a Datasheet. ...
1
by: Stefan | last post by:
I'd like to display the keyboard navigation indicators in my C# application without the user having to press the Alt key and regardless of the machines global setting (Hide keyboard navigation...
2
by: michael sorens | last post by:
After extensive searching of the docs, I find no mention of support for Ctrl-Tab and Ctrl-Shift-Tab to navigate among tabs in a TabControl. I am surprised that such a common/standard keyboard...
2
by: Samuel Shulman | last post by:
I just started using VS 2005 and I can't find the Navigation buttons (which are very useful) Were they removed from this version or they can be found elsewhere? Thank you, Samuel
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.