yeah just like I said.
|
Source code
|
1
2
3
4
5
6
7
8
9
|
onover="
ifnot(last_hotspot,
copy(last_hotspot,name);
,
set(hotspot[get(last_hotspot)].zorder,100);
set(zorder,200);
copy(last_hotspot,name);
);
"
|
This is just an off the cuff code, so correct any syntax errors or typos.
Logic.
If there's not a last_hotspot in place, it sets last_hotspot to the current hotspot. Otherwise, you've have an previous hotspot with a high zorder. Now set that zorder back and update last_hotspot and set current zorder higher.