473,394 Members | 1,812 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.

onmouseover problen in mozilla

Hello. I have the following problem. I cannot use wright the onmouseover effect in mozilla browser. I have the following simple code. It works fine on ie(!) but it opens the same window 5 or more times when using mozilla. Any idea?

[HTML]<img src="1.jpg" onmouseover="load(); return true">
<script>
function load(){
popup = window.open('www.in.gr','','scrollbars=no,menubar= no,height=300,width=300,resizable=no,toolbar=no,lo cation=no,status=no');
}
</script>[/HTML]
Sep 29 '06 #1
2 1867
acoder
16,027 Expert Mod 8TB
It shouldn't do unless you mouse out and mouse over the image again a number of times.
May 15 '08 #2
pronerd
392 Expert 256MB
it opens the same window 5 or more times when using mozilla. Any idea?

[HTML]<img src="1.jpg" onmouseover="load(); return true">
<script>
function load(){
popup = window.open('www.in.gr','','scrollbars=no,menubar= no,height=300,width=300,resizable=no,toolbar=no,lo cation=no,status=no');
}
</script>[/HTML]
Try this instead. Killing the onmouseover event should stop it from re-triggering off the same event.


[HTML]
<img src="1.jpg" id="triggerImage" onmouseover="load(this)" />

<script>
function load(tag){
popup = window.open('www.in.gr','','scrollbars=no,menubar= no,height=300,width=300,resizable=no,toolbar=no,lo cation=no,status=no');
this.onmouseover="";
}
</script>
[/HTML]
May 15 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Tim | last post by:
Hope someone in the big wide world can help... What I want to do is have an image slideshow which automatically scrolls through a series of images very fast, then pauses when you move your mouse...
7
by: Eqbal Z | last post by:
Hi, I have the following code, and onmouseover/onmouseout etc. does not work in netscape 4.7. <div id="divUpControl"><a href="javascript:void(0);" onMouseOver="PerformScroll(-7);"...
2
by: Raigo | last post by:
There is a bug with IE6 handling Javascript onMouseOver and onMouseOut events. Can it be replaced somehow with CSS? For example when I want to change images when user moves mouse to certain HTML...
0
by: louissan | last post by:
Hi all, I have a slight display speed problem under IE5/6 when putting an onmouseover/out effect in a <div> tag inserted inside a relatively positioned parent block. Mozilla and Safari handle...
1
by: louissan | last post by:
Hey all, I've been fighting with IE5/6 because of its being SO slow for displaying onmouseover effects and even pseudo classes such as :hover! Here is a code example: <div id="menu"> <a...
2
by: Elisa | last post by:
I have two images, each with defined CSS hover states. I would like a mouseover on one image to trigger the hover state of the other image. Is this possible using javascript? If so, how? Any...
2
by: bissatch | last post by:
Hi, I am trying to validate my website against XHTML 1.0 transitional. Unfortunetely it throws up an error because I have used javascript event onMouseOver <span...
17
by: Christopher Nelson | last post by:
I have a menu tree made up of anchors inside list items in a multi-level list that includes HTML like: <ul id='xx'> <li><a href='conf.cgi' class='menu' target='main' title='Configure stuff'...
3
by: drjackk | last post by:
Hello, I'm trying to change the onmouseover event dynamically. This sets-up the initial onmouseover event: <a href="home.html"> <img border="0" id="img22" src="images/home1.jpg"...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
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...

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.