هذا النص هو مثال لنص يمكن ان يستبدل
ضع هذا الكود فوق
</body>
<b:if cond='data:blog.pageType != "index"'>
<script>
//floating video
var f_video = document.getElementsByClassName('separator');
for(i = 0 ; i < f_video.length ; i++){
if(f_video[i].getElementsByClassName('YOUTUBE-iframe-video')[0] != undefined) {
f_video[i].classList.add('b_video');
f_video[i].setAttribute('onclick' , 'v_show(this)');
};
};
function v_show(v_body){
if(v_body.getAttribute('class').search('f_video') == -1){
v_body.classList.add('f_video');
}else{
v_body.classList.remove('f_video');
};
};
</script>
</b:if>
ضع هذا الكود فوق ال
</head> او <head/>
</head> او <head/>
<style>
.YOUTUBE-iframe-video{
width:100%;
max-width:1120px;
position: relative;
transition:all .5s;
-webkit-transition:all .5s;
-moz-transition:all .5s;
-o-transition:all .5s;
-ms-transition:all .5s;
}
.b_video:before {
content: "\f2d2 \00a0 مشاهدة أثناء التصفح";
font-family: "FontAwesome" , 'Droid Arabic Kufi';
cursor: pointer;
padding: 5px;
border: 1px solid #444;
color: #444;
border-radius: 5px;
}
.f_video:before {
content: "\f2d1 \00a0 إعادة الفيديو ";
font-family: "FontAwesome" , 'Droid Arabic Kufi';
cursor: pointer;
padding: 5px;
border: 1px solid tomato;
color: tomato;
border-radius: 5px;
}
.f_video iframe {
position: fixed;
left: 10px;
bottom: 10px;
width: 360px;
height: 200px !important;
z-index: 999999999999999999999;
margin: 0;
padding: 0;
transition:all .5s;
-webkit-transition:all .5s;
-moz-transition:all .5s;
-o-transition:all .5s;
-ms-transition:all .5s;
}
</style>
تجريبي
ردحذف