/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Firefox onmouseover problem

This is causing me to pull my hair out! The page works absolutely fine in IE, if you open the below code in IE it will highlight the cells when hovering, but it just won’t work in Firefox and I cannot for the life of me work out why?!?!?

If anyone can help in the slightest, I will be very appreciative

The forum wouldn’t let me paste the code, so I have uploaded to a txt file.

[upl-file uuid=47f4d698-15cf-4d2c-b86f-6cd4a7603184 size=21kB]TestPage.txt[/upl-file]

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@FangJul 23.2008 — The function(s) should pass a string not a variable// not
HighlightCB1063(Calendar2_48, 5, 48)
// like this
HighlightCB1063('Calendar2_48', 5, 48)

Same for all functions used in the document.
Copy linkTweet thisAlerts:
@neiltaylormadeauthorJul 23.2008 — Hi Fang,

Thanks for your fast reply, unfortunately this doesn't solve the problem, doing as you suggested causes the javascript to fail when trying to set the bgColor.
Copy linkTweet thisAlerts:
@FangJul 23.2008 — Bad referencing, change this:
var currentCell = document.getElementById(cellID);

[I]bgColor[/I] is not used by modern browsers
Copy linkTweet thisAlerts:
@neiltaylormadeauthorJul 23.2008 — Thank you so much Fang, you are a life saver! I had a couple of other changes to make to get it working, but it now works 100% as expected!!!
Copy linkTweet thisAlerts:
@KorJul 23.2008 — A note: under an XHTML doctype, the javascript code (same as any other script code), if embedded, should be isolated inside CDATA islands, to prevent a literal XML interpretation of some special characters (as < > &). And use only [B]type[/B], not [B]language[/B] ); [B]language[/B] is deprecated, (even illegal in XHTML, I guess):
<i>
</i>&lt;script type="text/javascript"&gt;
[COLOR="Blue"]/*&lt;![CDATA[*/[/COLOR]
[COLOR="Green"]... code here ...[/COLOR]
[COLOR="Blue"]/*]]&gt;*/[/COLOR]
&lt;/script&gt;
Copy linkTweet thisAlerts:
@FangJul 23.2008 — Also the name values are invalid: http://www.w3.org/TR/html4/types.html#type-id
×

Success!

Help @neiltaylormade 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.6,
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,
)...