472,805 Members | 2,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 software developers and data experts.

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

200 100+
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>
  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.             }
  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";
  21.             }
  22.             function hideHover2(){
  23.             hoverText2.innerHTML = "";
  24.             hoverText2.style.display = "none";
  25.             }
  26.           </script>
  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>  
Please Any Ideas!

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

Thank You
Jan 28 '08 #2
5,390 Expert Mod 4TB

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

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...
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...
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"...
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...
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...
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"...
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...
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...
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...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: lllomh | last post by:
How does React native implement an English player?
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.