/    Sign up×
Community /Pin to ProfileBookmark

newSize function playing sound in explorer

Hi guys,

I have a javascript function that a flash swf calls every second that changes the size of the flash to the one needed. The thing is that in firefox all works great, but in explorer I get a sound every second, like the one you get when you click on a link… Is there any way I can avoid this annoying thing?

Here’s the function:

[CODE]function newSize(datoY) {
if(document.all && !document.getElementById) {
document.all[‘miFlash’].style.pixelHeight = datoY;
}
else{
document.getElementById(‘miFlash’).style.height = datoY;
}
}[/CODE]

Thanks,

Javier

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@MaggicalauthorMay 22.2008 — I even tried this fix to avoid the function to resize the flash when you already have the same size, but the sounds keeps playing...

[CODE]function newSize(datoY) {
if(document.all && !document.getElementById) {
///
if(document.all['miFlash'].style.pixelHeight != datoY){
///
document.all['miFlash'].style.pixelHeight = datoY;
}
}
else{
if(document.getElementById('miFlash').style.height != datoY){
///
document.getElementById('miFlash').style.height = datoY;
}
}
}[/CODE]


Thanks,

Javier
×

Success!

Help @Maggical 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.10,
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,
)...