/    Sign up×
Community /Pin to ProfileBookmark

MouseOver in Mozilla/Netscape

I am testing a code and it seems that while in Netscape/Mozilla the mouseover doesn’t work.

As you can see in the following links:

[url]http://jscript.brewskynet.com/testing/coordTest.html[/url] <– This one doesn’t work in Mozilla (mouseover the bullet holes, works great in IE)

[url]http://jscript.brewskynet.com/testing/coordTest2.html[/url] <- This one does work for some reason, but on the mouseout it always doesn’t change (mouseover is in the top left corner of the page, the object is hidden until you mouseover, but works great in IE…)

Any ideas???

Thanks!

Brewsky

to post a comment
JavaScript

14 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliApr 02.2004 — It doesn't work in Mozilla(NS) because you are referencing the object the wrong way.

IE is allot more forgiving for code errors.

make sure that you reference the object something like this

function high(imageobject, opacity){

var obj = document.getElementById(imageobject);

and then keep on with your logic.
Copy linkTweet thisAlerts:
@steelersfan88Apr 03.2004 — and of course IE's use of document.all, a trap for webmasters to fall in and mess up a site. referencing by id, in this case, is the way to do it for total compatibility (as long as browser supports DOM1).
Copy linkTweet thisAlerts:
@BrewskyauthorApr 03.2004 — Sorry, that didn't work. It seems like there is something that is preventing the mouseover from working. I put an alert in there is it's not an MSIE style browser to basically "catch all" others, and nothing..


Thanks in advance,


Brewsky
Copy linkTweet thisAlerts:
@BrewskyauthorApr 04.2004 — Ok, it works now... But not with the recommendation you gave me...

Apparantely Netscape/Mozilla can change the opacity of graphics but not text.. Once I created images of the text I wanted displayed during the mouseover, everything worked great...

Thanks for the help though...


Brewsky
Copy linkTweet thisAlerts:
@Khalid_AliApr 04.2004 — [i]Originally posted by Brewsky [/i]

[B]But not with the recommendation you gave me...


Brewsky [/B]
[/QUOTE]


What does that suppose to mean?

I pointed you to write correct code,however, if you are too dumb to implement it thats your problem not of my recomendations.
Copy linkTweet thisAlerts:
@steelersfan88Apr 04.2004 — [i]Originally posted by Khalid Ali[/i]

[b]I pointed you to write correct code,however, if you are too dumb to implement it thats your problem not of my recomendations.[/b][/quote]
Khalid, while it would have made it clearer had Brewsky explained his comment, let's stop fighting before it begins (if it has not already). calling a person "dumb" is not necessary here. Asking why what you had pointed out was not a solution should have been all that you posted. I, for one, would not take offence to that, but I guarantee u that others will
Copy linkTweet thisAlerts:
@Khalid_AliApr 04.2004 — you must stop poking your node in other peoples affairs.

I don't expect this thread to continue and am not expecting anything more from you on this topic.Please just mind your own biz.

Thanks...
Copy linkTweet thisAlerts:
@steelersfan88Apr 04.2004 — Khalid, do not make me look like the bad guy. I am looking for peace and when I sense arguments brewing, I will do what I can to prevent them. If you do not expect the thread to continue, why have you posted a question to Brewsky?
Copy linkTweet thisAlerts:
@jaegernautApr 04.2004 — Hey Brewsky,

I'm enjoying my Sunday morning, and I was reading through the threads to see if I could assist anyone and I saw this one.

And I just wanted to say:

I'm glad you got your code working.

&

I don't think you're dumb.

Have a great day!
Copy linkTweet thisAlerts:
@steelersfan88Apr 04.2004 — [i]Originally posted by jaegernaut[/i]

[b]I'm glad you got your code working.

&

I don't think you're dumb.[/b]
[/quote]
same here ?
Copy linkTweet thisAlerts:
@BrewskyauthorApr 04.2004 — Thanks, I don't think I am dumb either..

Khalid, although I didn't take your advice it doesn't mean I am dumb. I am not a web developer and when I try to write source code it's based upon what I have learned all on my own and there is a lot that I don't understand. I have written code out of necessity ("necessity is the mother of invention"). But let me ask you this.. How long have you been coding, and how much schooling did you receive in gaining your knowledge?

Most of my coding is referenced to IE, however I know I need to get with the times and write cross-comaptible scripting. This was my very first undertaking in doing so. I am sorry it doesn't meet your specifications of how scripting should be written, however, I am positive that not every script author writes in the exact same syntax as you do. Are they dumb?

Just my thoughts..


Jaugernaut & Steelers, enjoy your Sunday morning...




Brewsky
Copy linkTweet thisAlerts:
@Khalid_AliApr 04.2004 — As much as I hate the steeler and other guy's useless waste of forums resources responses,I have to say your response is much sane and it does require that I explain a bit more.

If you were in my position where you post answers to peoples questions day in and day out,you would know that most of the time when people come back with phrase such like yours

[b]

Originally posted by Brewsky

But not with the recommendation you gave me...

Brewsky

[/b]


Its typically wrong implementation of the advice they have been given.

Now I think when you or anybody else come here for help and then when they are given an advice(no matter who is the provider) they should be nice enough to acknowledge that some one at least tried to help them rather coming out bluntly say that helpers post was a sheer waste.

But I guess if it were a perfect world we would not have people like other 2 posters above who jump on the band wagon for no real reason( there only intent could be that I got upset and statred a useless childish brawl which would waste forums resources).

I am not here to defend anybody,nor am I here to wrongly criticise any one..I am only here(a volunteer) who uses his own time to help thousands of those who seek help.

I am sure you would understand.

BTW I still say that refering to html elements by their names as IE did is not correct,use document.getElementById() DOM function for this purpose....

?
Copy linkTweet thisAlerts:
@steelersfan88Apr 04.2004 — Khalid, good idea for explaining, but no reason to attack myself or jaegernaut, as we do not deserve such treatment for being human beings (if jaegernaut is human, j/k). Our replies were pretty much to ensure that we do not think he is dumb and are glad that he solved his problems, and volunteers say things like that all the time, i wouldn't call it a waste of forum resources, I owuld call it replies that could have been avoided had comments not abrupted. And before arguments will abrupt as well, I would like to leave this thread, providing that arguments stop ?
Copy linkTweet thisAlerts:
@BrewskyauthorApr 04.2004 — Khalid,

Thanks for your explanation. But it stands to reason that the assistance you provided, although useful as I will be looking at implementing it, did not solve the problem I was having.

My comments were more directed at your solution not solving the issue rather than not being the correct syntax in object definitions.

As for the "message posting guideline" and the statement you made regarding "not using the assistance provided", I feel you should alter this part of the guideline. As script is being debugged and assistance is requested, not all responses correctly fix the issue at hand and more debugging may be required. If at the same time the author finds where the problem is, and see's that the assistance provided did not resolve the issue, then the author has all rights to post a response declaring what the problem was and the solution. Even though the assistance didn't provide the correction doesn't mean it won't assist in further scripting syntax.

As far as Jaegernaut and Steelers providing feedback about the negativity you showed towards my post, I feel it was warranted. It provided open dialogue regarding the treatment of people requesting assistance.

Remember, if everyone knew what they were doing there would be no reason for this forum..

However, you still didn't answer my question regarding your experience and where you got it from. If you did receive schooling of any part with regards to programming; be it basic, c++, java, php, etc.; then you have more experience than me. Like I said, I have no formal training of any kind when it comes to computers. Everything I know about computers is self-learned, and I feel I deserve some credit for attaining some level of scripting, all be it far less than the level you have attained.


Good day...

Brewsky
×

Success!

Help @Brewsky spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.23,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...