暂停onmouseover检查 [英] Suspend an onmouseover check

查看:102
本文介绍了暂停onmouseover检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨Al



作为一个新手,我正在努力解决可能是一个简单的代码更改,所以非常感谢任何帮助。



我有一个工作onmouseover测试,它调用一个函数,我想暂时暂停这个函数,所以函数一直运行(不管鼠标是否在我的字段上)。



Hi Al

As a newbie I am struggling with what is probably a simple code change so would appreciate any assistance.

I have a working onmouseover test which calls a function and I want to temporarily suspend this so the function runs all the time (irrespective of whether the mouse is over my field).

"<div style=' top: "+ yy +"px; left: "+ xx+"px; position: absolute; z-index: 1; visibility: show;'><table><tr><td align=left><img src='"+icon+"' border=0 /><br><b><a href='' onmouseover='javascript:functionname(function parameters;);' >"+name+"</a></b></td></tr></table></div>";





所以我想我可以修改为 -





So I thought I could just modify this to -

"<div style=' top: "+ yy +"px; left: "+ xx+"px; position: absolute; z-index: 1; visibility: show;'><table><tr><td align=left><img src='"+icon+"' border=0 /><br><b><a href=''  javascript:functionname(function parameters;); >"+name+"</a></b></td></tr></table></div>";





然后该函数将无关地运行,但事实并非如此。我究竟做错了什么?可能只是语法?



问候

活跃



什么我试过了:



删除onmouseover检查不会调用该函数。



And the function would then run irrespective, but it doesn't. What am I doing wrong? Possibly just syntax?

Regards
Active

What I have tried:

Removing the onmouseover check does not call the function.

推荐答案

你好理查德



我在上面提到并在下面复制的代码(带有onmouseover部分)已经是主要功能的一个部分,由另一部分自动调用/运行代码。



Hello Richard

The code I presented above and reproduced below (with the onmouseover section) is already a subsection of a main function which is called / run automatically by another part of the code.

"<div style=' top: "+ yy +"px; left: "+ xx+"px; position: absolute; z-index: 1; visibility: show;'><table><tr><td align=left><img src='"+icon+"' border=0 /><br><b><a href='' onmouseover='javascript:myfunctionname(myfunctionparameters);' >"+name+"</a></b></td></tr></table></div>";





我需要更改代码,所以当主函数运行时,这个子部分调用/运行myfunctionname(myfunctionparameters)而不依赖于任何鼠标移动,鼠标悬停等。我唯一的问题是尝试找出正确的语法来使用。



所以代替onmousever =我需要go =或start =或call =或run =或其他什么?



问候

有效



I need to change the code so when the main function runs then this subsection calls / runs myfunctionname(myfunctionparameters) without relying on any mouse movement, mouseover etc. My only problem is trying to work out the correct syntax to use.

So instead of onmousever= I need go= or start= or call= or run= or something else?

Regards
Active


这篇关于暂停onmouseover检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆