Archive for Tháng Mười, 2008
Đây là bài hướng dẫn cơ bản, nhằm giúp bạn có những kiến thức căn bản để sử dụng jQuery. Nếu bạn chưa tạo một trang thí nghiệm, hãy tạo một tài liệu HTML với nội dung như sau: <html> <head> <script type="text/javascript" src="path/to/jquery.js"></script> <script type="text/javascript"> // Your code goes here </script> </head> <body> <a href="http://jquery.com/">jQuery</a> </body> </html> Sửa thuộc tính src trong thẻ script để trỏ [ READ MORE ]
Nếu bạn chỉ muốn user dùng IE duyệt Website của mình thì dùng <?php if ( ! ereg("MSIE", $_SERVER["HTTP_USER_AGENT"]) ){ print "Bạn phải sử dụng trình duyệt IE mới duyệt được site này.";exit; } echo "Welcome my website."; ?> Còn nếu muốn người ta chỉ dùng FF thì <?php if ( ! ereg("Mozilla", $_SERVER["HTTP_USER_AGENT"]) ){ print "Bạn phải sử dụng trình duyệt Fire Fox mới [ READ MORE ]
Bài viết được sưu tầm từ choncon, phpbasic. Một biểu thức RegExp ( chúng ta tạm gọi là biểu thức so mẫu hay biểu thức tìm kiếm) được dùng nhiều trong việc tìm kiếm và xử lí chuỗi. RegExp Là Gì ? RegExp có thể hiểu đơn giản là một biểu thức chính qui. Khi bạn muốn tìm kiếm [ READ MORE ]
Cách chống như sau, theo cách bác Không Yêu – Xtre.us trong function.php tìm Quote: function m_player($arr) { thêm biến $isLoggedIn,$mysql,$tb_prefix thành biến golbal sau đó sửa đoạn Quote: if (!$url) { …… thành Quote: if (!$url) { if ($isLoggedIn) { $z = $mysql->fetch_array($mysql->query(“SELECT user_playlist_id FROM “.$tb_prefix.“user WHERE user_id = ‘”.$_SESSION['user_id'].“‘”)); $url = ‘asx.php?type=’.$type.‘&id=’.$id.‘&confirm=’.$z['user_playlist_id']; } else { $z = $mysql->fetch_array($mysql->query(“SELECT sid FROM “.$tb_prefix.“online WHERE ip = ‘”.IP.“‘”)); $url = ‘asx.php?type=’.$type.‘&id=’.$id.‘&confirm=’.$z['sid']; } } [ READ MORE ]
Buồn buồn vào nghe 1 bài remix Love Again http://nhaccuatui.com/nghe?M=SlBpgEaY1f Và đọc 1 bài trong freecodevn thấy anh em get links nhạc của nhau cũng thử get link NCT thử. Đầu tiên là nghe nhạc ttp://nhaccuatui.com/nghe?M=SlBpgEaY1f sau đó tớ tìm thấy cái này: http://nhaccuatui.com/m2/SlBpgEaY1f truy cập vào thì sẽ cho ra link này: http://nhaccuatui.com/Flash/NCTplayer11.swf?file=http://nhaccuatui.com/GetMusic.aspx?key2=001d000400230013002400300000000d0044000f Nhiệm vụ của http://nhaccuatui.com/m2/SlBpgEaY1f là dùng header(“Location: [ READ MORE ]
Ngồi vọc cái AzDG DaTing Lite thấy cái hàm tính tuổi của nó. Cái này chắc nhiều người biết còn tôi chưa biết nên lưu lại Giả sử member có ngày sinh là: 1988-09-02. Hàm tính tuổi: function mysql2data($sqldata,$b=NULL) { global $wmm; $sqldata=str_replace(' ','-',$sqldata); $val = explode('-', $sqldata); if($b==NULL) { $data= substr($wmm[intval($val[1])],0,3).' '.$val[2].' '.$val[0]; } else { $bd=$val[0].$val[1].$val[2];$dat=date("Ymd",time()); $data=intval(($dat - $bd) / 10000); } return [ READ MORE ]
Không có trích dẫn vì bài này được bảo vệ.[ READ MORE ]
<? $filename = "image.jpg"; $image = file_get_contents($filename); $image = imagecreatefromstring($image); $width = imagesx($image); $height = imagesy($image); $m_aspect = 164.0 / 48.0; $i_aspect = $width / $height; if($i_aspect < $m_aspect) { $percent = 48.0 / $height; $new_height = $height * $percent; $new_width = 11.875 * $new_height / 6.0 * $width / $height; } else { $percent = 164.0 / $width; $new_width = $width * $percent; $new_height = 6.0 * $new_width / 11.875 * $height [ READ MORE ]
There are a large number of Flash image galleries but sometimes Flash is not required or cant be used so we turn to Javascript and CSS. Here is a roundup of some of the better Javascript and Ajax based solutions to our gallery requirements … (E)2 Photo Gallery Made With Mootools – (E)2 Photo Gallery [ READ MORE ]
Bad Behavior has blocked 47 access attempts in the last 7 days.