Sie sind nicht angemeldet.

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

1

Freitag, 24. August 2012, 03:36

Wait blocks clicking on link

How can you make a wait function that does not block the function of a link. I made a fullscreen button that pops up in large size when you load the pano and I want it to stay for 5 sec before it tweens to normal size.
Unfortunately it also blocks both interaction on the pano and the onclick go fullscreen until it has moved
http://www.panoramas.dk/mars/curiosity-on-the-move.html

onloaded="wait(5);tween(plugin[openfs].scale,0.6,10);tween(plugin[openfs].alpha,0.7,10);" onclick="set(fullscreen,true);"

Hans

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

2

Freitag, 24. August 2012, 09:36

Forget it. I found it.
oninterrupt(break);wait(5);

Hans

3

Mittwoch, 29. August 2012, 09:51

Hi,

the wait() action is always blocking everything,
as alternative you can use 'delayedcall(time, actions);'

e.g.

Quellcode

1
onloaded="delayedcall(5, tween(plugin[openfs].scale,0.6,10);tween(plugin[openfs].alpha,0.7,10); );"


Best regards,
Klaus

Ähnliche Themen