The enclosed html snippet displays an area map. The behavior I want
is for each area to show up (eg show the outline of the poly) when the
user mouses over it. This happens nicely BUT in order for this to
occur, the user must hit the tab key to set the focus into the image
(or the map -- I am not sure which at this point).
In any case, I need a way to automatically force the browser focus
into the image (or map) -- because end-users do not understand about
using the tab key to move browser focus when there is no obvious form
in front of them.
So far I have tried several different permutations using focus() and
setActive() and had no success.
And lastly, yes, an IE-specific solution is just-fine-thank-you.
Thanks in advance for your help
---------------------------code begins-------------------------
<html>
<body>
<img src="combo1.png "
onMouseOver="do cument.getEleme ntById('mymap') .setActive()"
usemap="#mymap"/>
<map name="mymap" id="mymap">
<area alt="1" title="1" shape="poly" coords="60,15,9 0,15,90,35,60,3 5"
tabindex="1"
onMouseOver="th is.focus();"
onMouseOut="thi s.blur();"
href="#" target="_self" />
<area id="area1" alt="2" title="2" shape="poly" tabindex="2"
coords="90,120, 110,120,110,140 ,90,140" href="#" target="_self"
onMouseOver="th is.focus();"
onMouseOut="thi s.blur();"
onclick="javasc ript:alert(wind ow.event.srcEle ment.tagName);w indow.event.src Element.focus() "
/>
</map>
</body>
</html>
------------------------------code ends------------------------- 2 8263
Well, personally for me in ie 5.5 this code seems to do what you request.
Even without the focus being on the image (just on the area)
What browser are you using? It doesn't seem to work in ns 4.75 though, but
that isn't a suprise really.
Maybe that helps......what is it not doing for you? it's
highlighting/focusing on mouseover the area and dehighlighting/bluring on
mouseout of the area.
Stu
"Charles Eubanks" <ce******@alpha blox.com> wrote in message
news:df******** *************** ***@posting.goo gle.com... The enclosed html snippet displays an area map. The behavior I want is for each area to show up (eg show the outline of the poly) when the user mouses over it. This happens nicely BUT in order for this to occur, the user must hit the tab key to set the focus into the image (or the map -- I am not sure which at this point). In any case, I need a way to automatically force the browser focus into the image (or map) -- because end-users do not understand about using the tab key to move browser focus when there is no obvious form in front of them. So far I have tried several different permutations using focus() and setActive() and had no success.
And lastly, yes, an IE-specific solution is just-fine-thank-you. Thanks in advance for your help
---------------------------code begins------------------------- <html> <body> <img src="combo1.png " onMouseOver="do cument.getEleme ntById('mymap') .setActive()" usemap="#mymap"/> <map name="mymap" id="mymap"> <area alt="1" title="1" shape="poly" coords="60,15,9 0,15,90,35,60,3 5" tabindex="1" onMouseOver="th is.focus();" onMouseOut="thi s.blur();" href="#" target="_self" /> <area id="area1" alt="2" title="2" shape="poly" tabindex="2" coords="90,120, 110,120,110,140 ,90,140" href="#" target="_self" onMouseOver="th is.focus();" onMouseOut="thi s.blur();"
onclick="javasc ript:alert(wind ow.event.srcEle ment.tagName);w indow.event.src E
lement.focus()" /> </map> </body> </html> ------------------------------code ends-------------------------
I am running IE6. I will try this on 5.5 and/or 5.0 to see if
anything is different. The code I included is simplified since there
are items surrounding the image. But so far even this simple version
does not seem to work unless the I click on the image and then hit the
tab key.
Thanks for your time.
"Stuart Palmer" <tr**********@y oucant.com> wrote in message news:<bp******* ****@sp15at20.h ursley.ibm.com> ... Well, personally for me in ie 5.5 this code seems to do what you request. Even without the focus being on the image (just on the area)
What browser are you using? It doesn't seem to work in ns 4.75 though, but that isn't a suprise really.
Maybe that helps......what is it not doing for you? it's highlighting/focusing on mouseover the area and dehighlighting/bluring on mouseout of the area.
Stu
"Charles Eubanks" <ce******@alpha blox.com> wrote in message news:df******** *************** ***@posting.goo gle.com... The enclosed html snippet displays an area map. The behavior I want is for each area to show up (eg show the outline of the poly) when the user mouses over it. This happens nicely BUT in order for this to occur, the user must hit the tab key to set the focus into the image (or the map -- I am not sure which at this point). In any case, I need a way to automatically force the browser focus into the image (or map) -- because end-users do not understand about using the tab key to move browser focus when there is no obvious form in front of them. So far I have tried several different permutations using focus() and setActive() and had no success.
And lastly, yes, an IE-specific solution is just-fine-thank-you. Thanks in advance for your help
---------------------------code begins------------------------- <html> <body> <img src="combo1.png " onMouseOver="do cument.getEleme ntById('mymap') .setActive()" usemap="#mymap"/> <map name="mymap" id="mymap"> <area alt="1" title="1" shape="poly" coords="60,15,9 0,15,90,35,60,3 5" tabindex="1" onMouseOver="th is.focus();" onMouseOut="thi s.blur();" href="#" target="_self" /> <area id="area1" alt="2" title="2" shape="poly" tabindex="2" coords="90,120, 110,120,110,140 ,90,140" href="#" target="_self" onMouseOver="th is.focus();" onMouseOut="thi s.blur();" onclick="javasc ript:alert(wind ow.event.srcEle ment.tagName);w indow.event.src E lement.focus()" /> </map> </body> </html> ------------------------------code ends------------------------- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kevin Muenzler, WB5RUE |
last post by:
How do I force a browser to download a file instead of displaying it? In
other words I have a page with MP3 and WMA files on it and I would like for
the visitor to download the file instead of play it without having to
right-click and save.
How can I force the browser to pop up the "save file as" dialog box instead
of playing it? I know that I can encapsulate it in a zip file which will
download and open WinZip.
Thanks
|
by: S P Arif Sahari Wibowo |
last post by:
Hi!
Do you know how to put a form's Access-Visual-Basic-code that will force
the form to be inserted, while the user has not type anything in the form,
without changing focus, selection, etc.?
Here is the story.
I have this structure:
|
by: annagel |
last post by:
I am looking for a way to force a Tkinter window into focus on a system
level. I know the force focus method should bring one window of my
application into focus, but it seems I need to have some part of my
application already in focus on a system level to make this work. If
for example I am entering text at the command line and call a
force_focus on my root window the call will not return till I click on
a window in my application. The...
|
by: Alex Calder |
last post by:
How's that for a subject line? :)
OK, here's the deal.
I have a web page that features a Flash movie about halfway down the
page, and inside that Flash movie is content that typically exceeds
the height of the movie, and accordingly, scrolls via use of a scroll
bar.
I've been testing out this page on friends, and the common complaint
|
by: sheldonlg |
last post by:
I have a problem with not seeing the current focus while in a particular
screen in a my app. The focus does not show for a type=text or
textarea. I have tried to reproduce this problem in a test application,
but have not been successful is doing that.
The actual app has a screen which is displayed on a template and the
contents are the return from an AJAX call. In that content there is a
hidden block. Clicking on a button in the...
| |
by: paulcybulski |
last post by:
I want to have the flash document have focus when the page initially loads...so the user can use the mouse scroll wheel to zoom in and out on the map that is on stage...(without having to click inside the browser window first)...
Now, I have already gotten this to work with IE by using the following code...
<body onLoad="window.document.eXfX.focus();">
But like I said, this only works in IE, and I cannot find any information on forcing...
|
by: =?Utf-8?B?U2hhcm9u?= |
last post by:
Hello experts,
I posted a disturbing question in here:
http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.dotnet.languages.csharp&mid=dedc665f-91c0-4fa4-a103-a98a6808759c
But no one have answered it.
Is not clear? or maybe it a Framework bug?
Please help.
|
by: AAaron123 |
last post by:
<body runat="server" id="MainBody">
<form id="form1" runat="server" style="background-color:green; width: 100%;
height: 100%">
<br />
Table1" runat="server" Style="background-color:Yellow; width: 100%; height:
90%" BorderColor="Maroon"
|
by: Conrad Lender |
last post by:
In a recent thread in this group, I said that in some cases object
detection and feature tests weren't sufficient in the development of
cross-browser applications, and that there were situations where you
could improve the application by detecting the browser vendor/version.
Some of the posters here disagreed. Since then, I've had to deal with a
few of these cases; some of them could be rewritten to use object
detection, and some couldn't....
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |