首页 >
drag = 0move = 0
function moveMouse(e) {if (isdrag) {oDragObj.style.top = (nn6 ? nTY + e.clientY – y : nTY + event.clientY – y)+”px”;oDragObj.style.left = (nn6 ? nTX + e.clientX – x : nTX + event.clientX – x)+”px”;return false;}}
function initDrag(e) {var oDragHandle = nn6 ? e.target : event.srcElement;var topElement = “HTML”;while (oDragHandle.tagName != topElement && oDragHandle.className != “dragAble”) {oDragHandle = nn6 ? oDragHandle.parentNode : oDragHandle.parentElement;}if (oDragHandle.className==”dragAble”) {isdrag = true;oDragObj = oDragHandle;nTY = parseInt(oDragObj.style.top+0);y = nn6 ? e.clientY : event.clientY;nTX = parseInt(oDragObj.style.left+0);x = nn6 ? e.clientX : event.clientX;document.onmousemove=moveMouse;return false;}}document.onmousedown=initDrag;document.onmouseup=new Function(“isdrag=false”);
function clickMove(s){if(s==”up”){dragObj.style.top = parseInt(dragObj.style.top) + 100;}else if(s==”down”){dragObj.style.top = parseInt(dragObj.style.top) – 100;}else if(s==”left”){dragObj.style.left = parseInt(dragObj.style.left) + 100;}else if(s==”right”){dragObj.style.left = parseInt(dragObj.style.left) – 100;}
}
function smallit(){var height1=images1.height;var width1=images1.width;images1.height=height1/1.2;images1.width=width1/1.2;}
function bigit(){var height1=images1.height;var width1=images1.width;images1.height=height1*1.2;images1.width=width1*1.2;}function realsize(){images1.height=images2.height;images1.width=images2.width;block1.style.left = 0;block1.style.top = 0;
}function featsize(){var width1=images2.width;var height1=images2.height;var width2=360;var height2=200;var h=height1/height2;var w=width1/width2;if(height1<height2&&width1w){images1.height=height2;images1.width=width1*height2/height1;}else{images1.width=width2;images1.height=height1*width2/width1;}}block1.style.left = 0;block1.style.top = 0;}
php获取网页里所有图片并存入数组办法【PHP】 | php获取网页里所有图片并存入数组办法【PHP】 ...
CSS 关于网页图片的属性 | CSS 关于网页图片的属性 ...
PHP 抓取网页图片并且另存为的实现代码【PHP】 | PHP 抓取网页图片并且另存为的实现代码【PHP】 ...