1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
| <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<html>
<script>
var requete;
function interro()
{
if (window.XMLHttpRequest)
{
requete = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
requete = new ActiveXObject("Microsoft.XMLHTTP");
}
requete.onreadystatechange = majIHMtxt;
requete.open('GET', 'servlet?ck=' + (new Date()).getTime(), true);
requete.send(null);
}
function majIHMtxt()
{
if (requete.readyState == 4)
{
if (requete.status == 200)
{
incrustation = document.getElementById("essai");
incrustation.innerHTML = requete.responseText;
}
}
}
</script>
<script>setInterval('interro()', 3000); </script>
<head>
<meta charset="utf-8" />
<title>Test SVG JSP</title>
</head>
<body>
<form method="post" action="Logoff">
<div id="connexion">
<%
String pseudo = (String) session.getAttribute("utilisateur");
out.print ("<span id=\"bienv\">Connexion : " + pseudo + " </span><input type=\"submit\" value=\"Déconnexion\" />");
%>
</div>
</form>
<svg width="600" height="300" xml:lang="fr"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="m 400,100 -250,0 c -40,0 -80,40 -80,80 0,40 40,80 80,80 l 250,0 c 40,0 80,-40 80,-80 0,-40 -40,-80 -80,-80 m 0,160 50,0 c 40,0 80,-40 80,-80 0,-40 -40,-80 -80,-80 l -50,0" style="fill:none; stroke:black;" />
<g>
<path d="m 80,120 20,20 " style="fill:none; stroke:black;" />
<path d="m 80,240 20,-20 " style="fill:none; stroke:black;" />
<path d="m 200,110 0,-20 " style="fill:none; stroke:black;" />
<path d="m 360,110 0,-20 " style="fill:none; stroke:black;" />
<path d="m 470,115 10,-20 " style="fill:none; stroke:black;" />
<path d="m 460,110 -20,20 " style="fill:none; stroke:black;" />
<path d="m 460,250 -20,-20 " style="fill:none; stroke:black;" />
<path d="m 470,245 10,20 " style="fill:none; stroke:black;" />
<path d="m 520,180 20,0 " style="fill:none; stroke:black;" />
<path d="m 360,250 0,20 " style="fill:none; stroke:black;" />
<path d="m 200,270 0,-20 " style="fill:none; stroke:black;" />
</g>
<g>
<circle id="A1" stroke="black" fill="white" r="17" cy="100" cx="280"/>
<circle id="A2" stroke="black" fill="white" r="17" cy="100" cx="135"/>
<circle id="A3" stroke="black" fill="white" r="17" cy="180" cx="72"/>
<circle id="A4" stroke="black" fill="white" r="17" cy="260" cx="135"/>
<circle id="A5" stroke="black" fill="white" r="17" cy="260" cx="280"/>
<circle id="A6" stroke="black" fill="white" r="17" cy="260" cx="405"/>
<circle id="A7" stroke="black" fill="white" r="17" cy="180" cx="477"/>
<circle id="A8" stroke="black" fill="white" r="17" cy="100" cx="405"/>
<circle id="B2" stroke="black" fill="white" r="17" cy="133" cx="512"/>
<circle id="B1" stroke="black" fill="white" r="17" cy="226" cx="512"/>
</g>
<g>
<text x="270" y="105" style="fill: #FFFFFF; stroke: #000000; font-family: Arial;">A1</text>
<text x="125" y="105" style="fill: #FFFFFF; stroke: #000000; font-family: Arial;">A2</text>
<text x="62" y="185" style="fill: #FFFFFF; stroke: #000000; font-family: Arial;">A3</text>
<text x="125" y="265" style="fill: #FFFFFF; stroke: #000000; font-family: Arial;">A4</text>
<text x="270" y="265" style="fill: #FFFFFF; stroke: #000000; font-family: Arial;">A5</text>
<text x="395" y="265" style="fill: #FFFFFF; stroke: #000000; font-family: Arial;">A6</text>
<text x="467" y="185" style="fill: #FFFFFF; stroke: #000000; font-family: Arial;">A7</text>
<text x="395" y="105" style="fill: #FFFFFF; stroke: #000000; font-family: Arial;">A8</text>
<text x="503" y="232" style="fill: #FFFFFF; stroke: #000000; font-family: Arial;">B1</text>
<text x="503" y="139" style="fill: #FFFFFF; stroke: #000000; font-family: Arial;">B2</text>
</g>
</svg>
<div id="essai"></div>
</body>
</html> |
Partager