server side script - lamp toggle on/off

Go down

server side script - lamp toggle on/off

Post by skiv71 on Mon Jun 02, 2014 8:25 pm

Hi Guy's

One of our members (pete252) requested the following item, so here it is...

lib='graphics/misc/Lamp/';
if (value<1) {
nv=101;
pic="0.png";
msg="click to turn on";
} else {
nv=0;
pic="1.png";
msg="click to turn off";
}
var s ="";
s+="<img style='cursor:pointer' title='"+msg+"' src='"+lib+pic+"' ";
s+="onclick='mango.view.setPoint("+point.id+","+pointComponent.id+","+nv+")'/>";
return s;

Neil
avatar
skiv71
Admin

Posts : 161
Join date : 2014-04-25
Age : 46
Location : United Kingdom

View user profile http://bmslink.co.uk:8180 [guest:guest]

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum