Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #15178
| Date | 2012-07-24 14:37 -0500 |
|---|---|
| Subject | Button mouseover is spotty |
| From | Bint <bint@ign.com> |
| Newsgroups | comp.lang.javascript |
| Message-ID | <CC34639E.C261%bint@ign.com> (permalink) |
Hello,
Boy this newsgroup sure is spammed out!
I have not much experience in javascript (or html, really) and am coming
back to work on a little project I started last year.
I've got a couple of buttons onscreen, they are supposed to be rollover
buttons that light up. But the mouse detection only works on about half the
button.
Here's the code I used to make the button:
function insert_linkbutton(container) {
var linkbutton = document.createElement( 'div' );
linkbutton.style.position = 'absolute';
linkbutton.style.top = '10px';
linkbutton.style.margin = 0;
linkbutton.style.padding = 0;
linkbutton.style.textAlign = 'left';
linkbutton.innerHTML = '<ul id="nav"><li id="linkbutton"><a
href="javascript:showlink(container)">Show Link to Model</a></ul>';
container.appendChild( linkbutton );
container.showinglink = 0;
return linkbutton;
}
Anyone know what I am doing wrong? As you scroll the mouse across the face
of the button, it lights up and responds to the mouse only at certain points
on the button, not over the whole rectangle.
Thanks
B
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Button mouseover is spotty Bint <bint@ign.com> - 2012-07-24 14:37 -0500
Re: Button mouseover is spotty "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-07-24 20:52 +0000
Re: Button mouseover is spotty Bint <bint@ign.com> - 2012-07-24 15:56 -0500
Re: Button mouseover is spotty Bint <bint@ign.com> - 2012-07-24 16:03 -0500
Re: Button mouseover is spotty RobG <rgqld@iinet.net.au> - 2012-07-31 19:33 -0700
csiph-web