鼠标悬停的麻烦 [英] Trouble with mouseover

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

问题描述

我是javascript的新手并且很难过。我有一个班级作业,我已经工作了好几天......当鼠标滚过文本时,会出现一个图像。我到目前为止的代码如下:

I am new to javascript and having a hard time. I have a class assignment that I have been working on for days...what has to happen is when the mouse rolls over the text an image is to appear. The code I have so far is as follows:

展开 | 选择 | Wrap | 行号

推荐答案

@ heapster123


很好,显然你必须使图像可见


(现在有足够的提示)


顺便说一句。你不应该把鼠标放在标题上吗?或者这样说:如何鼠标悬停在那些不存在的东西上?
@heapster123
well, obviously you have to make the image visible.

(enough hints for now)

btw. shouldn?t you mouse over the heading? or putting it that way: how to mouse over something that?s not there?


是的,我知道我必须让它可见但是如何......代码是什么?我已经搜索过了,我正在把头发拉出来!

和另外一个是的我想鼠标悬停在文字上但是如果没有身份证我怎么用呢...

不是戏弄.... LOL
Yes, I know I have to make it visible but HOW..what is the code?? I have searched and I am pulling my hair out!!
and another yes I want to mouse over the text but how do I use it if it has no ID...
don''t be a tease....LOL


@heapster123


查找,如何让它隐身(相应的是什么导致它不可见)然后反其道而行。

@heapster123


有多种方法可以获得一个元素而不是它的ID。检查它的DOM。
@heapster123
find out, how you make it invisible (resp. what causes it to be invisible) and then do the opposite.

@heapster123
there are more ways to get an Element than it?s ID. check out the DOM for it.


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

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