http://www.htmldog.com/articles/suck...le/bones2.html
#nav li:hover ul ul, #nav li.sfhover ul ul {
left: -999em;
}
I am assuming that the class is created by the scripting?
What if the visitor has JS turned off?
What happens when this created class is not found?
What I don't understand is, even with JS turned off, the menu works just
fine, so why have the script?
Tested in both IE and FF. 7 1207
Richard wrote: http://www.htmldog.com/articles/suck...le/bones2.html
#nav li:hover ul ul, #nav li.sfhover ul ul { left: -999em; }
I am assuming that the class is created by the scripting? What if the visitor has JS turned off? What happens when this created class is not found?
What I don't understand is, even with JS turned off, the menu works just fine, so why have the script?
Tested in both IE and FF.
Because its a CSS menu, not a Javascript menu.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
On Sat, 05 Mar 2005 12:13:04 -0500 Randy Webb wrote: Richard wrote:
http://www.htmldog.com/articles/suck...le/bones2.html
#nav li:hover ul ul, #nav li.sfhover ul ul { left: -999em; }
I am assuming that the class is created by the scripting? What if the visitor has JS turned off? What happens when this created class is not found?
What I don't understand is, even with JS turned off, the menu works just fine, so why have the script?
Tested in both IE and FF.
Because its a CSS menu, not a Javascript menu.
Duhhh nah really?
All I want to know is what's the purpose of the script to begin with?
As far as I can tell, it's not even being called to do work.
Richard wrote: On Sat, 05 Mar 2005 12:13:04 -0500 Randy Webb wrote:
Richard wrote:
http://www.htmldog.com/articles/suck...le/bones2.html
#nav li:hover ul ul, #nav li.sfhover ul ul { left: -999em; }
I am assuming that the class is created by the scripting? What if the visitor has JS turned off? What happens when this created class is not found?
What I don't understand is, even with JS turned off, the menu works just fine, so why have the script?
Tested in both IE and FF. Because its a CSS menu, not a Javascript menu.
Duhhh nah really? All I want to know is what's the purpose of the script to begin with?
If you can't read the page and understand it, then you sure won't
understand it if I can explain it.
As far as I can tell, it's not even being called to do work.
And that is why you are the one thats asking about it and not me. RTFM.
Because in certain scenarios, it *does* get called to do work. But if
you understood enough about scripting to know what
if(window.attachEvent) meant, you would understand when, and why, it is
called.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Richard wrote: On Sat, 05 Mar 2005 12:13:04 -0500 Randy Webb wrote:Richard wrote:http://www.htmldog.com/articles/suck...le/bones2.html #nav li:hover ul ul, #nav li.sfhover ul ul { left: -999em; } I am assuming that the class is created by the scripting? What if the visitor has JS turned off? What happens when this created class is not found? What I don't understand is, even with JS turned off, the menu works just fine, so why have the script? Tested in both IE and FF. Because its a CSS menu, not a Javascript menu. Duhhh nah really? All I want to know is what's the purpose of the script to begin with? As far as I can tell, it's not even being called to do work.
5 minutes with google will show you a lot: http://msdn.microsoft.com/workshop/a...ttachevent.asp
attachEvent Method
Binds the specified function to an event, so that the function
gets called whenever the event fires on the object. http://www.quirksmode.org/js/events_advanced.html http://www.quirksmode.org/js/this.html http://www.quirksmode.org/
Javascript > Events > Introduction to Events http://www.htmldog.com/articles/suckerfish/dropdowns/
...And that will sort out everything for those browsers that fully
support the :hover pseudo class, but for Internet Explorer we
need to set the Suckerfish JavaScript loose:
sfHover = function() {... http://www.htmldog.com/articles/suckerfish/
The Suckerfish...
Right. So, basically, in browsers such as Mozilla, Opera and Safari
you can use :hover, :active and :focus to achieve the effects that
the CSS standards intend. The trouble is that when it comes to
anything other than links, Internet Explorer ignores these
pseudo-classes (and it doesn't like :focus at all). To get around
this we can use JavaScript similar to the following:
sfHover = function() {...
Mike
On Sat, 05 Mar 2005 13:19:57 -0800 mscir wrote: Richard wrote: On Sat, 05 Mar 2005 12:13:04 -0500 Randy Webb wrote:Richard wrote: http://www.htmldog.com/articles/suck...le/bones2.html #nav li:hover ul ul, #nav li.sfhover ul ul { left: -999em; } I am assuming that the class is created by the scripting? What if the visitor has JS turned off? What happens when this created class is not found? What I don't understand is, even with JS turned off, the menu works just fine, so why have the script? Tested in both IE and FF. Because its a CSS menu, not a Javascript menu. Duhhh nah really? All I want to know is what's the purpose of the script to begin with? As far as I can tell, it's not even being called to do work.
5 minutes with google will show you a lot:
http://msdn.microsoft.com/workshop/a...thods/attachev ent.asp attachEvent Method Binds the specified function to an event, so that the function gets called whenever the event fires on the object. http://www.quirksmode.org/js/events_advanced.html http://www.quirksmode.org/js/this.html http://www.quirksmode.org/
Javascript >> Events > Introduction to Events http://www.htmldog.com/articles/suckerfish/dropdowns/ ...And that will sort out everything for those browsers that fully support the :hover pseudo class, but for Internet Explorer we need to set the Suckerfish JavaScript loose: sfHover = function() {... http://www.htmldog.com/articles/suckerfish/ The Suckerfish... Right. So, basically, in browsers such as Mozilla, Opera and Safari you can use :hover, :active and :focus to achieve the effects that the CSS standards intend. The trouble is that when it comes to anything other than links, Internet Explorer ignores these pseudo-classes (and it doesn't like :focus at all). To get around this we can use JavaScript similar to the following: sfHover = function() {...
Mike
Thank you. That's what I wanted to know.
I wasn't sure what was triggering the script.
On Sat, 05 Mar 2005 15:32:21 -0500 Randy Webb wrote: Richard wrote: On Sat, 05 Mar 2005 12:13:04 -0500 Randy Webb wrote:
Richard wrote: http://www.htmldog.com/articles/suck...le/bones2.html
#nav li:hover ul ul, #nav li.sfhover ul ul { left: -999em; }
I am assuming that the class is created by the scripting? What if the visitor has JS turned off? What happens when this created class is not found?
What I don't understand is, even with JS turned off, the menu works just fine, so why have the script?
Tested in both IE and FF.
Because its a CSS menu, not a Javascript menu.
Duhhh nah really? All I want to know is what's the purpose of the script to begin with?
If you can't read the page and understand it, then you sure won't understand it if I can explain it.
As far as I can tell, it's not even being called to do work.
And that is why you are the one thats asking about it and not me. RTFM. Because in certain scenarios, it *does* get called to do work. But if you understood enough about scripting to know what if(window.attachEvent) meant, you would understand when, and why, it is called. --
You just have to be a smart ass don't you?
You could just say, "The function is triggered by the movement of the mouse
over the specified area.".
Richard wrote: On Sat, 05 Mar 2005 15:32:21 -0500 Randy Webb wrote:
Richard wrote:
On Sat, 05 Mar 2005 12:13:04 -0500 Randy Webb wrote: Richard wrote: >http://www.htmldog.com/articles/suck...le/bones2.html > >#nav li:hover ul ul, #nav li.sfhover ul ul { >left: -999em; >} > >I am assuming that the class is created by the scripting? >What if the visitor has JS turned off? >What happens when this created class is not found? > >What I don't understand is, even with JS turned off, the menu works just >fine, so why have the script? > >Tested in both IE and FF.
Because its a CSS menu, not a Javascript menu. Duhhh nah really? All I want to know is what's the purpose of the script to begin with? If you can't read the page and understand it, then you sure won't understand it if I can explain it.
As far as I can tell, it's not even being called to do work.
And that is why you are the one thats asking about it and not me. RTFM. Because in certain scenarios, it *does* get called to do work. But if you understood enough about scripting to know what if(window.attachEvent) meant, you would understand when, and why, it is called.
--
You just have to be a smart ass don't you?
Only to dumbasses who repeatedly ask questions without doing a little
research first.
You could just say, "The function is triggered by the movement of the mouse over the specified area.".
And give incorrect/incomplete answers like you do? No thanks.
That is not the only part of that script, and hence my reply. The
function is triggered if, and only if, three things happen:
1) The UA supports window.attachEvent
2) The UA successfully attaches an even to the window
3) The movement of the mouse over the window.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: David MacQuigg |
last post by:
I am writing a chapter for teaching OOP in Python. This chapter is
intended as a brief introduction to replace the more complete
discussion in Learning Python, 2nd ed, pp. 295-390. I need to...
|
by: Phil Thompson |
last post by:
Hi
I'm very new to JavaScript and just need a bit of an explanation to some
code and some ideas of how to edit it to do what I want.
The script looks for every <pre> on a page and sets them to...
|
by: Susan Bricker |
last post by:
I went back to read my post and found an error in my description ...
here is the post, again, corrected:
The following error:
"The current field must match the join key '?' in the table that...
|
by: jimfortune |
last post by:
From:
http://groups-beta.google.com/group/comp.databases.ms-access/msg/769e67e3d0f97a90?hl=en&
Errata:
19 solar years = 2939.6018 days should be
19 solar years = 6939.6018 days
Easter...
|
by: Malcolm |
last post by:
After some days' hard work I am now the proud possessor of an ANSI C BASIC
interpreter.
The question is, how is it most useful?
At the moment I have a function
int basic(const char *script,...
|
by: Siegfried Heintze |
last post by:
I refered the engineer at my hosting service to
http://support.microsoft.com/default.aspx?scid=kb;en-us;825738 where he
tried to follow the directions there.
He said there was no such file:...
|
by: lawrence k |
last post by:
I've got a script called makeRss.php. It works fine if I try to open it
with my browser. It makes an RSS feed for every page on my site. You
can see it working here:
...
|
by: not_a_commie |
last post by:
Here is a list of features I've wanted in .NET as pulled from my lab
notebook. If some of them are already there, maybe somebody could point
them out to me. If you have an opinion positive or...
|
by: DamienS |
last post by:
In the interests of me saving hair, can someone please explain to me
what's going on below? Why doesn't == work in comparing two int's when
cast as objects? They're the same type.
Note that it...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |