Bài đăng

Cách sử dụng file có đuôi ASX

Bạn muốn tạo một list nhạc để có thể nghe bài này đến bài khác. cấu trúc của file là phần in đậm &ltASX Version="3"&gt &ltparam name="encoding" value="utf-8" /&gt &ltTITLE&gt Toi Oi Dung Tuyet Vong Trinh Cong Son Hong Nhung Em Hay Ngu Di &lt/TITLE&gt &ltENTRY&gt &ltTITLE&gt Toi Oi Dung Tuyet Vong Trinh Cong Son Hong Nhung Em Hay Ngu Di &lt/TITLE&gt &ltAUTHOR&gtHong Nhung&lt/AUTHOR&gt &ltREF HREF="mms://media.ns.gate.vn/Music/TrinhCongSon/HongNhung_EmHayNguDi/wma32/ Toi_Oi_Dung_Tuyet_Vong___Hong_Nhung___Trinh_Cong_Son___Lac_Vu___01.wma"/&gt &ltREF HREF="http://media.ns.gate.vn/Music/TrinhCongSon/HongNhung_EmHayNguDi/wma32/ Toi_Oi_Dung_Tuyet_Vong___Hong_Nhung___Trinh_Cong_Son___Lac_Vu___01.wma"/&gt &ltREF HREF="mms://media2.ns.gate.vn/Music/TrinhCongSon/ HongNhung_EmHayNguDi/wma32/ Toi_Oi_Dung_Tuyet_Vong___Hong_Nhung___Trinh_Cong_Son___Lac_Vu_...

10 cách để tối ưu firefox

sau khi tôi sử dụng firefox một thời gian. tôi thấy ff có nhiều ưu điểm và nhiều nhược điểm nhưng nhược điểm chính vẫn là chiếm nhiều tài nguyên của hệ thống. đây là cách tôi ưu giúp bạn yêu thích firefox hơn nữa. Everybody who enjoys customizing Firefox has probably used several extensions and might have even experienced slower performance and memory hogging. Though Firefox has long been accused of leaking memory, there are simple ways to reduce RAM usage and increase speed. Here are a few extensions and tips designed to lighten your load. PDF Download Adobe Acrobat files (PDFs) can be a major source of Firefox sluggishness. When a plug-in like Acrobat Reader is loaded in Firefox, it isn’t unloaded until you quit the browser. This helpful extension will ask whether you want to open a PDF file in Firefox, translate it to HTML (via Google), download it locally, or cancel the link. Download PDF Download FlashBlock flashblock.jpg Flash-based ads can be very irritating, and also takes up y...

Điều khiển flash player sử dụng javascript

&lt !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" &gt &lt html xmlns="http://www.w3.org/1999/xhtml" lang="en" &gt &lt head &gt &lt script type="text/javascript" src="swfobject.js" &gt &lt /script &gt &lt script type="text/javascript" &gt function sendEvent(swf,typ,prm) { thisMovie(swf).sendEvent(typ,prm); }; function getUpdate(typ,pr1,pr2,swf) { if(typ == 'state') fetch_obj('stateshow').innerHTML = pr1; }; function thisMovie(swf) { if(navigator.appName.indexOf("Microsoft") != -1) return window[swf]; else return document[swf]; }; function fetch_obj(idname){ if (document.getElementById){ if(document.getElementById(idname)==null) return window.parent.document.getElementById(idname); else return (document.getElementById(idname)); }else if (document.all){ if(document.a...

Cắt bỏ khoản trắng trong javascript

function checkForm(){ var rs = false; document.mainform.editor.value = editor.getHTML(); if(document.getElementById('servicename')!=null){ var str = document.getElementById('servicename').value; str = trim(str); if((str=="")||((str == null))){ alert('Please! input to service name!'); return false; } else document.getElementById('servicename').value = str; } } function trim(str) { if(!str || typeof str != 'string') return null; return str.replace(/^[\s]+/,'').replace(/[\s]+$/,'').replace(/[\s]{2,}/,' '); } String.prototype.trim = function() { if(!this || typeof this != 'string') return null; return this.replace(/^[\s]+/,'').replace(/[\s]+$/,'').replace(/[\s]{2,}/,' '); } _form id="mainform"> _textarea id="editor...

Kiểm tra là 1 xâu là chỉ gồm chữ hoặc số in JAVASCRIPT

function isAlphabetNumber($st){ if (ereg('^[a-z|A-Z|0-9]+$', $st)){ return 1; }else{ return 0; } }

way to check wether the session is started including ip logging

way to check wether the session is started including ip logging if( !isset( $_SESSION ) ) { session_start (); } if( isset( $_SESSION [ 'REMOTE_ADDR' ] ) && $_SESSION [ 'REMOTE_ADDR' ] != $_SERVER [ 'REMOTE_ADDR' ] ) { session_regenerate_id (); $_SESSION [ 'REMOTE_ADDR' ] = $_SERVER [ 'REMOTE_ADDR' ]; } if( !isset( $_SESSION [ 'REMOTE_ADDR' ] ) ) { $_SESSION [ 'REMOTE_ADDR' ] = $_SERVER [ 'REMOTE_ADDR' ]; }

ways of checking if a session is active

function session_started (){ if(isset( $_SESSION )){ return true ; }else{ return false ; } } //Start the output buffer so we dont create any errors with headers ob_start (); //Check to see if it has been started if( session_started ()){ echo 'The session has been started.' ; }else{ echo 'The session has not been started.' ; } //Start the session echo 'Starting Session...' ; session_start (); //Check again if( session_started ()){ echo 'The session has been started.' ; }else{ echo 'The session has not been started.' ; } //Flush the buffer to screen ob_end_flush ();