I have this little bitty script on my site that makes a jump to the top
of the screen when one double left clicks anywhere in the page.
I was wondering if it could be altered so the double left click stays
present as it is, and when a key is pressed alongside it, say.. shift,
ctrl, alt.. , it will jump to the bottom instead of the top.
Here is the code as it is now:
<script type="text/javascript">
function dblclick() {
window.scrollTo (0,0);
}
if (document.layer s) {
document.captur eEvents(Event.O NDBLCLICK);
}
document.ondblc lick=dblclick;
</script>
Is this possible at all?
Thanks!
Eadwine Rose 2 1829
"Eadwine Rose" <ea*****@gmail. comwrote in message
news:11******** *************@i 3g2000cwc.googl egroups.com...
>I have this little bitty script on my site that makes a jump to the top
of the screen when one double left clicks anywhere in the page.
I was wondering if it could be altered so the double left click stays
present as it is, and when a key is pressed alongside it, say.. shift,
ctrl, alt.. , it will jump to the bottom instead of the top.
Here is the code as it is now:
<script type="text/javascript">
function dblclick() {
window.scrollTo (0,0);
}
if (document.layer s) {
document.captur eEvents(Event.O NDBLCLICK);
}
document.ondblc lick=dblclick;
</script>
Is this possible at all?
Thanks!
Eadwine Rose
You might try placing an anchor at the bottom of the page.
You might try placing an anchor at the bottom of the page.
Thing is I know virtually NOTHING of javascript, so I have no idea on
how to even begin with this. Yes I could do it through HTML, easily,
but I want it to be sort of a mouse gesture rather than a link that has
to be clicked. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ashot |
last post by:
This is sort of both Python and Vim related (which is why I've posted to
both newsgroups).
Python related:
----------------------
I have been frustrated for quite some time with a lack of a history
command in IDLE (in fact with IDLE in general). Often I'll develop new
code at the command line, testing each line as I go. Currently I have to
copy and paste, removing outputs and the ">>>" at each line.
Is it perhaps possible to make...
|
by: Paul Cooper |
last post by:
Dear All,
I am working on a piece of Javascript code that needs to detect a
mouse-click, shift-click and control-click. The code is not my own -
it is a part of a much larger suite of routines. The code as it stands
does not work in Firefox, and I suspect that the task of feature
detection (which currently depends on browser detection) can be
carried out better. The result should be that opcode is set to 0,1 or
2 dor click,...
|
by: spence |
last post by:
Hi All
How do I make it so that when a user clicks in a search text field, the
default entry (in this case "Search") is removed automatically - they
are then faced with a blank search box and can type straight away
Thanks in advance
|
by: John M |
last post by:
Hi,
In recently recieved some excellent advice which ebnabled me to make a form
behave as a spreadsheet with respect to the down and up arrow keys. To
develop this further I would like the right and left arrow to move to the
next or previous tab control. DoCmd.GotoRecord,,AcNext does the business
for down, but nowhere can I find a 'docmd go to next tab' or words to that
effect!!!
Any ideas?
|
by: JerryP |
last post by:
Hi Group,
is there any easy way to get the status of the CTRL Key in the Button Click
event ?
I'd like to implement a functionality compareable to Windows Explorer
DELTE - it behaves a little different if SHIFT is pressed,......
Thanks !
Jerry
| |
by: Barguast |
last post by:
When a control's 'Click' event is triggered, is there a way I can test
whether the CTRL / Alt / Shift keys are pressed as well? I've thought about
capturing KeyDown events before the click but this assumes that the control
is in focus which won't necessarily be so.
|
by: Steph. |
last post by:
Hi,
A simple question : How can I detect if the CTRL key is pressed when User click on a control ?
Thanks,
Steph.
|
by: aurgathor |
last post by:
I use BC 5.02 (long is 32 bit) and I wonder if
there's any efficient code that would allow me
to left shift 64 bit values that I currently use
this way:
typedef struct {
unsigned long lsLong;
unsigned long msLong;
} b64_struct;
|
by: Armando |
last post by:
I have an app (A2000) where I am letting the user move an object on the
screen. I use the OnClick for a command button event to modify the object's
Top (or Left) properties, but you can only click slowly. That is, every
other click is ignored, because Access is seeing a double click event. I
would put the same code there, except I'm also using the SHIFT key (during
mouse click) to cause bigger moves, and there's no SHIFT flag for the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |