📄 index.php
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE>EZUSB2131 - Waldo</TITLE><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="expires" content="0"><!-- ## Copyright (c) 2003, Tony Cureington ## This is Free Software with ABSOLUTELY NO WARRANTY. You are welcome to ## redistribute it under the terms of the GNU General Public License, see the ## file COPYING for details.--><!-- ################################################################### --><!-- # JAVASCRIPT FUNCTIONS # --><!-- ################################################################### --><SCRIPT LANGUAGE="JavaScript"><!-- begin javascriptvar win_open = 0;var img_load = 0;functionmove_cam(params){ img_load++; // this is used to force the image to reload and not be cached // all options are off by default // "width=1,height=1,left=0,top=0, // location=no, menubar=no,scrollbars=no, // toolbar=no,status=no,directorie=no,resizable=no, // screenX=10,screenY=10"); win_args = "width=350,height=150,left=0,top=0,screenX=10,\ screenY=10,resizable=no,location=no,menubar=no,\ scrollbars=yes,toolbar=no,status=no,directorie=no"; // What a CRAPPY way to execute a shell command from JavaScript; If // you know of a cleaner way to do this, let me know. I've read there // is no way to call a shell command on the remote server from JavaScript... // This causes CRAPPY hacks like below to be used to get around this. // Also, we don't want to modify/refresh the cam_control main page // everytime something is clicked. if (!win_open) { msgWindow=window.open("","CamControl", win_args); msgWindow.document.write("<HEAD><TITLE>CamControl<\/TITLE><\/HEAD>"); msgWindow.document.write("This is a CamControl window, it is "); msgWindow.document.write("a hack to execuate shell commands "); msgWindow.document.write("from JavaScript on the remote "); msgWindow.document.write("server. Just iconify this window. "); msgWindow.document.write("CamControl won\'t work without "); msgWindow.document.write("this window."); win_open=1; } msgWindow.document.write('<img src="cgi-bin/move_cam.pl?cam_params=',params,'&img_count=',img_load,'">'); // msgWindow.blur(); // msgWindow.close(); return false;}// end javascript --></SCRIPT></HEAD><!---<BODY BGCOLOR="#FFFFFF" TEXT="000000">---><BODY BGCOLOR="#000000" TEXT="FFFFFF"><CENTER>WALDO</CENTER><hr WIDTH="100%"><p><p><CENTER><IMG SRC="http://flux:9192"></CENTER><p><p><!-- ################################################################### --><!-- # IMAGE MAP COORDINATES # --><!-- ################################################################### --><MAP NAME="cam_box_coords"><!-- below is for Netscape.... I like the method of clicking and holding the mouse down to move the cam, and it stops when the mouse is released - Netscape doesn't support the onmousedown and onmouseup optional parameters... So, I use Mozilla to run this - I will soon use Mozilla for everything. Yes, I am/was a die-hard Netscape user. onClick="javascript:move_cam('-x%20-90%20-y%20-90');return false" onmouseout="javascript:move_cam('-s');return false">--><!-- upper left corner, the "%20" sent to move_cam is a space --><AREA SHAPE="polygon" COORDS="0,0 118,0 118,10 10,118 0,118" HREF="#" alt="upper left diagonal" onmousedown="javascript:move_cam('-x%2090%20-y%20-90');return false" onmouseup="javascript:move_cam('-s');return false"><!-- lower left corner --><AREA SHAPE="polygon" COORDS="0,118 10,118 118,225 118,235 0,235" HREF="#" alt="lower left diagonal" onmousedown="javascript:move_cam('-x%2090%20-y%2090');return false" onmouseup="javascript:move_cam('-s');return false"><!-- upper right corner --><AREA SHAPE="polygon" COORDS="118,0 118,10 225,118 235,118 235,0" HREF="#" alt="upper right diagonal" onmousedown="javascript:move_cam('-x%20-90%20-y%20-90');return false" onmouseup="javascript:move_cam('-s');return false"><!-- lower right corner --><AREA SHAPE="polygon" COORDS="225,118 235,118 235,235 118,235 118,225" HREF="#" alt="lower left diagonal" onmousedown="javascript:move_cam('-x%20-90%20-y%2090');return false" onmouseup="javascript:move_cam('-s');return false"><!-- up --><AREA SHAPE="polygon" COORDS="64,64 118,10 171,64" HREF="#" alt="up" onmousedown="javascript:move_cam('-y%20-90');return false" onmouseup="javascript:move_cam('-s');return false"><!-- down --><AREA SHAPE="polygon" COORDS="171,171 118,225 64,171" HREF="#" alt="down" onmousedown="javascript:move_cam('-y%2090');return false" onmouseup="javascript:move_cam('-s');return false"><!-- right --><AREA SHAPE="polygon" COORDS="171,64 225,118 171,171" HREF="#" alt="right" onmousedown="javascript:move_cam('-x%20-90');return false" onmouseup="javascript:move_cam('-s');return false"><!-- left --><AREA SHAPE="polygon" COORDS="64,171 10,118 64,64" HREF="#" alt="left" onmousedown="javascript:move_cam('-x%2090');return false" onmouseup="javascript:move_cam('-s');return false"><!-- blue box; rectangle shape would not work for me, had to use polygon --><AREA SHAPE="polygon" COORDS="64,64 171,64 171,171 64,171" HREF="#" alt="center" onmousedown="javascript:move_cam('-c');return false" onmouseup="javascript:move_cam('-s');return false"><AREA SHAPE="default" HREF="#" alt="no way" onmousedown="javascript:move_cam('-c');return false" onmouseup="javascript:move_cam('-s');return false"></MAP><!-- ################################################################### --><!-- # THE IMAGE # --><!-- ################################################################### --><CENTER><IMG SRC="cam_box.png" border=0 USEMAP="#cam_box_coords"></CENTER><!-- for debugging, you must uncommentd the "debug" code in move_cam.pl for this to work...<A HREF="cgi-bin/move_cam.pl?cam_params=zz">DEBUG</A><A HREF="cgi-bin/move_cam.pl?cam_params=-x%20-45%20-y%2045">DEBUG</A>--></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -