import java.applet.*; import java.awt.*; public class anekdot extends Applet{ Image anek[]=new Image[9]; public void init(){ for(int t=1;t<9;t++){ anek[t]=getImage(getDocumentBase(),t+".gif");} } public void paint(Graphics g){ do{ for(int t=1;t<9;t++){ g.drawImage(anek[t],0,0,this); try{ Thread.sleep(5000); } catch(Exception e){e.printStackTrace();} }}while(true); } }