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 1881 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: 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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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: 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.
| |
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...
| |