Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

MalcolmLoudon

Anfänger

  • »MalcolmLoudon« ist der Autor dieses Themas

Beiträge: 32

Beruf: Photographer/Virtual Tour Producer

  • Nachricht senden

1

Donnerstag, 17. November 2011, 13:09

Stop audio OUTSIDE KRPano window (e.g. when closing Lightbox)

Hi Folks,

The web developer of a client came back to me today with this comment:

I tried to integrate the virtual tour into our web, but I found that I cannot close the virtual tour when I close the light box. Because I still hear the background music.
Any script I should add on the page to trigger the close action? Please advise, thanks.

The virtual tour pops up in a lightbox, with the lightbox close (x) button outside the KRPano window. This is what my soundinterface plugin code looks like:


Quellcode

1
2
3
4
5
6
	<plugin name="soundinterface"
	    	url="soundinterface.swf"
	    	alturl="soundinterface.js"
	    	keep="true"
	    	onloaded="playsound(mozart,mozart.mp3,0)"
	    	/>


Is it possible to stop the soundinterface plugin working when closing a lightbox? Or can it only be stopped inside the KRPano window? I don't have much of an idea about scripts etc! Couldn't find anything on this in other threads.

Thanks in advance,

Malcolm

*edit*
Apparently this is only a problem in IE7, the sound stops as it should when the Lightbox is closed in IE8, Firefox, Chrome and Safari

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »MalcolmLoudon« (18. November 2011, 12:05)