Time of Update: 2018-12-04
文字框內顯示文本提示,當點擊後提示消失!實現代碼:<html xmlns="http://www.w3.org/1999/xhtml"><head><title>test</title><script type="text/javascript"><!--var account_tip = "描述";//滑鼠進入文本時間 function init_value() { var bs =
Time of Update: 2018-12-04
在做ext的時候radio的時候我發現用起來和以前的radio不一樣。剛開始設的是valuenew Ext.form.Radio({ id:'test1', boxLabel: 'test1', name: 'test', value:'1', checked:true
Time of Update: 2018-12-04
上傳目錄請在fckeditoreditorfilemanagerconnectorsaspconfig.asp中設定 Dim ConfigUserFilesPathConfigUserFilesPath = “/userfiles/” 中文配置說明:因為下載下來的壓縮包裡面有包含很多在我們使用時,用不到的,不刪除也行。看個人喜好下面以PHP為例,進行程式瘦身 刪除所有”_”開頭的檔案和檔案夾 刪除FCKeditor的目錄下: fckeditor.afpfckeditor.asp
Time of Update: 2018-12-04
public static DataTable Join(DataTable First, DataTable Second, DataColumn[] FJC, DataColumn[] SJC) { //建立一個新的DataTable DataTable table = new DataTable("Join"); // Use a DataSet to leverage DataRelation using (DataSet
Time of Update: 2018-12-04
FireFox下透明度設定的方法是:opacity=opacityValue;opacityValue的取值範圍是【0.0~1.0】即0到1的小數IE下透明度設定的方法是:filter:alpha(opacity=opacityValue);opacityValue的取值範圍是【0~100】即0到100的整數以下是firefox下的透明度設定例子<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Time of Update: 2018-12-04
JavaScript的showModalDialog(模態對話方塊)中有查詢按鈕,在模態對話方塊中點擊按鈕會跳出新的頁面那麼我們可以設定<base target="_self">來解決該問題. <base target=_blank>//在空白頁開啟 <base target=_parent>//用在架構中,在當前頁的上一頁(父親)開啟 <base target=_search>//在瀏覽器搜尋欄開啟 <base
Time of Update: 2018-12-04
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>滑鼠點擊文字框 提示文字消失</title></head><body><input onblur="this.style.color='#999';if(this.value=='')
Time of Update: 2018-12-04
前些天在做extjs+fckeditor應用的時候,發現了一個很棘手的問題。 在不嵌套iframe時fckeditor的各項功能都是正常的,應用也很方便,可是當我跨域的時候編輯器的工具列的應用彈出表單都打不開,404錯誤。 a頁面 載入 b頁面 a頁面是應用iframe
Time of Update: 2018-12-04
在不是js開啟的頁面上按window.close(), 會有提示框,很煩,現在可以不用了,沒有提示框直接關閉視窗。試試下面代碼:<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object><input type="button" name="Button" value="關閉視窗"
Time of Update: 2018-12-04
我僅提供了一種方法,還會有很多實現的方法,不多說上代碼! test_tree.jsExt.onReady(function() { var Tree = Ext.tree; var loader = new Tree.TreeLoader({ dataUrl: 'test.aspx', listeners: { "beforeload": function(treeLoader, node) {
Time of Update: 2018-12-04
有一個很棘手的項目那就是報表統計方面的項目,以前都是做資料的顯示統計很少用到圖形化的東西,以前要不就是用控制項,可是顯示的也不是很好看,還是用js完成吧,還是上網找找吧。 牛比的highcharts,這個js報表架構相當的給力,不僅顏色很好看,報表的顯示形式也很多,柱狀體、餅圖、曲線圖有很多,還可以縮放,匯出成圖片和列印。 2. 3. 4. 5. 6. 簡單介紹一下,下載檔案我會發在我的下載中,歡迎大家下載共同學習進步。
Time of Update: 2018-12-04
在ext grid 中如何確定選中行?如何擷取選中行資料?其實很簡單,用到了Ext.getCmp('id'),他可以擷取到指定id的對象。 grid 擷取行對象:var row = Ext.getCmp("Grid_ID").getSelectionModel().getSelections(); row對象就是grid所有選中行的對象集合。 判斷一下是否有選中行 if (row.length == 0) { Ext.Msg.alert("提示資訊", "您沒有選中行!");
Time of Update: 2018-12-04
IE與Firefox瀏覽器安全色相關問題集錦,做網站的朋友可以參考下。問題一:最簡單的滑鼠移過手變型的css要改了 cursor:pointer;/*FireFox(Firefox)不支援cursor:hand*/ dw8下面自動出來的也沒有hand這個屬性了,標準的是pointer問題二:FireFox(Firefox)不支援濾鏡 最常見的半透明不支援。 filter: Alpha(Opacity=50); /* for IE */ opacity: .5;/* for Firefox *
Time of Update: 2018-12-04
<?phprequire_once ('./vo/org/corlan/VOAuthor.php');//conection infodefine( "DATABASE_SERVER", "localhost");define( "DATABASE_USERNAME", "root");define( "DATABASE_PASSWORD", "");define( "DATABASE_NAME", "mysite");class MyService { public
Time of Update: 2018-12-04
<script language="javaScript"><!--now = new Date(),hour = now.getHours()if(hour < 6){document.write("淩晨好!")}else if (hour < 9){document.write("早上好!")}else if (hour < 12){document.write("上午好!")}else if (hour < 14){document.write("
Time of Update: 2018-12-04
在做ext項目的時候用到了ext的htmleditor編輯器,發現功能實在是太爛,和ext其他功能相差太大了。剛開始想自己做ext外掛程式來實現編輯器的其他功能,可是進度太慢太繁瑣,放棄。如果要是ext和FCKEditor就好了,經過研究可以實現。 1.首先FCKEditor下載到http://ckeditor.com/download下載,下載兩個壓縮檔,分別是FCKeditor_2.6.5.zip 和FCKeditor.Net
Time of Update: 2018-12-04
extjs 全選後點擊刪除後 全選框仍然還選中,應該刪除後全選框應該不選中。 解決方案:在刪除事件中加入以下方法:function autoCheckGridHead(){ var hd_checker = Ext.getCmp("grid-sysmsg").getEl().select('div.x-grid3-hd-checker'); var hd = hd_checker.first(); //清空表格頭的checkBox
Time of Update: 2018-12-04
前幾天客戶的需求想做一個總螢幕上方滑下一個層的效果。我想了想決定用jQuery來實習這個效果比較好。 首先下載一個jQuery的指令碼包。在這個地址可以下載到 http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js animate屬性是用來實現滑動的效果。top決定滑動的div出現的位置,負值表示移出了螢幕。 $('#note').animate({ top: '-50' }, 500, function() {
Time of Update: 2018-12-04
html:<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Prototype 左側菜單</title><link rel="stylesheet" type="text/css" href="menu.css" mce_href="menu.css" /><mce:script type="text/javascript" src="prototype.js"
Time of Update: 2018-12-04
<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()"><mx:Script> <![CDATA[ import mx.collections.ArrayCollection; import