Been trying out all of your suggestions! Really appreciate you help, but im still stuck.. havent got the .one to work ..tried $("#chatline:first").one(function(){ $(this).fadein()}); but major failure from Jquery :p as i said.. im pretty noob in Jq.
also tried adding and removing classes, but cannot make jquery remember that the class is removed.. so it fades in and out etc..
Heres the script, sligtly shorted..
...
j(document).ready(function(){
//reloads every 3sec
j(".chatref").everyTime(3000,function(i){
j.ajax({url: "chatx.php",
cache: false,
success: function(html){
j(".chatref").html(html);
// These for testing
if($('div#chatline').hasClass('first')){
j("#chatline").fadeIn('slow');
}
snipped... End of jquery
PHP(part of chatx.php):
div class='chatref' <- This one is only for Jquerys everytime function, e.g where to show the stuff. Dont know other ways to do this.
//first div i added classname first and hidden with php
div class='chatline hidden first'
div class='chatline'
div class='chatline'
div class='chatline'
.... etc
snipped... End php
Hope i have explained good enough! Thanx for the help guys!!