4 نوفمبر 2018

كود اضافة زر الذهاب للأعلى في الBlogger | بلوجر

تقييمك للموضوع؟




السلام عليكم ورحمة الله
كود اضافة زر الذهاب الى اعلا
الصفحة بتقنية الJQuery اتبع الخطوات التالية:

الخطوة الأولى : اذهب الى صفحة ادارة ال
Step #1: Go to Blogger Dashboard



الخطوة الثانية : قم بأختيار القطعة
Step #2: Choose



الخطوة الثالثة: قم بلصق الكود ادناه في خانة
Step #3: Paste the code in

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script>
jQuery(document).ready(function() {
var offset = 220;
var duration = 500;
jQuery(window).scroll(function() {
if (jQuery(this).scrollTop() > offset) {
jQuery('.back-to-top').fadeIn(duration);
} else {
jQuery('.back-to-top').fadeOut(duration);
}
});

jQuery('.back-to-top').click(function(event) {
event.preventDefault();
jQuery('html, body').animate({scrollTop: 0}, duration);
return false;
})
});
</script>

<style>
div#page {
max-width: 900px;
margin-left: auto;
margin-right: auto;
padding: 20px;
}

.back-to-top {
position: fixed;
bottom: 2em;
right: 0px;
text-decoration: none;
font-size: 12px;
padding: 1em;
display: none;
}

.back-to-top {
color:#fff;
}
</style>

<a href="#" class="btn btn-default back-to-top">Back to Top  <span class="glyphicon glyphicon-triangle-top" aria-hidden="true"></span></a>


الخطوة الرابعة : النتيجة النهائية للزر تظهر
Step #4: the final result should be



شكراً لزيارتكم 
 ولا تنسوا ان تعملوا مشاركة للموضوع ,

ليست هناك تعليقات:

إرسال تعليق

ملحوظة: يمكن لأعضاء المدونة فقط إرسال تعليق.