/    Sign up×
Community /Pin to ProfileBookmark

Hovering image not showing in Firefox

Can someone help?
I have the following code but it odes nt work in Firefox, does semeone know why?
[url]http://www.codeproject.com/jscript/transparentpopup.asp[/url]
Cheers.

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@HookedOnWinterFeb 23.2007 — Can you post your actual code? like the way you're using it on your page? Thanks
Copy linkTweet thisAlerts:
@WebJoelFeb 23.2007 — Nice tutorial though... ?
Copy linkTweet thisAlerts:
@corrado1000authorFeb 23.2007 — [B]This is in the <head> of the page:[/B]

<script>

function Show(){

x = event.clientX + document.body.scrollLeft;

y = event.clientY + document.body.scrollTop + 35;

Popup.style.display="block";

Popup.style.left = x;

Popup.style.top = y;

}

function Hide()

{

Popup.style.display="none";

}

</script>

[B]This is in the CSS stylesheet in amongst all my other style sheet classes:[/B]

.transparent {

filter:alpha(opacity=80);

background-color:white;

display:none;

width:170;

height:100;

position:absolute;

color: white;

border:none;

}

[B]And finally this is in the HTML page ( the page has no DOCType) with <td> and after a textbox that verifies an email address:[/B]

<TD><input type=text name=cardVerify size=4 maxlength="4" value="<%=cardVerify%>" class="texta">&nbsp;<a href="#" onMouseOut="Hide()" onMouseOver="Show()"onMouseMove="Show()" title="Card Verification number - CVV">help?</a><div id="Popup" class="transparent"><img border=0 src="../UserMods/CardCodeVerif.jpg"></div></TD>

Like I said before it works perfectly on in IE but not in Firefox?
Copy linkTweet thisAlerts:
@corrado1000authorFeb 23.2007 — [B]Got it to work -[/B]

I had to put the event keyword within the Show() function parameters and also when calling it in the HTML:

[B]Javascript:[/B]

function Show(event)...

[B]HTML:[/B]

onMouseMove="Show(event)"

Thanks anyway guys.
×

Success!

Help @corrado1000 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.18,
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,
)...