473,394 Members | 1,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Really annoying flickering

Hi guys,

You'll see down on the bottom right of this map I have two roll-
over images (I haven't got round to doing all the other roll-overs
until I get these working!!!)

http://www.xlhi.com/google_groups.php

I keep getting this annoying flicker!!!

I'm completely stuck.

Any advice would be much appreciated.

Best regards,

Eamorr
Jun 27 '08 #1
1 1796
Ugo
Hi guys,
You'll see down on the bottom right of this map I have two roll-
over images (I haven't got round to doing all the other roll-overs
until I get these working!!!)
http://www.xlhi.com/google_groups.php
I keep getting this annoying flicker!!!
I'm completely stuck.
Any advice would be much appreciated.
Ok, I found the problem:
when the mouse goes over the map-area, the comming up of the image invokes
onmouseout event, and so the flicker...

One solution may be the image to have a z-index minor of map
<html><head>

<script type="text/javascript">
function mouseOverArea(county,event,obj)
{
document.getElementById(county+'_img').style.displ ay='block';
event.cancelBubble=true;
}
function mouseOutArea(county,event,obj)
{
document.getElementById(county+'_img').style.displ ay='none';
}
function placeCounty(county,dx,dy)
{
var img_pos_x=document.getElementById('map_bg').offset Left;
var img_pos_y=document.getElementById('map_bg').offset Top;

document.getElementById(county+'_img').style.left= (img_pos_x+dx)+'px';
document.getElementById(county+'_img').style.top= (img_pos_y+dy)+'px';
}
window.onload=function()
{
placeCounty('Wexford',321,384);
}
</script>
<style type="text/css">
img.map_rollover{
position: absolute;
display: none;
z-index: 1;
}
#map_bg
{
position:absolute;
z-index:2;
}
</style>
</head>
<body>

<img id="Wexford_img" src="google_groups.php_files/map_Wexford.png"
class="map_rollover">

<img id="map_bg" src="google_groups.php_files/Ireland.png" usemap="#map"
border="0">

<map name="map">
<area shape="poly"
coords="349,387,355,395,360,396,366,392,368,386,37 2,383,376,381,385,382,391,385,387,397,387,405,388, 412,378,426,374,440,374,449,379,457,376,465,368,46 5,356,466,346,463,339,460,330,465,328,472,325,464, 320,459,319,454,318,445,322,437,325,430,330,425,33 5,418,338,409,342,402,348,401,349,393"
alt="Wexford" href="http://www.xlhi.com/orderCab.php?county=Wexford"
onmouseover="mouseOverArea('Wexford',event,this)"
onmouseout="mouseOutArea('Wexford',event,this)">
</map>

</body></html>
P.S.
- Make attention to alpha channel of PNG image, there are problems with
IE<7
- Call placeCounty() function on onload of the page
Jun 27 '08 #2

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

Similar topics

3
by: Shoaib | last post by:
I have an IFRAME in HTML page whose source is set to some xml page.XML page gets displayed properly. But when i open some other IFRAME on top that IFRAME displaying xml, there is lot of flickering...
6
by: Joaquin Grech | last post by:
Hi I did alot of research on this on the web and msdn and I couldn't find anything. I have a listview showing as a grid (table looking, with rows and columns and no images at all, only text)....
1
by: Jack Smash | last post by:
Hi, I'm using a UserControl object for all the graphics handling in my application. However, if I select an image and move it around, I get flickering. So in order to get rid of the flickering,...
2
by: John Lee | last post by:
Hi, I have a windows application that uses the listview to display about 50 items in detailed view - 4 columns. The first column is static and other columns will be updated in 100-1000ms - it...
2
by: John Lee | last post by:
Thanks Jay for your response. I tried your code and it still flickering a lot. To demonstrate it, you can grab a listview, create 3 columns - name, value, timestamp, in form_load event to add 50...
8
by: benben | last post by:
I created a form and overrided OnPaint, OnClick and OnResize methods. My OnPaint calls base.OnPaint then repaints the whole screen. The screen flickers a lot! It didn't happen when the app was...
6
by: Mark Thompson | last post by:
I have a problem with my Visual Basic .NET 2003 application which I have so far been unable to resolve. I am trying to get an OpenGL control that I have created working properly as a control on...
3
by: Maya | last post by:
Hi all, We have a windows forms application with different controls used inside, each control has several input items such as textboxes and some treeviews.. etc. We have been trying to...
1
by: sj | last post by:
Flickering Subform! I am developing a Quotation system in Access 03. At entry, users enter data thru' a form with subform. However, the subform keep flicker when I run the system on computer...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.