Re: code problem: Cant get mouse over class to work.



David Mark wrote:
"Owen Brunker" wrote:
<snip>
I have written a Javascript class to handle mouse overs. ...
<snip>
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.

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.
<snip>

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.

.



Relevant Pages

  • Re: Accessing Class Method
    ... They can't interact, because they'll never be able to see each other. ... If you want to accomplish an interaction using your current setup, ... public $html = new HTML; ... function method() { ...
    (comp.lang.php)
  • Re: File Creation
    ... Sub CreateFile() ... interact with other parts of the page. ...
    (microsoft.public.scripting.vbscript)
  • Re: how to interact interactive html excel cell in javascript
    ... > Please tell me how to interact the cells in this html page through ... > javascript. ...
    (comp.lang.javascript)
  • RE: Controlling the html
    ... Also if you're using NUnitASP you can interact with them more directly, ... "Andy Sutorius via DotNetMonster.com" wrote: ... Can you manipulate the html the grid outputs? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How can I hyperlink to an enlarged picture in Publisher 2003?
    ... The Back to top links are needed on the FAQ, Adornments, and Glass art pages. ... I was referencing the way you produce your html ... One of the places where Publisher starts to feel its limits is when the ... When you resize and optimize your images, ...
    (microsoft.public.publisher.webdesign)

Loading