Location: PHPKode > projects > AppForMap > appformap/headers/header_bleed.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>AppForMap::Demo::Bleed</title>
<meta name="keywords" content="wms client php overlay map layercontrol geografical data web map service spatial" />
<meta name="description" content="Web base aplication for viewing maps from wms" />
<link rel="stylesheet" type="text/css" href="styles/styles_bleed.css" />
<script>
function setMapSize()
{
	setWindowSize();
	update();
}
</script>
<style>
<!--
.dragme{position:relative;left:350;top:200;cursor:move}
-->
</style>
<script language="JavaScript1.2">
<!--

var ie=document.all;
var nn6=document.getElementById&&!document.all;

var isdrag=false;
var x,y;
var dobj;

function movemouse(e)
{
  if (isdrag)
  {
    dobj.style.left = nn6 ? tx + e.clientX - x : tx + event.clientX - x;
    dobj.style.top  = nn6 ? ty + e.clientY - y : ty + event.clientY - y;
    return false;
  }
}

function selectmouse(e) 
{
  var fobj       = nn6 ? e.target : event.srcElement;
  var topelement = nn6 ? "HTML" : "BODY";

  while (fobj.tagName != topelement && fobj.className != "dragme")
  {
    fobj = nn6 ? fobj.parentNode : fobj.parentElement;
  }

  if (fobj.className=="dragme")
  {
    isdrag = true;
    dobj = fobj;
    tx = parseInt(dobj.style.left+350);
    ty = parseInt(dobj.style.top+200);
    x = nn6 ? e.clientX : event.clientX;
    y = nn6 ? e.clientY : event.clientY;
    document.onmousemove=movemouse;
    return false;
  }
}

document.onmousedown=selectmouse;
document.onmouseup=new Function("isdrag=false");

//-->
</script>

 
</head>
<body bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" topmargin="0" styles="background-color:transparent" onload="">
Return current item: AppForMap