Mouse styles Create bubbles on the mouse on the page

Source: Internet
Author: User

<HTML>
<HEAD>
<title> create bubbles around the mouse on the page </title>
</HEAD>
<body bgcolor= #000000 scroll=no Onload=zyva () >
<div Id=aqua style= "position:absolute;left=0;top=0;" ></div>

<SCRIPT>
Object = new Array ()
var xm,ym
function CObj (n,obj) {
Aqua.insertadjacenthtml ("Afterbegin", "This.img = Aqua.firstChild.style
Mr = Math.random ()
THIS.V = 6*mr+4
THIS.S =. 5*mr
THIS.P =. 1+mr
THIS.W = 0
THIS.K = 0
This.x = XM
This.y = N
This. Chteumeuleu = function Chteumeuleu () {
With (this) {
With (IMG) {
left = (X+=0.5*v*math.sin (k+=s))-w*0.5
top = Y-=v
width = math.min (w+=p,100)
}
if (y<-w) {
W = 8
y = ym
x = XM
}
}
}
}
function gradient (r,g,b,m) {
for (i=0;i<25;i++) {
c = 255-10 * I
C = "\" RGB ("+math.round (c*r/255) +", "+math.round (c*g/255) +", "+math.round (c*b/255) +") \ ""
Code = "<span style= ' position:absolute;font-size:1pt;left=0;width=120%;height=" + (m) + ". 2%;top=" + (I*M)


+ "%;background=" +c+ "; z-index:-1000 ' ></span>"
Document.body.insertAdjacentHTML ("BeforeEnd", code)
}
}


function Zyva () {
XM = document.body.offsetWidth * 0.5
YM = Document.body.offsetHeight
Document.onmousemove = function () {
XM = Window.event.clientX
YM = Window.event.clientY
}
for (i=0;i<60;i++) object[i] = new CObj (i,b)
SetInterval ("for (I-in object) Object[i]. Chteumeuleu () ", 16)
Gradient (41,93,214,2)
}


</SCRIPT>
<div><a href= "http://www.999jiujiu.com/" >http://www.999jiujiu.com/</A></div>
</BODY>
</HTML>

Mouse styles Create bubbles on the mouse on the page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.