XWidgetSoft Forum
https://www.bbs.xwidget.com/

PIN & UNPIN function (for Qiancang)
https://www.bbs.xwidget.com/viewtopic.php?f=8&t=2329
Page 1 of 1

Author:  Armando [ November 30th, 2012, 7:45 am ]
Post subject:  PIN & UNPIN function (for Qiancang)

Quiancang or Tony:

It would be good to have the "pin" and "unpin" function. That is, I want this: when I mouse over an image something happens ("on mouse over" and "on mouse leave"), but when I click on the image thath is fixed (pin) than previously showed "on mouse over". So after clicking no longer follow the provisions in force "on mouse leave".
How can I do this?

It is understood any of this? .... sorry for my poor english!
Thanks!

Author:  qiancang [ December 3rd, 2012, 4:52 am ]
Post subject:  Re: PIN & UNPIN function

I'm not sure whether it's what you want or not.

Attachments:
enter_and_leave.rar [3.75 KiB]
Downloaded 372 times

Author:  Armando [ December 3rd, 2012, 5:38 am ]
Post subject:  Re: PIN & UNPIN function

we are close!
That what I want: when I "clic" I want to stop the "enter" and "leave" effect, until I press "clic" again.
Thanks for your feedback!

Author:  qiancang [ December 3rd, 2012, 6:58 am ]
Post subject:  Re: PIN & UNPIN function

I got it .

Attachments:
enter_and_leave(1).rar [3.78 KiB]
Downloaded 303 times

Author:  Armando [ December 3rd, 2012, 8:03 am ]
Post subject:  Re: PIN & UNPIN function

GREAT!!!!!!!!!!!!!!!
THANKS you very much. It woul be very useful to my xwidgets!!!

Author:  Armando [ December 4th, 2012, 5:17 am ]
Post subject:  Re: PIN & UNPIN function

Qiancang:
Please, see the red text below and tell me what I must write there. THANKS!! (sorry, I'm terrible with codes...)

var unpin=true;

function text1OnMouseEnter(Sender)
{
if(unpin)
{
text1.text = "enter";
[b](Also, I would like to do VISIBLE an image (image1). What should I write here?)[/b]
}
}

function text1OnMouseLeave(Sender)
{
if(unpin)
{
text1.text = "leave";
[b](Also, I would like to do INVISIBLE an image (image1). What should I write here?)[/b]
}
}

function text1OnClick(Sender)
{
if(unpin)
{
text1.text = "pin";
[b](Also, I would like to do VISIBLE an image (image1). What should I write here?)[/b]
}
else
{
text1.text = "unpin";
[b](Also, I would like to do INVISIBLE an image (image1). What should I write here?)[/b]
}

unpin = !unpin;
}

Author:  qiancang [ December 7th, 2012, 3:05 am ]
Post subject:  Re: PIN & UNPIN function (for Qiancang)

visible
Code:
image1.visible = true;

invisible
Code:
image1.visible = false;

visible/invisible
Code:
image1.visible = !image1.visible;

Author:  Armando [ December 7th, 2012, 6:43 am ]
Post subject:  Re: PIN & UNPIN function (for Qiancang)

Thanks, very useful!!!

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/