| Author |
Message |
Tony Breindal
Guest
|
Posted:
Wed Aug 03, 2005 12:30 pm Post subject:
Mute / Un-Mute sound? |
|
|
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? |
|
|
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? |
|
|
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? |
|
|
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? |
|
|
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 |
|
 |
|
|
|
|