|
Posted by Jonathan N. Little on 05/16/06 23:46
shard wrote:
> Ok, a fair bit of off topic stuff.
And how is it of topic?
>
> I'm just trying to create a menu. The way I've seen others do this is
> via a ul/li structure and a pure css approach.
No you are not.
your code:
<p> <span onmouseover="alert('hi3')">hi</span>
^^^^^^^^^^^^^^^^^^^^^^^^^
that is JavaScript not CSS
You are using CSS to position elements over top of it, but you are still
using JavaScript to trap a mouseover as opposed to CSS :hover pseudo
class. The links provided explain how IE differers in detecting events
with JavaScript. Very relevant to your little demo...
>
> As far as posting a URL goes, I've posted an actual example instead. It
> means that anyone searching later can see what the problem is (URLs
> come and go). Also because I don't have access to any web space at the
> mo.
Peruse and you will see countless times why posting a URL is preferred,
I'll let someone else wrangle the issue with you.
>
> The problem can be seen very easily in the example provided. Just look
> at it in IE and Firefox, if the menu is visible I don't
> want things underneath showing or firing off events on mouseovers which
> is what is happening.
Easy
if($showmenu){
include_once('myMenu.php')
}
else {
include_once('sillyMouseoverSpans.php')
}
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|