Mute / Un-Mute sound?
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Mute / Un-Mute sound?

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web
Author Message
Tony Breindal
Guest





Posted: Wed Aug 03, 2005 12:30 pm    Post subject: Mute / Un-Mute sound? Reply with quote

Hi Guys,

We got:

function muteClick() {
Player.settings.mute = true;
}

function UnmuteClick() {
Player.settings.mute = false;
}

How would that look like, if we only want one button to handle both 'Mute'
and 'Un-Mute'?

That is, shift setting and value at each click ...

/Tony


--
Jeg beskyttes af den gratis SPAMfighter til privatbrugere.
Den har indtil videre sparet mig for at få 3280 spam-mails.
Betalende brugere får ikke denne besked i deres e-mails.
Hent gratis SPAMfighter her: www.spamfighter.dk

Back to top
Neil Smith [MVP Digital M
Guest





Posted: Wed Aug 03, 2005 12:30 pm    Post subject: Re: Mute / Un-Mute sound? Reply with quote

It would look like this :

function muteClick() {
Player.settings.mute=(Player.settings.mute ? false : true);
}

Cheers - Neil

On Wed, 3 Aug 2005 13:06:17 +0200, "Tony Breindal" <tony dot breindal
at gameadventures dot com> wrote:

Quote:
Hi Guys,

We got:

function muteClick() {
Player.settings.mute = true;
}

function UnmuteClick() {
Player.settings.mute = false;
}

How would that look like, if we only want one button to handle both 'Mute'
and 'Un-Mute'?

That is, shift setting and value at each click ...

/Tony
Back to top
Tony Breindal
Guest





Posted: Wed Aug 03, 2005 12:30 pm    Post subject: Re: Mute / Un-Mute sound? Reply with quote

Hi Neil,

Runs like a charm :-)

How to shift the button value (Mute / Un-mute) correspondingly (when
onClick)?

/Tony

"Neil Smith [MVP Digital Media]" <neil@nospam.com> skrev i en meddelelse
news:6de1f1p0s5foofjc3f91memu8r3ta4qiot@4ax.com...
Quote:
It would look like this :

function muteClick() {
Player.settings.mute=(Player.settings.mute ? false : true);
}

Cheers - Neil

On Wed, 3 Aug 2005 13:06:17 +0200, "Tony Breindal" <tony dot breindal
at gameadventures dot com> wrote:

Hi Guys,

We got:

function muteClick() {
Player.settings.mute = true;
}

function UnmuteClick() {
Player.settings.mute = false;
}

How would that look like, if we only want one button to handle both
'Mute'
and 'Un-Mute'?

That is, shift setting and value at each click ...

/Tony



--
Jeg beskyttes af den gratis SPAMfighter til privatbrugere.
Den har indtil videre sparet mig for at få 3281 spam-mails.
Betalende brugere får ikke denne besked i deres e-mails.
Hent gratis SPAMfighter her: www.spamfighter.dk

Back to top
Neil Smith [MVP Digital M
Guest





Posted: Wed Aug 03, 2005 4:30 pm    Post subject: Re: Mute / Un-Mute sound? Reply with quote

Same way you'd do any image rollover - see for example
http://www.irt.org/script/668.htm and other javascript FAQs for this !

Cheers - Neil

On Wed, 3 Aug 2005 14:32:57 +0200, "Tony Breindal" <tony dot breindal
at gameadventures dot com> wrote:

Quote:
Hi Neil,

Runs like a charm :-)

How to shift the button value (Mute / Un-mute) correspondingly (when
onClick)?

/Tony

"Neil Smith [MVP Digital Media]" <neil@nospam.com> skrev i en meddelelse
news:6de1f1p0s5foofjc3f91memu8r3ta4qiot@4ax.com...
It would look like this :

function muteClick() {
Player.settings.mute=(Player.settings.mute ? false : true);
}

Cheers - Neil

On Wed, 3 Aug 2005 13:06:17 +0200, "Tony Breindal" <tony dot breindal
at gameadventures dot com> wrote:

Hi Guys,

We got:

function muteClick() {
Player.settings.mute = true;
}

function UnmuteClick() {
Player.settings.mute = false;
}

How would that look like, if we only want one button to handle both
'Mute'
and 'Un-Mute'?

That is, shift setting and value at each click ...

/Tony
Back to top
Tony Breindal
Guest





Posted: Thu Aug 04, 2005 12:30 am    Post subject: Re: Mute / Un-Mute sound? Reply with quote

Hmm, OKi

/Tony

"Neil Smith [MVP Digital Media]" <neil@nospam.com> skrev i en meddelelse
news:onj1f15acn9n7vddpqu22v6rqoas0bsacf@4ax.com...
Quote:
Same way you'd do any image rollover - see for example
http://www.irt.org/script/668.htm and other javascript FAQs for this !

Cheers - Neil

On Wed, 3 Aug 2005 14:32:57 +0200, "Tony Breindal" <tony dot breindal
at gameadventures dot com> wrote:

Hi Neil,

Runs like a charm :-)

How to shift the button value (Mute / Un-mute) correspondingly (when
onClick)?

/Tony

"Neil Smith [MVP Digital Media]" <neil@nospam.com> skrev i en meddelelse
news:6de1f1p0s5foofjc3f91memu8r3ta4qiot@4ax.com...
It would look like this :

function muteClick() {
Player.settings.mute=(Player.settings.mute ? false : true);
}

Cheers - Neil

On Wed, 3 Aug 2005 13:06:17 +0200, "Tony Breindal" <tony dot breindal
at gameadventures dot com> wrote:

Hi Guys,

We got:

function muteClick() {
Player.settings.mute = true;
}

function UnmuteClick() {
Player.settings.mute = false;
}

How would that look like, if we only want one button to handle both
'Mute'
and 'Un-Mute'?

That is, shift setting and value at each click ...

/Tony

Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB