Re: Mouseout executed twice. Programming Web Development by minitauros …event inside another event, i.e. binding the mouseout event as soon as the user mouseins, it means…the problem). What you should do is move the mouseout event to outside the mousein event. E.g.:…; console.log(e.target.width); },false); img.addEventListener('mouseout',function(e){ e.target.width-=200; console.log(e… Re: Mouseout executed twice. Programming Web Development by Rahul47 …we can see, when first time 'mouseover' takes place one 'mouseout' is bound to image. Consequently, as each time 'mouseover' …takes place 'mouseout' events pile up and increment linearly. I fail to understand… 'mouseover' second time, why does two event handlers for 'mouseout' gets executed ? Mouseout executed twice. Programming Web Development by Rahul47 …, I am dabbling with my little code here. Problem is mouseout event handler is getting executed thrice instead of twice. var….target.width+=200; console.log(e.target.width); img.addEventListener('mouseout',function(e){ e.target.width-=200; console.log(e.target… Re: Mouseout executed twice. Programming Web Development by minitauros That is because your "mouseout" event is bound as soon as the user mouseovers your image. So if a user mouses over the image 100 times, the "mouseout" event will be bound 100 times. If you follow the example I provided, your problem should be fixed :). Re: Mouseout executed twice. Programming Web Development by minitauros Why do you have your *mouseout* event listener **inside** the other event listenere in the first place? :p Re: Mouseout executed twice. Programming Web Development by Rahul47 >Why do you have your mouseout event listener inside the other event listenere in the first place? Sir, I am new to Javascript and learning events. This is as a result of experimentation. So, am trying to understand how events work. Dynamically enlarge image on mouseover and mouseout Programming Web Development by hobo38 … script that increases image size and decreases on mouseover and mouseout for multiple images per page. In an html page. This…; /> <title>Dynamically enlarge image on mouseover and mouseout</title> <style type="text/css"… Mouseover and mouseout Programming Web Development by trance girl …("slow"); return false; }); $('#mm1').mouseout(function() { $('#mm1Show').toggle("slow");…(function() { $('#mm2Show').slideDown(); return false; }); $('#mm2').mouseout(function() { $('#mm2Show').slideUp(); return false; }); }); &… Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by martin5211 …; /> <title>Dynamically enlarge image on mouseover and mouseout</title> <style type="text/css"… Re: Mouseover and mouseout Programming Web Development by Airshow …).hide(); } }); $(this.imgID).slideDown(); return false;//probably not necessary }); $('.mm').mouseout(function() { $(this.imgID).slideUp(); return false;//probably not necessary }); }); [/CODE… Re: Mouseover and mouseout Programming Web Development by trance girl …).hide(); } }); $(this.imgID).slideDown("slow"); return false; }); $('.mm').mouseout(function() { $(this.imgID).slideUp("slow"); return false; }); }); <… IE mouseout child issue Programming Web Development by shaya4207 … the [ICODE]<select>[/ICODE] tag, it triggers the mouseout event, interestingly enough the same does not happen when I… mouseover and mouseout Programming Web Development by aijaz110 i am creating website in that site i have to run news alert through javascript through event mouseover and mouseout plz help me how to perform that task in javascript? How to show full background image when mouseout? Digital Media UI / UX Design by fireburner29 Hi there, How to show full background image, when mouseout? Re: How to show full background image when mouseout? Digital Media UI / UX Design by rtrethewey You have to provide some sample code for anyone to be able to answer your question. Be sure to include the HTML element that will use the mouseout event the CSS for the element that uses the background image you want to show, and explain how you want the background image shown to the user. Re: Mouseout executed twice. Programming Web Development by Rahul47 . Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by hobo38 Thank you so much. I really appreciate your help. I am a novice and have spent 3 days playing around with this.. Thank you. Jerry Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by hobo38 When I use that in my page, now the image displays behind the other images, any ideas? Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by martin5211 Suggestions (maybe one will be enough) - <div> with more width - getElementById(id).height with lower value in the condition - <div> with auto margins or without width property in CSS. Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by martin5211 Another solution is changing z-index on divs, with z-index you could locate an image over another and build a custom header layout too. Higher values put the image on the top. This is the trick: getElementById(--id--).style.zIndex += 1 I've enclosed the source code again with new modifications Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by MidiMagic Must we really do this. It's annoying. Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by ~s.o.s~ I hope you don't say the same thing to your customers... Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by Inny could this be done with posted images? Im currently using this code [code] <script type='text/javascript'> <!-- function ResizeThem(){ maxheight=150; maxwidth=150 ; imgs=document.getElementsByTagName("img"); for (p=0; p<imgs.length; p++) { if (imgs[p].getAttribute("alt")=="user posted image")… Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by MidiMagic [QUOTE=~s.o.s~;426537]I hope you don't say the same thing to your customers...[/QUOTE] I find pages that make things appear, grow, shrink, or move to be extremely hard to read. These things may seem cutesy or fun, or "show off your JS prowess," but in some people, they cause the same danger-detecting interrupts an approaching car or … Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by Inny Good Point! Ill stick to thumbs! :D Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by murdo If you do it right it would be kind of nice, but for some reason Firefox doesnt want to move a mouseover layer. Moving layers not a problem in Firefox but in this *mouseover* case only works in IE. Here's what I did with it. This is novice stuff and needs someone better at Java than I. [code=javascript] <!DOCTYPE html PUBLIC "-//… Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by v-2smis I need help I have a photo album and i was hoping to get a code in which enlargement of photos can happen without putting the photo names as there are as many as 500 snaps there. Sid Re: Dynamically enlarge image on mouseover and mouseout Programming Web Development by hoping2 Damn, I only have a small mosaic of pictures, 12 to be exact. Ill be changing mine regulary though. Is there not a simple piece of html to be able to make each picture slightly larger & therefore sit ontop of the other pictures using html? Re: Mouseover and mouseout Programming Web Development by Airshow [QUOTE=trance girl;1377344]That works just fine. I changed your code to ....[/QUOTE] The javascript should be flexible enough to accommodate a variety of different HTML structures. [QUOTE=trance girl;1377344]But I have another problem now. I'm working in CMS and I can't put unique ID to my menu control.[/QUOTE] There may be a workaround. … Re: Mouseover and mouseout Programming Web Development by trance girl [QUOTE=Airshow;1377495]The javascript should be flexible enough to accommodate a variety of different HTML structures. There may be a workaround. Which element(s) do you not have control over? [B]Airshow[/B][/QUOTE] I don't have a control over a tag in first 'ul' that is here: [CODE] <ul id="MM"> <li><a href…