العد التنازلي
ثم التنفيذ
كود PHP:
<script type="text/javascript">
var second = 5;
$.timer(1000, function (timer) {
if (second > 0) {
$('.rval').text(second);
second = second-1;
timer.reset(1000);
}
else {
$('.rval').hide("slow");
$('.mdow').show("slow");
timer.stop();
}
});
</script>
<div class="rval">
</div>
<div class="mdow" style="display: none">
تم العد
</div>
مرفق ملف ال timer
///////////
الكود الثاني
الارسال الى ملف بدون تحديث الصفحة
كود PHP:
<script>
$(document).ready(function(){
$("p").click(function () {
$.ajax({
type: "POST",
url: "report.php",
data: "lanks=<?php echo $row[lanks];?>",
success: function(msg){
$("#report").html(msg);
}
});
});
});
</script>
<p>بلغ عن هذا الملف</p>
<div id="report"></div>
محتوى ملف ال report
كود PHP:
<?php
@header('(anti-spam-(anti-spam-(anti-spam-(anti-spam-content-type:)))) text/html; charset=windows-1256');
@header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
@header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
@header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
@header ("Pragma: no-cache");
if(isset($lanks))
{
echo"تم ارسال";
}
else
{
echo"لم يتم الارسال";
}
?>
مرفق ملفات التجربه
الكود القادم ان شاء الله الرفع عن طريق ال jquery
واي كود راح اقابله بضيفه هنا
ارجو ان كان لديكم اي اكواد وضعها هنا ليستفيد منها الكثير من المطورين ونكفيهم عنا البحث
كما ارجو من المشرف اذا وجد هذا الموضوع يستحق ان يتم تثبيته ولكم جزيل الشكر