473,748 Members | 7,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Onmouseover,cal l function but as cursor moves - cursor changes whole time!

200 New Member
Hi, I need help please!

Onmouseover it calls a function, but onmouseover the image it changes the cursor from default ot busy the whole time.

I want it to stay to default.
I have set it o default in the div, function & onmouseover but it stil does that

Expand|Select|Wrap|Line Numbers
  1.    <div id="hoverText2" class="main" style="padding: 5px; position: absolute; display: none; width: 200px; cursor : default;"></div>
  2.  
  3.           <script type="text/javascript">
  4.             var hoverText2 = document.getElementById('hoverText2');
  5.             function showHover2(txt, e){
  6.             if(document.all){
  7.             xpos = event.clientX + document.body.scrollLeft;
  8.             ypos = event.clientY + document.body.scrollTop;
  9.             }
  10.             else{
  11.             xpos = e.pageX;
  12.             ypos = e.pageY;
  13.             }
  14.  
  15.             hoverText2.innerHTML = txt;
  16.             hoverText2.style.left = "-50px";
  17.             hoverText2.style.top = ypos + 4 + 'px';
  18.             hoverText2.style.display = "block";
  19.             hoverText2.style.cursor = "default";
  20.  
  21.             }
  22.             function hideHover2(){
  23.             hoverText2.innerHTML = "";
  24.             hoverText2.style.display = "none";
  25.             }
  26.           </script>
  27.  
  28.           <xsl:element name="asp:image">
  29.             <xsl:attribute name='id'>ttip_<xsl:value-of select='$nextNode/@name' /></xsl:attribute>
  30.             <xsl:attribute name='runat'>server</xsl:attribute>
  31.             <xsl:attribute name='imageurl'>images/help.jpg</xsl:attribute>
  32.             <xsl:attribute name='style'>cursor:default</xsl:attribute>
  33.             <xsl:attribute name='onmousemove'>ttip_<xsl:value-of select='$nextNode/@name' />.style.cursor = 'default'; showHover2('<xsl:value-of select="$nextNode/Tooltip" />', event)</xsl:attribute>
  34.             <xsl:attribute name='onmouseout'>hideHover2()</xsl:attribute>
  35.             <xsl:attribute name='class'>main</xsl:attribute>
  36.           </xsl:element>  
  37.  
Please Any Ideas!

Regards
Jan 25 '08 #1
2 2510
ismailc
200 New Member
Hi, Thanks for the assist got it sorted out!
I had to remove : style="backgrou nd: url(../../images/template/glass/c.png);
it was trying to load the image the whole time!

Thank You
Jan 28 '08 #2
gits
5,390 Recognized Expert Moderator Expert
hi,

glad to hear you got it working and for sharing the solution ...

kind regards
Jan 28 '08 #3

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

Similar topics

12
12287
by: Epetruk | last post by:
Hi all, I want a page where the contents of a table cell are replaced with an image when the mouse moves over the cell, and the text is restored when the mouse moves out. Here's the html for the page: <HTML> <HEAD> <style type="text/css">
2
6551
by: news.west.cox.net | last post by:
I have been writing a practice sliding div navigation script. I am finding myself in the position where I need to force a div into showing the hover behavior defined in css. So my question is this. If I have two divs, is there a way to make the second div display its onmouseover behavior when the mouse is over div 1?
1
1768
by: Martin Chen | last post by:
First, apologies up front, I just started futzing with javascript so be prepared for naivate. I have a web page, in a frame set, that has a table-menu bar in javascript. It relies on the "movein" function attached to "onmouseover" to trigger the chaninging of the elements background color, text color, and pointer when the mouse moves over an element. On IE the code below works fine. In firefox none of the movein function doesn't seem to...
5
3509
by: Martin Chen | last post by:
I have a frame set (as per MS FrontPage 2000). It has a contents and a main frame. The contents frame has a menu bar written with with javascript (in the context of a table). In IE6.1 everything works fine as it also does in firefox if I call the contents frame directly (i.e. outside of its frameset). However, if I call my main page (index.html) which invokes the frame set, the contents frame javascript menubar onmouseover function...
2
3357
by: Justin Rowe | last post by:
I'm attempting to design a site with alot of dynamic content and intractability, however I've hit a snag when it comes to the function of the onMouseOver and onMouseOut events. Using a bit of code from QuirksMode to grab the location of the mouse, I've built a tooltip function to show a tooltip to the user depicting the target of a link, the problem is when you mouse over the box that the tooltip function is attatched to the tooltip...
1
18853
by: den2005 | last post by:
Hi everybody, I am confused and still looking why this codes is not working. Can anyone notice or know why this code is not working? Thanks in advance. Code working: <form id="form1" runat="server"> <div> &nbsp;</div> <div>
3
3616
by: oopaevah | last post by:
I have written some dom code to create a list of divs, each with it's own id. I want to set the onmouseover and onmouseout events to highlight the div when the mouse is over it. However I cannot use the method below because oDiv.id is always set to the last div I create - so the last div is highlighted regardless of which div I am onmouseover This must be a common issue, how do I go about fixing it? I can have a separate function which...
3
3133
by: equazcion | last post by:
Hi, I have an image reference (IMG) in my page that changes depending on the value of a database field. Clicking the image triggers an Ajax call to change the database field (toggles the field value between 1 and 0). I've made it work so that the image source changes to reflect the new value once the Ajax call is complete. In other words, the image reflects the value of the database field in real-time. Kind of like a real-time checkbox. This...
4
3164
by: bgold12 | last post by:
Hey, I have kind of a weird problem. I have a span that I'm intentionally overflowing a table cell (<td>), so that it stretches over the table cells to the right of the parent table cell. I want the mouseover event to occur for the table cells that lie underneath the overflowed span, but every time i put the mouse on the span the mouseover event for the parent table cell is called. Any suggestions? Thanks.
0
8830
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,...
1
9324
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,...
0
8243
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
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...
0
6074
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();...
0
4606
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...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
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...

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.