You are not logged in.

rey

Trainee

  • "rey" started this thread

Posts: 48

Location: Tallinn, Estonia

Occupation: 360VR photographer

  • Send private message

1

Friday, November 7th 2008, 12:10pm

set(scale,x)

Hi Klaus!

Is it correct code?

Source code

1
<plugin ... scale="0.6" onhover="set(scale,1);" ...>

2

Friday, November 7th 2008, 1:07pm

Hi,

it's nearly right

"onhover" is called in intervals as long as the mouse is over the plugin/hotspot,

you should use "onover" and "onout"

e.g. - this will code change the scale immediately on mouse over or out:

Source code

1
<plugin ... scale="0.6" onover="set(scale,1);" onout="set(scale,0.6);" ... />


or if you want to animate the scale changing - then use the tween function:

Source code

1
<plugin ... scale="0.6" onover="tween(scale,1);" onout="tween(scale,0.6);" ... />


regards,
Klaus

rey

Trainee

  • "rey" started this thread

Posts: 48

Location: Tallinn, Estonia

Occupation: 360VR photographer

  • Send private message

3

Friday, November 7th 2008, 6:55pm

Thanks Klaus! It really simple ;)