http://www.uedcss.com/post/flash-Pop-up-layer.html
從網上找了2個方法, 解決彈出層被flash遮罩住
一:flash插入方式如下的,採用方法
1.在<object> 裡添加 <param name=”wmode” value=”transparent”>
2.在<embed> 設置 wmode=”opaque”
也可以實現
二:采用JavaScript插入flash方式如下:
var flashvars = {};
var params = {wmode:”opaque”};
swfobject.embedSWF(‘images/logo.swf’, ‘logo’, ‘179’, ’57’, “9.0.0”,”expressInstall.swf”,flashvars,params);
Flash, Javascript, Program
flash, javascript, z-index
substring some keyword
var keyword = ‘abc’;
var index = ($(“#content”).val().indexOf(keyword));
if(index != -1){
var pre = $(“#content”).val().substring(0, index);
var pos = $(“#content”).val().substring(index+keyword.length);
$(“#content”).val(pre+pos);
}
Javascript, Program
javascript, jquery, substr, substring
列印網上資料都會有很多不相關資料在附近, 因此做法有很多
例如:
1. 是開一個page, 用來給人列印, 之後在瀏覽器按列印
2. 有時在css print set display: none, 另周邊資料不顯示
3. 用iframe顯示所需資料之後整一個button 列印 iframe page
但近來看到一些新方法, 看法都簡單所以放上來分享, 第2給自己空閒時用來溫習. 這個方法就是用js解決
function printSelection(node){
var title = ”;
var content=document.getElementById(node).innerHTML;
var pwin=window.open(”,’print_content’,’width=750,height=600,titlebar=no,location=0,toolbar=0,menubar=0,directions=0′);
pwin.document.open();
pwin.document.write(‘<html><head><title>’ + title + ‘</title><style>body table{font-size:10px}</style></head><body onload=”window.print()”>’+content+'</body></html>’);
pwin.document.close();
setTimeout(function(){pwin.close();},1000);
}
Javascript, Program
data, javascript, print
根據 http://jquery.andreaseberhard.de/pngFix/
都是利用使用AlphaImageLoader解決 IE6 對 png 圖檔的透明問題
從而找到有關資料
http://jax-work-archive.blogspot.com/2009/07/alphaimageloader-ie6-png.html
CSS :
#ContainerWrapper{
background: transparent url(/images/border_bg.png) repeat-y;
width:982px;
margin:0 auto;
/*IE6 PNG 檔透明修正設定*/
_background: transparent;
_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’/images/border_bg.png’, sizingMethod=’scale’);
}
#ContainerWrapper #Container{
/*修正 AlphaImageLoader 造成的連結失效問題*/
_position:relative;
}
HTML:
<div id=”ContainerWrapper”>
<div id=”Container”>
</div>
</div>
Javascript, Program
javascript, png
主要防止一些javascript執行(onchange, onclick)的時候,沒有回應
<input type=”text” autocomplete off />
這樣就能取消text box history
HTML
HTML, javascript, textbox
Perl |
time |
PHP |
time() |
Ruby |
Time.now (or Time.new ). To display the epoch: Time.now.to_i |
Python |
import time first, then time.time() |
Java |
long epoch = System.currentTimeMillis()/1000; |
Microsoft .NET C# |
epoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000; |
VBScript/ASP |
DateDiff("s", "01/01/1970 00:00:00", Now()) |
Erlang |
calendar:datetime_to_gregorian_seconds(calendar:now_to_universal_time( now()))-719528*24*3600. |
MySQL |
SELECT unix_timestamp(now()) |
PostgreSQL |
SELECT extract(epoch FROM now()); |
Oracle PL/SQL |
SELECT (SYSDATE - TO_DATE('01-01-1970 00:00:00', 'DD-MM-YYYY HH24:MI:SS')) *
24 * 60 * 60 FROM DUAL |
SQL Server |
SELECT DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE()) |
JavaScript |
Math.round(new Date().getTime()/1000.0) getTime() returns time in milliseconds. |
Unix/Linux |
date +%s |
Other OS’s |
Command line: perl -e "print time" (If Perl is installed on your system) |
Program
asp, c#, current time, erlang, java, javascript, Linux, mysql, oracle, perl, php, postgreSQL, python, rudy, SQL Server, timestamp, Unix