Click to See Complete Forum and Search --> : Simple help! Please........


Untitled
01-01-2006, 05:07 AM
Hello everyone.

I am building a website with an image map and stuff something similar to:

www.milliondollarhomepage.com

Its not a complete copycat site but lots of things are similar. I just want to know if there is this script iam looking for.

In the milliondollarhomepage.com website when you move the mouse you can see the coordinates right? ( In the alt box )

Like it shows whether the pixels are available or not........

well how do i do that? What is the script i should use?

Thank you,

Untitled

p4processor
01-01-2006, 06:12 AM
Hi,

Go through the following scripts. It must help you.

<html>
<head>
<script Language="JavaScript">
<!--

function MoveBox()
{
var X,Y;
X=window.event.x;
Y=window.event.y;
var Obj;
Obj = document.getElementById("Box");
Obj.style.left=X;
Obj.style.top=Y;
Obj.innerHTML="Current Cordinates are (" + X + "," + Y + ")";

}
// -->
</script>
</head>
<body onMousemove="MoveBox();">


<Div id="Box" style="position:absolute;height:20;width:150;left:0;right:0;background-color:yellow" ></Div>

</body>
</html>
Have a nice time...!!

Untitled
01-01-2006, 06:43 AM
Hey thanx man!!

That was it

I owe u one

jzwp
01-01-2006, 07:02 AM
I saw that page from a yahoo news headline. Kinda cool. somewhere on that page I found a link to take you and get the PHP script

Untitled
01-01-2006, 10:46 AM
Hey and one more thing.......... How can i make it such that in some areas it shows " Pixels Available with the co-ordinates" and in some " Sorry sold with the coordinates". Thanx a lot by the way!

Untitled