¿Cómo utilizar el código para implementar la función de captura de pantalla QQ en una página web Jsp? Por favor ayuda para ver
var div_move = 0; /p>
var IE = document.all?true:false;
var tempX, tempY, oldX, oldY;
var have_move = 0;
función captar ()
{
div_move = 1;
if(IE)
{
document.getElementById ("source_div").setCapture();
}
}
función libre()
{
div_move = 0;
have_move = 0;
document.releaseCapture();
función getMouseXY(e)
{
if (IE)
{ // toma la posición x-y si el navegador es IE
tempX = evento .clientX document.tempY = evento.clientY document.body.scrollTop
}
else
{
// Si el navegador es NS, toma la posición x-y
tempX = e.pageX
tempY = e.pageY
}
// Toma la posición x-y.
// captura posibles valores negativos en NS4
if (tempX lt; 0){ tempX = 0}
if (tempY lt; 0) {tempY = 0}
}
función move_it(e)
{
getMouseXY(e);
if(div_move == 1)
{
if(have_move == 0)
{
//alerta( 'a ');
oldX = tempX
oldY = tempY
have_move = 1;
var izquierda = parseInt(document.
var izquierda = parseInt(document.style.left = left tempX - oldX;
document.getElementById("source_div").style .top = top tempY - oldY
oldX = tempX;
oldY = tempY
}
}
función cambiar_tamaño(método)
{
if(método == 1)
{
var per = 1.25;
p>}
más
{
var per = 0.8
}
document .getElementById("show_img").width = document.getElementById("show_img").width*per;
//document.getElementById("show_img").height = document.getElementById ("show_img").height*per;
}
función micro_ move(método)
{
switch (método)
{
case "up":
var top = parseInt(document.style.top); document.getElementById( "source_div").style.top = top - 5;
break
case "down":
var top = parseInt( document.getElementById( "source_div").style.left = izquierda - 5;
break
case "right":
var left = parseInt( document.getElementById( "source_div").style.l
eft);
document.getElementById("source_div").style.left = izquierda
descanso
}
}
función de giro(método)
{
var i=document.getElementById('show_img').style.filter.match(/\d/ )[0]
//alerta(i);
i=parseInt(i) parseInt(método
//alerta(i);
if(ilt; 0)
{
i = 4
}
if(igt; ;=4)
{
i -= 4;
}
//alerta(i);
document.getElementById('show_img').style.filter='progid: DXImageTransform.Microsoft.BasicImage(Rotation=' i ')'
}
function mysub( )
{
var Oform = document.myform;
Oform.go.value = 1
Oform.width.value; = document.getElementById("show_img").width;
Ofform.left.value = document.getElementById("source_div").style.if(IE)
{ p> p>
Ofform.turn.value = document.getElementById("source_div").style.filter.match(/\d/)[0]; p> Ofform.submit();
}
Hay una función similar debajo del manzano, pero es mucho más poderosa de lo que dijiste...