<script type="text/javascript">
var colours=new Array("#F781BE", "#F781BE", "#F781BE", "#F781BE", "#F781BE"); // warna untuk border-top, border-right, border-bottom, border-left dan background gelembung
var bubbles=100; // jumlah maksmal gelembung
window.onload=function() { if (document.getElementById) {
for (var i=0; i<bubbles; i++) {
rats=createDiv("3px", "3px");
rats.style.visibility="hidden";
div=createDiv("auto", "auto");
div.borderLeft="1px solid "+colours[3];
div.borderRight="1px solid "+colours[1];
div=createDiv("auto", "auto");
div.borderTop="1px solid "+colours[0];
div.borderBottom="1px solid "+colours[2];
div=createDiv("auto", "auto");
div.backgroundColor=colours[4];
if (document.all) div.filter="alpha(opacity=50)";
document.body.appendChild(rats);
for (c=0; c<bubbles; c++) if (!bubby[c]) {
bubb[c].left=(bubbx[c]=x)+"px";
bubb[c].top=(bubby[c]=y)+"px";
bubb[c].visibility="visible";
for (c=0; c<bubbles; c++) if (bubby[c]) update_bubb(c);
setTimeout("bubble()", 40);
function update_bubb(i) {
bubby[i]-=bubbs[i]/2+i%2;
if (bubby[i]>sdown && bubbx[i]>0) {
if (Math.random()<bubbs[i]/shigh*2 && bubbs[i]++<8) {
bubb[i].width=bubbs[i]+"px";
bubb[i].height=bubbs[i]+"px";
bubb[i].top=bubby[i]+"px";
bubb[i].left=bubbx[i]+"px";
bubb[i].visibility="hidden";
document.onmousemove=mouse;
y=(e)?e.pageY:event.y+sleft;
x=(e)?e.pageX:event.x+sdown;
window.onresize=set_width;
if (document.documentElement && document.documentElement.clientWidth) {
swide=document.documentElement.clientWidth;
shigh=document.documentElement.clientHeight;
else if (typeof(self.innerHeight)=="number") {
else if (document.body.clientWidth) {
swide=document.body.clientWidth;
shigh=document.body.clientHeight;
window.onscroll=set_scroll;
if (typeof(self.pageYOffset)=="number") {
else if (document.body.scrollTop || document.body.scrollLeft) {
sdown=document.body.scrollTop;
sleft=document.body.scrollLeft;
else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
sleft=document.documentElement.scrollLeft;
sdown=document.documentElement.scrollTop;
function createDiv(height, width) {
var div=document.createElement("div");
div.style.position="absolute";
div.style.overflow="hidden";