Java script Passing a variable
This is my java script.its lace on a image and when i click the circle it
enlarges. But when i click it again it should be the normal size again.
See the image below.. http://i.imgbox.com/adbuiwsa.png This is the code
for the javascript circle.What i need is when i click the blue circle
again it should be the normal size again... How do i code it?? I preffer
is it is done using a variable...Pls help me guys.
$('#c1').click(function () {
clearCircle()
ResetCircle()
$(this).removeClass("blink1");
//$(this).css('background-color', '#005aa8');
$(this).css('width', '190px');
$(this).css('height', '190px');
$(this).css('top', 243 - ((190 - 125) / 2));
$(this).css('left', 335 - ((190 - 125) / 2));
$(this).css('background-image',
'URL(assets/images/blue_back.png)');
No comments:
Post a Comment