Merhaba arkadaşlar,
http://blueowlcreative.com/wp/terra/blue/ adresindeki gibi sayfada aşağı inildikçe içeriklerin yumuşak animasyonlarla yüklenmesini nasıl yapabilirim fikri olan var mıdır? Teşekkürler şimdiden..
Sayfa İnişinde İçeriğin Animasyonla Yüklenmesi |
7 Mesajlar | 1.281 Okunma |
BatuhanUyar adlı üyeden alıntı
http://buraksah.in/wordpresste-sayfa-sonuna-indikce-eski-yazilarin-yuklenmesi-facebook-twitter-tarzi.html buraya bi göz at yardımcı olacaktır :)
include('mysql.php');
$last_msg_id=$_GET['last_msg_id'];
$action=$_GET['action'];
if($action <> "get")
{
?>
<script></script>
<script>
$(document).ready(function()
{
function last_msg_funtion()
{
var ID=$(".message_box:last").attr("id");
$('div#last_msg_loader').html('');
$.post("scroll.php?action=get&amp;last_msg_id="+ID,
function(data){
if (data != "") {
$(".message_box:last").after(data);
}
$('div#last_msg_loader').empty();
});
};
$(window).scroll(function(){
if ($(window).scrollTop() == $(document).height() - $(window).height()){
last_msg_funtion();
}
});
});
</script>
blogkenti.Com - Scroll Load Demo
//Include load_first.php
$sql=$dba->query("SELECT ID,post_title,post_name FROM wp_posts WHERE post_status='publish' ORDER BY ID DESC LIMIT 25");
while($row=$dba->fetch_array($sql))
{
$msgID= $row['ID'];
$msg= $row['post_title'];
$link=$row['post_name'];
?>
}
?>
}else{
include('scroll.php'); //include load_second.php
}
$dba->close();
?>
include('mysql.php');
$last_msg_id=$_GET['last_msg_id'];
$sql=$dba->query("SELECT * FROM wp_posts WHERE ID<'$last_msg_id' and post_status='publish' ORDER BY ID DESC LIMIT 5");
$last_msg_id="";
while($row=$dba->fetch_array($sql))
{
$msgID= $row['ID'];
$link=$row['post_name'];
$msg= $row['post_title'];
?>
}
$dba->close();
?>
BatuhanUyar adlı üyeden alıntı
index.php kodları
include('mysql.php');
$last_msg_id=$_GET['last_msg_id'];
$action=$_GET['action'];
if($action <> "get")
{
?>
<script></script>
<script>
$(document).ready(function()
{
function last_msg_funtion()
{
var ID=$(".message_box:last").attr("id");
$('div#last_msg_loader').html('');
$.post("scroll.php?action=get&amp;last_msg_id="+ID,
function(data){
if (data != "") {
$(".message_box:last").after(data);
}
$('div#last_msg_loader').empty();
});
};
$(window).scroll(function(){
if ($(window).scrollTop() == $(document).height() - $(window).height()){
last_msg_funtion();
}
});
});
</script>
blogkenti.Com - Scroll Load Demo
//Include load_first.php
$sql=$dba->query("SELECT ID,post_title,post_name FROM wp_posts WHERE post_status='publish' ORDER BY ID DESC LIMIT 25");
while($row=$dba->fetch_array($sql))
{
$msgID= $row['ID'];
$msg= $row['post_title'];
$link=$row['post_name'];
?>
}
?>
}else{
include('scroll.php'); //include load_second.php
}
$dba->close();
?>
include('mysql.php');
$last_msg_id=$_GET['last_msg_id'];
$sql=$dba->query("SELECT * FROM wp_posts WHERE ID<'$last_msg_id' and post_status='publish' ORDER BY ID DESC LIMIT 5");
$last_msg_id="";
while($row=$dba->fetch_array($sql))
{
$msgID= $row['ID'];
$link=$row['post_name'];
$msg= $row['post_title'];
?>
}
$dba->close();
?>