var infobox_sexy = '';
function generate_system_information(type, info, timeout){
if(timeout>0) info += "
";
switch(type){
case 'alert':
flash('fl_alert', '0');
setTimeout("clear_flash()",(timeout>2500) ? timeout : 3000);
infobox_sexy = Sexy.alert(info,
{
textBoxBtnOk: 'Zamknij'
}
);
break;
case 'info':
flash('fl_info', '0');
setTimeout("clear_flash()",(timeout>2500) ? timeout : 3000);
infobox_sexy = Sexy.info(info,
{
textBoxBtnOk: 'Zamknij'
}
);
break;
case 'error':
flash('fl_alert', '0');
setTimeout("clear_flash()",(timeout>2500) ? timeout : 3000);
$('.listTab1').animate({marginLeft: '-10px'}, 100).animate({marginLeft: '10px'},100).animate({marginLeft: '-10px'}, 100).animate({marginLeft: '10px'},100).animate({marginLeft: '-10px'}, 100).animate({marginLeft: '0'},50)
infobox_sexy = Sexy.error(info,
{
textBoxBtnOk: 'Zamknij'
}
);
break;
case 'logout':
flash('fl_logout', '0');
setTimeout("clear_flash()",4000);
infobox_sexy = Sexy.info(info,
{
textBoxBtnOk: 'Zamknij'
}
);
break;
}
if(timeout>0){
setTimeout("ended_animate()", 500);
}
}
function ended_animate(){
var timelimit = $('.closeprogress').children('input').val();
$('#closeprogress').animate({
width: 0
}, parseInt(timelimit), 'linear', function(){
infobox_sexy.display(0);
});
}
function get_height(){
var h = $('body').clientHeight;
return h;
}
function flash(id, preload){
$('#'+id).html(' ');
var source = $('#'+id).attr('title');
var szer = $('#'+id).width();
var wys = $('#'+id).height();
var id=$('#'+id).attr('id');
$('#'+id).flash({
src: source,
width: szer,
height: wys,
wmode: 'transparent',
id: 'fl_'+id,
name: 'fl_'+id,
flashvars: {preload: preload}
});
}
$(document).ready(function(){
flash('fl_info', '1');
flash('fl_alert', '1');
flash('fl_startup', '1');
clear_flash();
makealert();
});
function clear_flash(){
$('#fl_fl_info').remove();
$('#fl_fl_alert').remove();
$('#fl_fl_startup').remove();
$('#fl_info').removeClass('flash-replaced');
$('#fl_alert').removeClass('flash-replaced');
$('#fl_startup').removeClass('flash-replaced');
}
function makealert(){
$('.makealert').click(function(){
generate_system_information('alert', 'Czy na pewno działam... hmm... o kurcze - użytkownik przed ekranem wykryty!', 1000);
flash('fl_alert', '0');
setTimeout("clear_flash()",3000);
});
}
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/js.php:46) in /var/www/html/3dpart/ChromePhp.php on line 394