I have made some jquery code :
Code: Select all
$("div.data a").live("mouseover",function(){ $('#foto').load('gallery.php', { 'dir':$(this).parent('div.data').attr('rel'), 'kategory':$(this).parent('div.data').attr('value'), 'gallery':'no'}, function() { $(this).hide().fadeIn('slow'); }); $move_by = 600; $frame_left = 0; $frame_no = 1; return false; }); Code: Select all
if(isset($_POST['kategory'])) {
$rows = $data->retrieveData($_POST['kategory']);
//print_r($rows[0]['title']);
$count = count($rows);
}
for($i = 0; $i < $count; $i++) {
echo '<div id="data" class="data" rel="'.$rows[$i]['dir'].'" value="'.$rows[$i]['kategory'].'"><a href="#">'.$rows[$i]['date'].' : '.$rows[$i]['title'].' - '.$rows[$i]['text'].'</a></div>';
}
So I decided to made interval and I made this code :
Code: Select all
$("div.data a").live("mouseover",function(){ setTimeout(function() { $('#foto').load('gallery.php', { 'dir':$(this).parent('div.data').attr('rel'), 'kategory':$(this).parent('div.data').attr('value'), 'gallery':'no'}, function() { $(this).hide().fadeIn('slow'); }); $move_by = 600; $frame_left = 0; $frame_no = 1; return false; }, 1000); }); Code: Select all
'dir':$(this).parent('div.data').attr('rel'),'kategory':$(this).parent('div.data').attr('value'), I was trying to refere to this values in some other way but without good results,
Enybody can help ?