Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16447
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Date | Sun, 07 Oct 2012 15:40:37 +0200 |
| From | Luuk <luuk@invalid.lan> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Persistent onmouseout/hover |
| References | <fno278h63p6td5tdotujtdujpehmri0g11@4ax.com> |
| In-Reply-To | <fno278h63p6td5tdotujtdujpehmri0g11@4ax.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Message-ID | <lbd8k9-ci3.ln1@luuk.invalid.lan> (permalink) |
| Lines | 31 |
| NNTP-Posting-Host | 2001:980:9089:1:bda9:f0c5:e2ed:a453 |
| X-Trace | 1349617801 news.xs4all.nl 6939 [2001:980:9089:1:bda9:f0c5:e2ed:a453]:34079 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.javascript:16447 |
Show key headers only | View raw
On 07-10-2012 13:25, joe wrote:
> I have a sidebarmenu vertical menu. When mouse is over a selection the selection
> changes color. When mouse leaves the selection the color changes back to default
> immeadiately.
>
> I'd like the selecttion color to stay a bit longer on the screen when mouse moves
> out (ie onmouseleave). How do I do that?
>
something like this (sorry for the linenumers ;):
1 <html>
2 <head>
3 <title>onmouseout</title>
4 <script type="text/javascript" >
5 function one(t) {
6 t.style.color = 'red';
7 }
8 function two(t) {
9 setInterval(function(){myTimer(t)},3000);
10 }
11 function myTimer(t) {
12 t.style.color = 'black';
13 }
14 </script>
15 </head>
16 <body>
17 <a href="" onmousemove="one(this);"
onmouseout="two(this);">testlink</a><br>
18 </body>
19 </html>
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Persistent onmouseout/hover joe <mt@invalid.com> - 2012-10-07 14:25 +0300
Re: Persistent onmouseout/hover Luuk <luuk@invalid.lan> - 2012-10-07 15:40 +0200
Re: Persistent onmouseout/hover joe <mt@invalid.com> - 2012-10-07 19:15 +0300
Re: Persistent onmouseout/hover Luuk <luuk@invalid.lan> - 2012-10-07 19:00 +0200
Re: Persistent onmouseout/hover Danny <dann90038@gmail.com> - 2012-10-07 12:00 -0700
csiph-web