Denna sida är under ombyggnad för att TBweb ska kunna göra det lättare för dig att kunna beställa en sida härifrån beställ en hemsida online nu ! sätt nån av dom av dom här på din sida så är du snäll. import java.applet.Applet; import java.awt.*; import java.net.URL; public class logo extends Applet implements Runnable { public void init() { URL url = getDocumentBase(); String s = url.getHost(); { xsize = size().width; ysize = size().height; backBuffer = createImage(xsize, ysize); backGC = backBuffer.getGraphics(); f = new Font("Helvetica", 1, 32); f1 = new Font("Helvetica", 1, 16); float f2 = 0.0F; for(int i = 0; i < 50; i++) { colors1[i] = Color.getHSBColor(f2, 1.0F, 1.0F); colors2[i] = Color.getHSBColor(f2, 1.0F, 0.8F); colors3[i] = Color.getHSBColor(f2, 1.0F, 0.6F); colors4[i] = Color.getHSBColor(f2, 1.0F, 0.4F); f2 = (float)(f2 + 0.02D); } f2 = 0.0F; for(int k = 0; k < 30; k++) { colors[k] = Color.getHSBColor(f2, 1.0F, 1.0F); f2 = (float)(f2 + 0.033000000000000002D); } } } public void start() { if(runner == null) { runner = new Thread(this); runner.start(); } } public void stop() { runner = null; } public void run() { long l = System.currentTimeMillis(); while(runner != null) { try { l += delay; Thread.sleep(Math.max(0L, l - System.currentTimeMillis())); } catch(InterruptedException ex) {} repaint(); } } public void update(Graphics g) { paint(g); } public void paint(Graphics g) { backGC.setColor(Color.black); backGC.fillRect(0, 0, xsize, ysize); for(int i = 0; i < j; i++) { backGC.setColor(colors1[i]); backGC.drawArc(xsize / 8, ysize / 4, (3 * xsize) / 4, ysize / 2, 210, (i * 240) / 50); backGC.setColor(colors2[i]); backGC.drawArc(xsize / 8 + dx, ysize / 4 + 2, (3 * xsize) / 4 - 2 * dx, ysize / 2 - 2 * dx, 220, (i * 230) / 50); backGC.setColor(colors3[i]); backGC.drawArc(xsize / 8 + 2 * dx, ysize / 4 + 4, (3 * xsize) / 4 - 4 * dx, ysize / 2 - 4 * dx, 230, (i * 220) / 50); backGC.setColor(colors4[i]); backGC.drawArc(xsize / 8 + 3 * dx, ysize / 4 + 6, (3 * xsize) / 4 - 6 * dx, ysize / 2 - 6 * dx, 240, (i * 210) / 50); } if(j < 30) { for(int k = 0; k < j; k++) { backGC.setFont(f); backGC.setColor(colors[k]); if(index == 0) backGC.drawString(text, (xsize / 4 - depth / 2) + k, (ysize / 4 - depth / 2) + k); else backGC.drawString(text1, (xsize / 4 - 3 * depth) + k, (ysize / 4 - depth / 2) + k); } } else { for(int l = 0; l < 30; l++) { backGC.setFont(f); backGC.setColor(colors[l]); if(index == 0) backGC.drawString(text, (xsize / 4 - depth / 2) + l, (ysize / 4 - depth / 2) + l); else backGC.drawString(text1, (xsize / 4 - 3 * depth) + l, (ysize / 4 - depth / 2) + l); } } backGC.setFont(f1); if(j < 20) { if(index == 0) { backGC.setColor(new Color(204, 0, 255)); backGC.drawString(text2.substring(0, j + 1), xsize / 8 + 2, ysize / 2); } else { backGC.setColor(new Color(255, 153, 0)); backGC.drawString(text3.substring(0, j + 1), xsize / 8 + 2, ysize / 2); } } else if(index == 0) backGC.drawString(text2, xsize / 8 + 2, ysize / 2); else backGC.drawString(text3, xsize / 8 + 2, ysize / 2); g.drawImage(backBuffer, 0, 0, this); j++; if(j == 50) { j = 0; if(index == 0) { index = 1; return; } index = 0; } } public logo() { delay = 60; dx = 6; text = "Tbweb's"; text1 = "Hemsida"; text2 = ""; text3 = ""; depth = 5; colors = new Color[30]; colors1 = new Color[50]; colors2 = new Color[50]; colors3 = new Color[50]; colors4 = new Color[50]; } Thread runner; int delay; int j; int dx; int index; int xsize; int ysize; Image backBuffer; Graphics backGC; Font f; Font f1; String text; String text1; String text2; String text3; int depth; Color colors[]; Color colors1[]; Color colors2[]; Color colors3[]; Color colors4[]; }