Jump to content

Java La Mouse


Dragoshel

Recommended Posts

Apare o chestie cand misti mausu , nu stiu cum sa explic :))) VEDETI VOI

MERGE doar in INTERNET EXPLORER

<script language="JavaScript">

//Choose colours and size of effect !!

var a_Colour='blue';

var b_Colour='red';

var c_Colour='yellow';

var Size=50;

//Alter nothing below !!

var YDummy=new Array(),XDummy=new Array(),xpos=0,ypos=0,ThisStep=0;step=0.03;

if (document.layers){

window.captureEvents(Event.MOUSEMOVE);

function nsMouse(evnt){

xpos = window.pageYOffset+evnt.pageX+6;

ypos = window.pageYOffset+evnt.pageY+16;

}

window.onMouseMove = nsMouse;

}

else if (document.all)

{

function ieMouse(){

xpos = document.body.scrollLeft+event.x+6;

ypos = document.body.scrollTop+event.y+16;

}

document.onmousemove = ieMouse;

}

function swirl(){

for (i = 0; i < 3; i++)

{

?

Link to comment
Share on other sites

Si inca una sa apara numele tau langa cursor

Atentie, merge tot in IE iar ca sa apara ultima litera/cifra, trebuie scrisa de 2 ori....

<script LANGUAGE="JavaScript"></SCRIPT>

<HTML>

<HEAD>

<style>

<!--

all.clsMenuItemNS{font: bold x-small Verdana; color: white; text-decoration: none;}

.clsMenuItemIE{text-decoration: none; font: bold xx-small Verdana; color: white; cursor: hand;}

A:hover {color: red;}

-->

</style>


<style>

.spanstyle {

	position:absolute;

	visibility:visible;

	top:-50px;

	font-size:10pt;

	font-family:Verdana;

      font-weight:bold;

	color:red;

}

</style>

<script>



var x,y

var step=20

var flag=0



var message="Dragoss"

message=message.split("")


var xpos=new Array()

for (i=0;i<=message.length-1;i++) {

	xpos[i]=-50

}


var ypos=new Array()

for (i=0;i<=message.length-1;i++) {

	ypos[i]=-50

}


function handlerMM(e){

	x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX

	y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY

	flag=1

}


function makesnake() {

	if (flag==1 && document.all) {

    	for (i=message.length-1; i>=1; i--) {

      xpos[i]=xpos[i-1]+step

  	ypos[i]=ypos[i-1]

    	}

  xpos[0]=x+step

  ypos[0]=y


  for (i=0; i<message.length-1; i++) {

      var thisspan = eval("span"+(i)+".style")

      thisspan.posLeft=xpos[i]

  	thisspan.posTop=ypos[i]

    	}

	}


	else if (flag==1 && document.layers) {

    	for (i=message.length-1; i>=1; i--) {

      xpos[i]=xpos[i-1]+step

  	ypos[i]=ypos[i-1]

    	}

  xpos[0]=x+step

  ypos[0]=y


  for (i=0; i<message.length-1; i++) {

      var thisspan = eval("document.span"+i)

      thisspan.left=xpos[i]

  	thisspan.top=ypos[i]

    	}

	}

  var timer=setTimeout("makesnake()",30)

}


</script>






<script>

<!-- Beginning of JavaScript -


for (i=0;i<=message.length-1;i++) {

    document.write("<span id='span"+i+"' class='spanstyle'>")

	document.write(message[i])

    document.write("</span>")

}


if (document.layers){

	document.captureEvents(Event.MOUSEMOVE);

}

document.onmousemove = handlerMM;


// - End of JavaScript - -->

</script></body>


<body onLoad="makesnake()">


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.