Re: code problem: Cant get mouse over class to work.
- From: "Richard Cornford" <Richard@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 11 Jul 2007 10:47:21 +0100
David Mark wrote:
"Owen Brunker" wrote:<snip>
<snip>I have written a Javascript class to handle mouse overs. ...
Why not post a link to an example page so others can confirm this?
It is not necessary to post a link to an example page, and may be counter-productive in some cases. I, for one, read news off-line and will not re-connect just to look at some referenced web-page, unless I am really interested in the problem.
An option, and often a very good one, is to create and post a cut-down 'test-case' page that demonstrates the issue in isolation (a page that is complete in itself but devoid of anything superfluous). This is at least in part because creating such a 'test-case' page often allows the individual asking the question to solve their own problem, as the act of isolating it often exposes its significant features. The FAQ for the group propos that no more than about 500 lines of code (combined HTML and scripts) should be posted, but most properly cut-down test cases can be created (well) within that limit. The FAQ also proposes that such test-cases should also be made available on-line for the convenience of those reading on-line.
This attitude differs from some other groups, such as some HTML groups, but the situation is (or can be) different here. While other contexts may imply an interest in, say, HTTP headers, actual page structure (and its imported resources) the same is rarely true of javascript questions. Granted there are circumstances where a link is the only sensible option; interactions between multiple pages (framesets), when images are a significant part of the issue/context (as images just cannot be posted to the group), etc.
It is unlikely that anybody is going to copy and paste your code to
their server for testing.
If the OP makes it easy enough (provides an example that can be posted in one chuck as a new HTML document) then it is quite likely that some will be willing to look at it. Fragments of code that are intended to interact with an HTML DOM, without any HTML for them to interact with (or the triggering code) will likely be beyond the effort threshold for actual testing.
<snip>of the browsers report any errors. The problem is that the images
are not swapped.
From what I can see, you never call the appropriate functions.
I assume you do this inline somewhere, but without seeing your
page and/or instantiation code, it is just a guess.
You see, you looked. And if you had had the HTML as well you may have known the answer instead of having to guess at it.
Richard.
.
- Follow-Ups:
- Re: code problem: Cant get mouse over class to work.
- From: Owen Brunker
- Re: code problem: Cant get mouse over class to work.
- From: David Mark
- Re: code problem: Cant get mouse over class to work.
- References:
- code problem: Cant get mouse over class to work.
- From: Owen Brunker
- Re: code problem: Cant get mouse over class to work.
- From: David Mark
- code problem: Cant get mouse over class to work.
- Prev by Date: Re: Validing a utf-8 string from search textbox with javascript regular expression
- Next by Date: Re: Validing a utf-8 string from search textbox with javascript regular expression
- Previous by thread: Re: code problem: Cant get mouse over class to work.
- Next by thread: Re: code problem: Cant get mouse over class to work.
- Index(es):
Relevant Pages
|
Loading