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="lo ad(); return true">
<script>
function load(){
popup = window.open('ww w.in.gr','','sc rollbars=no,men ubar=no,height= 300,width=300,r esizable=no,too lbar=no,locatio n=no,status=no' );
}
</script>[/HTML]
2 1884 acoder 16,027
Recognized Expert Moderator MVP
It shouldn't do unless you mouse out and mouse over the image again a number of times.
pronerd 392
Recognized Expert Contributor
it opens the same window 5 or more times when using mozilla. Any idea?
[HTML]<img src="1.jpg" onmouseover="lo ad(); return true">
<script>
function load(){
popup = window.open('ww w.in.gr','','sc rollbars=no,men ubar=no,height= 300,width=300,r esizable=no,too lbar=no,locatio n=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="triggerImag e" onmouseover="lo ad(this)" />
<script>
function load(tag){
popup = window.open('ww w.in.gr','','sc rollbars=no,men ubar=no,height= 300,width=300,r esizable=no,too lbar=no,locatio n=no,status=no' );
this.onmouseove r="";
}
</script>
[/HTML]
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 over the image. The images will flick through (at a
rate of about 5 per second) then pause when the user onMouseOver's.
Any help would be gratefully received.
:o)
|
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);" onMouseOut="CeaseScroll();"
class="nounderline"></a><a href="javascript:void(0);"
onMouseOver="PerformScroll(7);" onMouseOut="CeaseScroll();"
class="nounderline"></a></div>
|
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 table row and then change image back when user moves
mouse out of that row. Take a look at some samples with Javascript:
http://213.35.144.144/firmanet.dll/mudel?
fkood=BV&pfkood=10&pkood=10&tkood=1020&size=6
|
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 this finely,
though.
|
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 href="myurl1" class="leftmenu">my link label4</a>
<a href="myurl2" class="leftmenu">my link label2</a>
| |
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 help would be appreciated.
Thanks,
CJ
|
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 onMouseOver="Swap_Image(...
|
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' onclick='remember("conf.cgi")'
onmouseover='handleOver("Configure stuff")'>Settings</a></li>
</ul>
with the JavaScript:
|
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" height="15" width="85" alt="Home"
onmouseover="FP_swapImg(1,0,/*id*/'img22',/*url*/'images/home2.jpg')"</a>
|
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: 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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |