⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changeimg.js

📁 1.二级分类 2.前台全部页面生成html
💻 JS
字号:
function chgsize(fname) {
    var oImg;
    oImg=fname
	if (oImg.height>530) oImg.height=530;
	if (oImg.width>700) oImg.width=700;
}
//图片拖动脚本
var dragapproved=false
var eventsource,x,y
function move()
 {
  if (event.button==1&&dragapproved) //改变被<u><b><font color="#FF0000">拖动</font></b></u>元素在页面上的位置
   {
    eventsource.style.pixelLeft=temp1+event.clientX-x
    eventsource.style.pixelTop=temp2+event.clientY-y
    return false
   }
 }
function drags()
 {
  if (!document.all)
  return
  if (event.srcElement.id=='PhotoViewer') //捕捉鼠标和被<u><b><font color="#FF0000">拖动</font></b></u>元素的当前位置
   {
    dragapproved=true
    eventsource=event.srcElement
    temp1=eventsource.style.pixelLeft
    temp2=eventsource.style.pixelTop
    x=event.clientX
    y=event.clientY
    document.onmousemove=move
   }
 }
document.onmousedown=drags   
document.onmouseup=new Function("dragapproved=false")
//图片拖动脚本结束

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -