PHP ÏàÆ¬ÒÆ¶¯ÎÊÌâ - Web ¿ª·¢ / JavaScript
´óϺÃÇ£¬ÄãÃǺã¡
СµÜ¸ÕѧϰPHP²»¾Ã£¬ÔÚʵÏÖͼƬ°´ÕÕÖ¸¶¨µÄ·¾¶Ô˶¯¹¦ÄÜÊÇÓöµ½ÎÊÌ⣬Çë¸÷¸ö´óϺ°ï°ïСµÜ£¡
ÎÊÌ⣺±¾ÊÇÏëʵÏÖͼƬ°´ÕÕÖ¸¶¨Â·¾¶Ô˶¯£¬µ±Åöµ½±ß¿òʱ»á×Ô¶¯·´µ¯£¬µ«Êǽá¹ûÊÇͼƬÅöµ½±ß¿ò»¹ÊǼÌÐøÇ°½ø£¡
Ô´´úÂëÈçÏ£º
<html>
<head>
<title>ÑØÖ¸¶¨Â·¾¶Ô˶¯µÄͼƬ</title>
</head>
<script language="JavaScript">
var win_width,win_height,img_left,img_top;
var x_flag=0,y_flag=0;
var x_step=2,y_step=1;
var scroll_x; //Ò³ÃæÔÚˮƽ·½ÏòÉÏÒѾ¹ö¶¯µÄ¾àÀë
var scroll_y; //Ò³ÃæÔÚÊúÖ±·½ÏòÉÏÒѾ¹ö¶¯µÄ¾àÀë
function do_move()
{
scroll_x=id_body.scrollLeft;
scroll_y=id_body.scrollTop;
win_width=window.innerWidth?window.innerWidth:id_body.clientWidth;
win_height=window.innerHeight?window.innerHeight:id_body.clientHeight;
var img=document.getElementById("div_img");
img_left=parseInt(img.style.left);
img_top=parseInt(img.style.top);
//===Í¼Æ¬ÒÆ¶¯µÄ×ó±ß½çΪ2
if(img_left<=scroll_x+2)
x_flag=1;
//===Í¼Æ¬ÒÆ¶¯µÄÓұ߽çΪwin_width-moving_pic.width-2
if(img_left>=scroll_x+win_width-moving_pic.width-2);
Ïà¹ØÎÊ´ð£º
ÔÚ¹úÍâµÄ¿Õ¼ä£¬ÆäËüµÄphpÕ¾µã¶¼Õý³££¬¿ÉÖ»ÓÐ×î½ü½¨µÄÕâ¸öÕ¾µã£¬Ö»ÒªÒ»ä¯ÀÀphpÎļþ¾Í³öÏÖÏÂÔØÌáʾ£¬ÏÂÔØÏÂÀ´µÄÎļþ¶¼ÊÇ´øÓÐphpÔ´Â룬¸÷λ·¹ýµÄ£¬°ï°ïÎÒ£¬¿´¿´Ê²Ã´ÔÒò£¬ÏÈлÁË¡£
¿ÉÄÜÊÇÒòΪ¸ÃÕ¾µãûÓÐÄãÏëÒªµÄä¯ÀÀÆ ......
¹ýÍêÄêҪȥÎ人ÁË£¬ÏëÁ˽âÒ»ÏÂPHPÅàѵ±È½ÏÕý¹æ?
Ŷ ¶ÔÁË£¬»¹ÓУ¡PHPÊÖ²á±ØÐëµÃŪһ¸ö
àÅ ÌìÌìÔÚ¿´Ê¥¾£¨Ò»ÌìÒ²¾ÍÖ»ÄÜ¿´¸ö¶þʮҳ£©£¬PHP100ÊÓÆµ½Ì³Ì¿´ÁË33½²ÁË£¨Ò»ÌìÒ²Ö»¿´Ò»½²£©
ÎÒ»á¼á³Ö°ÑÕâ±¾ÊéºÍÊÓÆµ¸ã¶¨ ......
ÇëÎÊ£¬ÒÔÏ´úÂ룬Ϊʲô²»¹ÜÓ㿾Ístr_replaceÕâ¸öº¯Êý£¬Ì滻ôÓÐÆð×÷Óã¿
PHP code:
$gg='<script type=\"text/JavaScript\">
alimama_pid=\"mm_14281022_2030060_8250750\";
alima ......
$conn = @new COM("ADODB.Connection") or die ("ADOÁ¬½Óʧ°Ü!");
$connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("database.mdb");
$conn-&g ......