গত ৭ দিনের সর্বাধিক পঠিত সংবাদ
-->
function like(cid) {
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
var divname = "clike_"+cid;
//alert(xmlhttp.responseText);
document.getElementById(divname).innerHTML=xmlhttp.responseText;
}
}
var url = "https://old.dailyinqilab.com/api/insert_comment_like.php?cid="+cid;
xmlhttp.open("GET",url,true);
xmlhttp.send();
}
function dislike(cid) {
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
var divname = "cdislike_"+cid;
document.getElementById(divname).innerHTML=xmlhttp.responseText;
}
}
var url = "https://old.dailyinqilab.com/api/insert_comment_dislike.php?cid="+cid;
xmlhttp.open("GET",url,true);
xmlhttp.send();
}
function rlike(rid) {
//alert(rid);
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
var divname = "rlike_"+rid;
//alert(xmlhttp.responseText);
document.getElementById(divname).innerHTML=xmlhttp.responseText;
}
}
var url = "https://old.dailyinqilab.com/api/insert_reply_like.php?rid="+rid;
//alert(url);
xmlhttp.open("GET",url,true);
xmlhttp.send();
}
function rdislike(rid){
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
var divname = "rdislike_"+rid;
//alert(xmlhttp.responseText);
document.getElementById(divname).innerHTML=xmlhttp.responseText;
}
}
var url = "https://old.dailyinqilab.com/api/insert_reply_dislike.php?rid="+rid;
xmlhttp.open("GET",url,true);
xmlhttp.send();
}
function nclike(nid){
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
var divname = "nlike";
document.getElementById(divname).innerHTML=xmlhttp.responseText;
}
}
var url = "https://old.dailyinqilab.com//api/insert_news_comment_like.php?nid="+nid;
xmlhttp.open("GET",url,true);
xmlhttp.send();
}
$("#ar_news_content img").each(function() {
var imageCaption = $(this).attr("alt");
if (imageCaption != '') {
var imgWidth = $(this).width();
var imgHeight = $(this).height();
var position = $(this).position();
var positionTop = (position.top + imgHeight - 26)
/*$("
" + imageCaption +
"").css({
"position": "absolute",
"top": positionTop + "px",
"left": "0",
"width": imgWidth + "px"
}).insertAfter(this);
*/
$("
" + imageCaption +
"").css({
"margin-bottom": "10px"
}).insertAfter(this);
}
});
-->