Stumped. Horozontal scrollling of dual table cells.

R

Richard Brooks

Basically, what I want to do is to have a viewport where an image is dropped
in (hidden) on the right hand side and for the right hand side to be
scrolled into view, when a key to go right is pressed.

I guess that two table cells with no gap between them (to look like a single
wide graphic) will allow me to drop a new image in and then scroll. So,
scrolling right would mean to drop the new view in on the right (hidden)
then to scroll the whole lot to the left left to show the new image.

How the hell do I do the control in Javascript ?

Many thanks for any reply,


Richard Brooks.
 
T

Thomas 'PointedEars' Lahn

Richard said:
Basically, what I want to do is to have a viewport where an image is dropped
in (hidden) on the right hand side and for the right hand side to be
scrolled into view, when a key to go right is pressed.

I guess that two table cells with no gap between them (to look like a single
wide graphic) will allow me to drop a new image in and then scroll.

No table at all will allow you that, too.

A table is a table is a table. [psf 3.8]
How the hell do I do the control in Javascript ?

You don't.

<a href="#foo" accesskey="r">sc<u>r</u>oll to</a>
...

You could even try

<a href="#foo" accesskey="r">sc<u>r</u>oll to foo</a>
...
<img
src="..."
alt="..."
style="position:absolute; left:100%"
id="foo"

in more recent UAs (like my Firefox 0.9.1+, where both works).

Works with Alt+R (or similar, depending on the GUI and input method),
see the `accesskey' attribute, without any script. CSS support is
required, of course, but using client-side scripting would not remove
that dependency but instead introduce another.


HTH

PointedEars
 
R

Richard Brooks

Thomas said:
Richard said:
Basically, what I want to do is to have a viewport where an image is
dropped in (hidden) on the right hand side and for the right hand
side to be scrolled into view, when a key to go right is pressed.

I guess that two table cells with no gap between them (to look like
a single wide graphic) will allow me to drop a new image in and then
scroll.

No table at all will allow you that, too.

A table is a table is a table. [psf 3.8]
How the hell do I do the control in Javascript ?

You don't.

I've done it!

I'd got so involved with the whole process I'd forgotten that I'd get any
answers. As this is a Javascript Newsgroup I'd taken it as read that
Javascript would be involved in the implementation of scrolling so didn't
want to get into the whole "sataing the obvious" bit. ;-)

It was just a matter of putting the thing inside a viewport and referencing
the left position property.

Thanks for your reply anyway,


Richard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top