Hi,
==> So I can consider that it works but not on my computer. It is not the first strange thing I notice with my brand new Windows Seven/Firefox 3.1 installation... Gasp... Thanks for the report :)
are you testing locally?
maybe there is a "popup" blocker active which stops opening the url?
About the moving plugin, I understand your point: the plugin goes away :) On my computer, it just disapears...
it just disappears because "scale+2" or "scale+2" are not a valid values,
Gasp again. My point is that I have thousand plugins of different sizes and at different places, to avoid having to duplicate code for scaling up and down the plugin on mouse action, I decided to "externalise" the code by placing it into a "style" tag. But there, I don't have access to a "memory" var that I can use to store my initial value and to get the stuff back in place when the mouse is out... So I imagined that having a kind of "recursive" call of the variable (actually, the scale or atv attribute of the plugin) would fit. But it does not...
you could use <style> also for "memory" variables

, style can be better imagined as a "template", the variables declared there are generated "locally" in every hotspots/plugin,
so you could use something like this for a 2x scaling on over (independently of original scale):
|
Source code
|
1
2
3
4
5
6
|
<style name="overstyle"
onover="copy(originalscale,scale);
mul(destscale, scale, 2);
tween(scale, get(destscale));"
onout="tween(scale, get(originalscale));"
/>
|
the original scale was stored in "originalscale",
then the new scale was calculatted and stored in "destscale",
and then the tweens with destscale or originalscale are called in onover or onout,
e.g. to use it:
|
Source code
|
1
2
|
<hotspot ... scale="1" style="overstyle" />
<hotspot ... scale="2" style="overstyle" />
|
best regards,
Klaus