探索與發現

          研究java技術

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            83 隨筆 :: 0 文章 :: 109 評論 :: 0 Trackbacks

          2009年8月5日 #


          css 樣式
          .productshow{width:100%}
          .productshow .text{list-style-type:none; margin:0; padding:0}
          .productshow .text li{line-height:25px; background:url(../t_line.gif) repeat-x bottom}
          .productshow .text li A {background:url(../icons/dot1.gif) no-repeat; background-position:0 3px; padding-left:13px}
          .productshow .text A:link {color: #000; text-decoration: none}
          .productshow .text A:visited {color:#000; text-decoration: none}
          .productshow .text A:active {color: #000; text-decoration: none}
          .productshow .text A:hover {color: #B00000; text-decoration: underline}
          .productshow .pic{list-style-type:none; margin:0; padding:0}
          .productshow .pic li{float:left; width:120px}
          .productshow .pic li p{text-align:center; line-height:160%; word-break:break-all; width:120px; overflow:auto; }
          .productshow .pic li .picture{margin:0 auto; text-align:Center; width:110px; height:110px}
          .productshow .pic li .picture IMG{MARGIN-TOP: expression(( 110 - this.height ) / 2); width: expression(this.width > 110 ? 110 : true); height: expression(this.height > 110 ? 110 : true); max-width: 110px; max-height: 110px; VERTICAL-ALIGN: middle; TEXT-ALIGN: center}
          .productshow .pic li .sprice{text-align:center;color:#999;text-decoration:line-through}
          .productshow .pic li .proname{margin:0 auto; text-align:center; line-height:160%; height:40px; word-break:break-all; width:120px; overflow:hidden}
          .productshow .pic li .price{text-align:center;color:#ff0000}
          .productshow .pic li .buylist{line-height:25px; text-align:center;color:#6DAADA; display:none}
          .productshow .pic .list-line{width:157px}
          .productshow .pic .list-line .picture-s{float:left; margin:0 auto; text-align:Center; width:50px; height:50px}
          .productshow .pic .list-line .picture-s IMG{MARGIN-TOP: expression(( 45 - this.height ) / 2); width: expression(this.width > 45 ? 45 : true); height: expression(this.height > 45 ? 45 : true); max-width: 45px; max-height: 45px; VERTICAL-ALIGN: middle; TEXT-ALIGN: center}
          .productshow .pic .list-line .picinfo{float:left; padding-left:12px; width:95px}
          .productshow .pic li A:link {color: #000; text-decoration: none}
          .productshow .pic li A:visited {color:#000; text-decoration: none}
          .productshow .pic li A:active {color: #000; text-decoration: none}
          .productshow .pic li A:hover {color: #B00000; text-decoration: underline}



          主體代碼

          <table width="609" style="border:1px solid #FF8119" cellspacing="0" cellpadding="0">
                        <tbody><tr>
                          <td background="shop/skins/56770_com_b_002/center_bg.gif"><div class="productshow">
          <ul class="pic">
          <form action="#" method="post" name="LEBI_FORMBUY_0001" id="LEBI_FORMBUY_0001"><li>
           <div class="picture"><a href="shop/product/default.asp?id=16" class="picborder" target="_self"><img border="0" src="shop/Pic/201009/1211144612000.jpg" {@onmouse}="" alt="2010男裝 秋裝商"></a></div>
           <div class="proname"><a href="shop/product/default.asp?id=16" title="2010男裝 秋裝商" target="_self">2010男裝 秋裝商</a></div>
                   <p><span class="sprice">市場價:¥100.00</span></p>
           <p><span class="price">購買價:¥90.00</span></p>
           <p class="buylist">購買數量 <input type="text" name="pro_num_0001_16" id="pro_num_0001_16" value="1" size="3" style="width:30px;" class="form"><input type="hidden" name="pro_size_0001_16" id="pro_size_0001_16" value="-"><input type="hidden" name="pro_color_0001_16" id="pro_color_0001_16" value="-"><br><input type="button" name="button_0001_16" value="購買" onclick="javascript:addtobasket('16','0001','','1')" class="button">&nbsp;<input type="button" name="fav" value="收藏" onclick="location.href='shop/user/?action=shoucang_add&amp;id=16&amp;product_name=2010%E7%94%B7%E8%A3%85+%E7%A7%8B%E8%A3%85%E5%95%86&amp;backurl=http%3A%2F%2Flocalhost%3A80%2Fshop%2Fdefault%2Easp&amp;product_type='" class="button">
          </p>
          </li><li>
           <div class="picture"><a href="shop/product/default.asp?id=15" class="picborder" target="_self"><img border="0" src="shop/Pic/201009/1211103327386.jpg" {@onmouse}="" alt="2010男裝 秋裝商"></a></div>
           <div class="proname"><a href="shop/product/default.asp?id=15" title="2010男裝 秋裝商" target="_self">2010男裝 秋裝商</a></div>
                   <p><span class="sprice">市場價:¥120.00</span></p>
           <p><span class="price">購買價:¥120.00</span></p>
           <p class="buylist">購買數量 <input type="text" name="pro_num_0001_15" id="pro_num_0001_15" value="1" size="3" style="width:30px;" class="form"><input type="hidden" name="pro_size_0001_15" id="pro_size_0001_15" value="-"><input type="hidden" name="pro_color_0001_15" id="pro_color_0001_15" value="-"><br><input type="button" name="button_0001_15" value="購買" onclick="javascript:addtobasket('15','0001','','1')" class="button">&nbsp;<input type="button" name="fav" value="收藏" onclick="location.href='shop/user/?action=shoucang_add&amp;id=15&amp;product_name=2010%E7%94%B7%E8%A3%85+%E7%A7%8B%E8%A3%85%E5%95%86&amp;backurl=http%3A%2F%2Flocalhost%3A80%2Fshop%2Fdefault%2Easp&amp;product_type='" class="button">
          </p>
          </li><li>
           <div class="picture"><a href="shop/product/default.asp?id=14" class="picborder" target="_self"><img border="0" src="shop/Pic/201009/121181193516.jpg" {@onmouse}="" alt="2010男裝 秋裝商"></a></div>
           <div class="proname"><a href="shop/product/default.asp?id=14" title="2010男裝 秋裝商" target="_self">2010男裝 秋裝商</a></div>
                   <p><span class="sprice">市場價:¥100.00</span></p>
           <p><span class="price">購買價:¥100.00</span></p>
           <p class="buylist">購買數量 <input type="text" name="pro_num_0001_14" id="pro_num_0001_14" value="1" size="3" style="width:30px;" class="form"><input type="hidden" name="pro_size_0001_14" id="pro_size_0001_14" value="-"><input type="hidden" name="pro_color_0001_14" id="pro_color_0001_14" value="-"><br><input type="button" name="button_0001_14" value="購買" onclick="javascript:addtobasket('14','0001','','1')" class="button">&nbsp;<input type="button" name="fav" value="收藏" onclick="location.href='shop/user/?action=shoucang_add&amp;id=14&amp;product_name=2010%E7%94%B7%E8%A3%85+%E7%A7%8B%E8%A3%85%E5%95%86&amp;backurl=http%3A%2F%2Flocalhost%3A80%2Fshop%2Fdefault%2Easp&amp;product_type='" class="button">
          </p>
          </li><li>
           <div class="picture"><a href="shop/product/default.asp?id=11" class="picborder" target="_self"><img border="0" src="shop/Pic/201009/121101451977.jpg" {@onmouse}="" alt="2010品牌男襯衣"></a></div>
           <div class="proname"><a href="shop/product/default.asp?id=11" title="2010品牌男襯衣" target="_self">2010品牌男襯衣</a></div>
                   <p><span class="sprice">市場價:¥100.00</span></p>
           <p><span class="price">購買價:¥100.00</span></p>
           <p class="buylist">購買數量 <input type="text" name="pro_num_0001_11" id="pro_num_0001_11" value="1" size="3" style="width:30px;" class="form"><input type="hidden" name="pro_size_0001_11" id="pro_size_0001_11" value="-"><input type="hidden" name="pro_color_0001_11" id="pro_color_0001_11" value="-"><br><input type="button" name="button_0001_11" value="購買" onclick="javascript:addtobasket('11','0001','','1')" class="button">&nbsp;<input type="button" name="fav" value="收藏" onclick="location.href='shop/user/?action=shoucang_add&amp;id=11&amp;product_name=2010%E5%93%81%E7%89%8C%E7%94%B7%E8%A1%AC%E8%A1%A3&amp;backurl=http%3A%2F%2Flocalhost%3A80%2Fshop%2Fdefault%2Easp&amp;product_type='" class="button">
          </p>
          </li><li>
           <div class="picture"><a href="shop/product/default.asp?id=9" class="picborder" target="_self"><img border="0" src="shop/Pic/201009/121053257865.jpg" {@onmouse}="" alt="2010年秋冬新款特"></a></div>
           <div class="proname"><a href="shop/product/default.asp?id=9" title="2010年秋冬新款特" target="_self">2010年秋冬新款特</a></div>
                   <p><span class="sprice">市場價:¥100.00</span></p>
           <p><span class="price">購買價:¥100.00</span></p>
           <p class="buylist">購買數量 <input type="text" name="pro_num_0001_9" id="pro_num_0001_9" value="1" size="3" style="width:30px;" class="form"><input type="hidden" name="pro_size_0001_9" id="pro_size_0001_9" value="-"><input type="hidden" name="pro_color_0001_9" id="pro_color_0001_9" value="-"><br><input type="button" name="button_0001_9" value="購買" onclick="javascript:addtobasket('9','0001','','1')" class="button">&nbsp;<input type="button" name="fav" value="收藏" onclick="location.href='shop/user/?action=shoucang_add&amp;id=9&amp;product_name=2010%E5%B9%B4%E7%A7%8B%E5%86%AC%E6%96%B0%E6%AC%BE%E7%89%B9&amp;backurl=http%3A%2F%2Flocalhost%3A80%2Fshop%2Fdefault%2Easp&amp;product_type='" class="button">
          </p>
          </li></form></ul>

          <div class="both"></div></div></td>
                        </tr>
                        <tr>
                          <td><img src="shop/skins/56770_com_b_002/center_bottom.gif" width="609" height="10"></td>
                        </tr>
                      </tbody></table> 
                     

          posted @ 2010-09-15 22:55 蜘蛛 閱讀(312) | 評論 (0)編輯 收藏

          為測試 Flex 應用程序設置測試環境

          正確的用于測試 Flex 應用程序的環境設置將有助于確保可靠的功能測試結果。測試環境一般由測試人員在測試計算機上進行設置。

          關于此任務

          要設置測試環境:

          過程

          1. 檢查瀏覽器的設置:
            1. Internet Explorer:
              1. 打開 Internet Explorer。
              2. 單擊工具 > 互聯網選項
              3. 單擊安全性選項卡。
              4. 選擇適當的 Web 內容區域。執行下列某個步驟:
                • 如果在遠程機器上配置了 Web 服務器,那么請完成下列步驟:
                  1. 選擇本地內部網
                  2. 單擊站點 > 高級
                  3. 將此 Web 站點添加到區域字段中,輸入要添加到 Web 站點的 URL。
                  4. 單擊添加,然后單擊確定
                • 如果在本地主機上配置了 Web 服務器,那么請完成下列步驟:
                  1. 選擇本地內部網
                  2. 單擊定制級別
                  3. 復位至列表中,選擇中低
                  4. 在“設置”窗格中,針對初始化且腳本 ActiveX 控件不標記為安全一項單擊啟用
                  5. 單擊確定
            2. Firefox:
              1. 單擊工具 > 選項 > 內容
              2. 清除阻止彈出窗口復選框。
              3. 單擊工具 > 選項 > 安全
              4. 清除當有站點試圖安裝插件時發出警告復選框。
          2. 打開 IBM Rational Functional Tester,然后單擊配置 > 啟用測試環境。必須啟用所需要的 JRE 并將 Internet Explorer 設置為缺省 Web 瀏覽器。
          3. 在“Web 瀏覽器”頁面中啟用所需要的瀏覽器。
          4. 將測試下應用程序設置為可信以在本地運行應用程序。指向單個文件或目錄的路徑處于可信狀態,同時所有的文件將會分配到每個選定的目錄及其可信的子目錄中。按照下列步驟來分配信任目標:
            1. 在 C:\WINDOWS\system32\Macromed\Flash 中創建文件夾 FlashPlayerTrust。
            2. 在 FlashPlayerTrust 文件夾中創建一個名為 Flex 且不帶擴展名的文件。
            3. 在 Flex 文件中輸入 Flex 應用程序的目錄路徑。例如,如果 Flex 應用程序位于 C:\Test 目錄中,請在 Flex 文件中輸入路徑 C:\Test
            4. 保存文件。
          posted @ 2010-07-27 06:00 蜘蛛 閱讀(258) | 評論 (0)編輯 收藏

          http://unitedmindset.com/jonbcampos/2009/08/12/flex-best-practices-events/
          posted @ 2009-09-18 06:53 蜘蛛 閱讀(419) | 評論 (2)編輯 收藏

          http://www.davidtucker.net/category/cairngorm/
          posted @ 2009-09-15 20:36 蜘蛛 閱讀(206) | 評論 (0)編輯 收藏

          1.可以使用PopUpManager進行界面切換
          2.使用狀態(state),自定義一些狀態事件(StateEvent),在index.mxml(mx:application)中監聽組件派發的狀態事件類型,利用改變狀態來改變顯示的界面.


          ⑴用第一種方式來實現相對簡單,利用PopUpManager的一些靜態方法即可實現,比較適用于一些size相對較小的可視化組件,比如:登陸表單組件,或修改一個值,要求重新輸入一個新值等等類似情況.實現示例代碼如下:

          Js代碼
          1. <span style="font-size: small;">var win:*;   
          2. win = new loginPanel();   
          3. //彈出顯示登錄框   
          4. PopUpManager.addPopUp(win,this,true);   
          5. //登陸框顯示在中間   
          6. PopUpManager.centerPopUp(win); </span>  

           ⑵在第二種方法中利用state來改變顯示的界面則要相對復雜許多.

          ①首先我們需要自定義統一的狀態事件名稱

          Java代碼
          1. <span style="font-size: small;">package note.events{  
          2. /** 
          3.  * 狀態事件,每個狀態值要和狀態名稱一樣 
          4.  * @author halzhang 
          5. */  
          6. public class StateEvent{  
          7.           public static const NULL_STATE:String = "";  
          8.           public static const LOGIN_STATE:String = "loginState";  
          9.           public static const ADDNOTE_STATE:String = "addNoteState";  
          10.           public static const ADDUSER_STATE:String = "addUserState";  
          11.           public static const LISTALLUSER_STATE:String = "listAllUserState";  
          12.          }  
          13. }</span>  

           ②在Flex項目的主程序中定義state,當然也可以加上狀態切換的動畫.

          Html代碼
          1. <span style="font-size: small;"><!-- 定義狀態,我們分別定義了三個狀態,每個狀態對應一個自定義的可視化組件  -->  
          2.     <mx:states>  
          3.         <mx:State name="loginState">  
          4.             <mx:AddChild position="lastChild">  
          5.                 <!-- 狀態對應的自定義組件:登陸組件 -->  
          6.                 <view:loginPanel id="panel_login" x="195" y="89"/>  
          7.             </mx:AddChild>  
          8.         </mx:State>  
          9.           
          10.         <mx:State name="addNoteState">  
          11.             <mx:AddChild position="lastChild">  
          12.                 <!-- 狀態對應的自定義組件:添加留言組件 -->  
          13.                 <view:addNotePanel id="panel_addNote" x="10" y="44"/>  
          14.             </mx:AddChild>  
          15.         </mx:State>  
          16.           
          17.         <mx:State name="addUserState">  
          18.             <mx:AddChild position="lastChild">  
          19.                 <!-- 狀態對應的自定義組件:添加用戶組件 -->  
          20.                 <view:addUserPanel id="panel_addUser" x="10" y="44"/>  
          21.             </mx:AddChild>  
          22.         </mx:State>  
          23.           
          24.         <mx:State name="listAllUserState">  
          25.             <mx:AddChild position="lastChild">  
          26.                 <view:allUserPanel id="panel_allUser" x="10" y="44"/>  
          27.             </mx:AddChild>  
          28.         </mx:State>  
          29.     </mx:states></span>  

          ③在組件中派發狀態事件(StateEvent)

          Js代碼
          1. <span style="font-size: small;"> //關閉添加留言組件的時候派發"空"狀態事件,也就是主程序界面不顯示其他組件     
          2.  //如果想顯示其他組件,則派發相應的狀態事件     
          3.  internal function closeMySelf():void{    
          4.         appModel.dispatchEvent(new Even(StateEvent.NULL_STATE));    
          5.  }</span>  

          ④在主程序界面中監聽狀態事件(StateEvent),從而通過改變狀態來顯示我們需要的組件.

          Js代碼
          1. <span style="font-size: small;">                                                //添加狀態事件監聽,在程序初始化的時候執行  
          2.             internal function stateListener():void{  
          3.                 appModel.addEventListener(StateEvent.NULL_STATE,stateEventHandler);  
          4.                 appModel.addEventListener(StateEvent.LOGIN_STATE,stateEventHandler);  
          5.                 appModel.addEventListener(StateEvent.ADDNOTE_STATE,stateEventHandler);  
          6.             }  
          7.             //狀態事件處理函數  
          8.             internal function stateEventHandler(evt:Event):void{  
          9.                 this.currentState = evt.type.toString();  
          10.             }</span>  

          在項目中appModel是一個繼承 EventDispatcher,使用單例模式實現的程序模型.不知道讀者是否發現StateEvent中事件名稱是和主程序界面中定義的state的 name值是一致的.因為這樣定義我們就可以使用統一的狀態事件處理函數,就不需要先去判斷是哪個狀態事件,在來改變當前狀態.只要簡單的執行 this.currentState = evt.type.toString();

          posted @ 2009-09-10 17:50 蜘蛛 閱讀(2873) | 評論 (2)編輯 收藏

          http://blog.csdn.net/lixinye0123
          posted @ 2009-08-24 06:31 蜘蛛 閱讀(381) | 評論 (7)編輯 收藏

          impersonation
          <system.web>
          <identity impersonate="true" />
          </system.web>

          Configuring log4net for SharePoint Windows Authentication
          http://mikeknowles.com/blog/2009/02/17/ConfiguringLog4netForSharePointWindowsAuthentication.aspx


          log4net does not work in IIS
          http://forums.asp.net/p/1420781/3153374.aspx


          http://stackoverflow.com/questions/1061857/sharepoint-and-identity-impersonatefalse
          posted @ 2009-08-11 23:26 蜘蛛 閱讀(608) | 評論 (3)編輯 收藏

          http://msp.sfsu.edu/Instructors/rey/aepage/tutorials.html
          posted @ 2009-08-05 02:17 蜘蛛 閱讀(222) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 大兴区| 通道| 西华县| 汉寿县| 泸水县| 勐海县| 巴东县| 霍州市| 江安县| 临邑县| 垫江县| 孟村| 安义县| 错那县| 南城县| 大冶市| 合作市| 遵化市| 望奎县| 南京市| 聂荣县| 宁陕县| 托克逊县| 顺义区| 徐闻县| 桑植县| 蕉岭县| 商都县| 普兰县| 罗田县| 历史| 九寨沟县| 镇宁| 南召县| 新闻| 白山市| 红原县| 涞水县| 三明市| 连城县| 宜章县|