Skip to content

Instantly share code, notes, and snippets.

<img
alt="Chrome"
id="logo"
src="//tools.google.com/chrome/intl/en/images/chrome-canary-lockup.png"
style="
-webkit-mask:
-webkit-gradient(radial, 17 17, 123, 17 17, 138, from(rgb(0, 0, 0)), color-stop(0.5, rgba(0, 0, 0, 0.2)), to(rgb(0, 0, 0)));
"
>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="stylesheet" href="css/main.css" type="text/css"/>
<link rel="icon" href="images/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"/>
<title>evasi0n iOS 6.x Jailbreak - official website of the evad3rs</title>
<meta name="description" content="Offical website of evasi0n iOS 6.x jailbreak by the evad3rs"/>
將程式碼貼在<body>標籤裡面
onselectstart="return false;" (關閉滑鼠選取功能)
oncontextmenu="window.event.returnValue=false;" (不顯示滑鼠右鍵選單)
若將上一句再加點變化,就變成按右鍵時會出現顯示警語
oncontextmenu="window.event.returnValue=false;alert('版權所有')"
”版權所有”的字樣可以改為你所要顯示的文字
<!--[if lt IE 9]>
<script src="jquery-1.9.0.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script src="jquery-2.0.0.js"></script>
<!--[endif]-->
它的網頁 <BODY> 是這樣寫的:
<BODY oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
oncontextmenu="return false" 禁止用右鍵功能表
onselectstart ="return false" 禁止用右鍵複製功能
按右鍵沒反應
滑鼠鎖右鍵語法(1)↓
<body oncontextmenu="window.event.returnValue=false">
按右鍵反白文字沒反應
滑鼠鎖右鍵語法(2)↓
請將下列語法 "取代" <body>
<body ONDRAGSTART="window.event.returnValue=false" onSelectStart="event.returnValue=false" ONCONTEXTMENU="window.event.returnValue=false" >
=================================
鎖滑鼠右鍵及防highlight
<body onselectstart="return false;" ondragstart="return false;" oncontextmenu="return false;">
======================
@Barneybook
Barneybook / upload.html
Created January 8, 2013 04:08
form type
<form action="" form enctype="multipart/form-data" method=POST></form>
@Barneybook
Barneybook / .htaccess
Created January 8, 2013 03:40
ignore image css js phpMyAdmin-3.5.2.2-all-languages upload dir
RewriteEngine On
RewriteCond $1 !^(index\.php|image|css|js|phpMyAdmin-3.5.2.2-all-languages|upload|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
於AS3中呼叫JS函數並傳遞參數方法 ExternalInterface.call( );
1、AS3部分,Code範例為按鈕事件觸發後呼叫JS函數jstest
var $jsvalue="test"; //宣告變數$jsvalue,變數值為test
this.addEventListener(MouseEvent.CLICK,clicktrue); //按鈕偵聽器
function clicktrue(me:MouseEvent){
ExternalInterface.call("jstest",$jsvalue); //jstest為欲呼叫之JS函數,$jsvalue為AS3欲傳遞到JS的參數值。
}