procedure TMyThread.SyncCreateMemo;
begin
Memo:=TMemo.Create(Form6);
Memo.Parent:=Form6;
Memo.Left:=50;
Memo.Top:=50;
Memo.Width:=250;
Memo.Height:=100;
Memo.Text:='Мама я родился!';
end;
procedure TMyThread.Execute;
begin
Synchronize(SyncCreateMemo);
end;
procedure TForm6.WmCreateMemo; // message WM_CREATEMEMO = WM_USER + 1
begin
Memo:=TMemo.Create(Form6);
Memo.Parent:=Self;
Memo.Left:=50;
Memo.Top:=50;
Memo.Width:=250;
Memo.Height:=100;
Memo.Text:='Мама я родился!';
end;
procedure TMyThread.Execute;
begin
PostMessage(Form6.Handle, WM_CREATEMEMO, 0, 0);
end;
$(function () {
$('.scrollBtn') ['click'](function () {
$['scrollTo']($($(this) ['attr']('href')), {
duration: 750
});
return false;
});
});
jQuery(document) ['ready'](function () {
var _0x8273x1 = $(window) ['width']();
jQuery('#parallax .parallax-layer') ['parallax']({
}, {
xparallax: '60%',
yparallax: false,
height: 630
});
$('#siteContainer') ['css']('width', _0x8273x1);
$('#contactForm') ['motionCaptcha']({
shapes: [
'triangle',
'x',
'rectangle',
'circle',
'check',
'zigzag',
'arrow',
'delete',
'pigtail',
'star'
]
});
$(window) ['scroll'](function () {
if ($(this) ['scrollTop']() > 600) {
$('.rightLikeBoxes') ['fadeIn']();
} else {
$('.rightLikeBoxes') ['fadeOut']();
};
});
$('.rightLikeBoxes') ['hover'](function () {
$(this) ['animate']({
right: '-5px'
}) ['animate'](500);
}, function () {
$(this) ['animate']({
right: '-93px'
}) ['animate'](500);
});
$('#back-top') ['click'](function () {
$('body,html') ['animate']({
scrollTop: 0
}, 800);
return false;
});
$('#contactFormBtn') ['formValidator']({
scope: '#contactForm',
errorDiv: '#errorDiv1'
});
$('#contactFormBtn') ['click'](function () {
if ($('#contactForm input') ['hasClass']('error-input')) {
} else {
var _0x8273x2 = $('#contactForm') ['serialize']();
$['ajax']({
cache: false,
type: 'POST',
url: 'mailer.php',
data: _0x8273x2,
beforeSend: function () {
$('#errorDiv1') ['html']('Mesaj gönderiliyor..') ['show']();
},
success: function (_0x8273x3) {
if (_0x8273x3 == 'OK') {
$('#errorDiv1') ['html']('Mesajınız başarı ile gönderildi.') ['show']();
} else {
$('#errorDiv1') ['html']('Bir Hata oluştu! Lütfen daha sonra tekrar deneyiniz.') ['show']();
};
}
});
setTimeout(function () {
$('#contactForm input') ['val']('');
$('#contactForm textarea') ['val']('');
}, 2000);
};
if ($('#mc-action') ['hasClass']('error-input')) {
$('#mc-canvas') ['css']('border', '1px solid #C04861');
} else {
$('#mc-canvas') ['css']('border', '1px solid #FFF');
};
return false;
});
});
(в голове мысли "что то тут не чисто)абсолютно правильные мысли