flash相關的關於剪下板的一個例子 (太忙了,還是轉吧)

一個關於剪下板的例子:經常在網頁上看見“複製本頁網址,給你的朋友分享”之類的話,點按鈕,在IE下能複製成功,而在firefox和opera等其他瀏覽器就不行下面的例子使用flash(as)+javascript實現了在不同瀏覽器裡複製的功能,這樣做的好處就是規避了瀏覽器安全色的問題。也就是說支援firefox,IE,OPERA看示範:用firefox和ie分別測試點這個頁面最下面的複製按鈕,然後粘貼在QQ,或者MSN等文字框內怎樣使用?1.先下載這個FLASH檔案:下載,右鍵另存2.代碼如下:&

js ceil函數

ceil函數ceil函數的作用是求不小於給定實數的最小整數。ceil(2)=ceil(1.2)=cei(1.5)=2.00使用該函數需要包含標頭檔<math.h>,該函數傳回值為浮點型Run-Time Library Referenceceil, ceilfCalculates the ceiling of a value.double ceil(    double x );float ceil(   float x);  // C++ onlylong double ceil( 

關於FCKEditor編輯器標題圖片功能的實現

js檔案一般需要修改兩個地方就可以了,這個是准對版本 2.6.3 Build 19836 來說的。1、最關鍵的修改在這裡:FCKEditor\editor\dialog\fck_image\fck_image.js   ,找到function SetUrl( url, width, height, alt ) 

js 滾動、切換代碼的搜集

 Code highlighting produced by Actipro CodeHighlighter

.net去掉HTML標記

 using System.Text.RegularExpressions;/// <summary>  /// 去除HTML標記  /// </summary>  /// <param name="NoHTML">包括HTML的源碼 </param>  /// <returns>已經去除後的文字</returns>  public static string NoHTML(string Htmlstring)  {    

Could not load file or assembly ‘System.Web.Extensions…

 在本地我們調試運行AJAX.NET程式完全沒有問題,但是一旦上傳到伺服器就會出現很多Web.config檔案異常。以下是兩個最為典型的異常資訊:     Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific

用AS刪除Flash中輸入文本開始和結尾的空格【轉載】

 Code highlighting produced by Actipro CodeHighlighter

.net 對word的線上操作

下面代碼把datagrid產生了word文檔,並在ie顯示//產生HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=RoadRepair.doc"); /?" Response.ContentType = "application/vnd.ms-word"  ;//指定組建檔案的類型HttpContext.Current.Response.Charset =

Dhtml:實現滑鼠經過超鏈時的提示圖層的收集

<script>var oPopup = window.createPopup();function rdl_doClick(){var oMessage=document.all("oMessage");with (oPopup.document.body) {style.backgroundColor="lightyellow";style.border="solid black 1px";innerHTML=oMessage.value;}oPopup.show(70, 70,

js 用戶端動態調整圖片寬度 解決方案

一個項目需要動態處理用戶端頁面中圖片的寬度,防止頁面被過寬的圖片撐變形。過程就不敘說了。最終代碼如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><script language="javascript" type="text/javascript">    window.onload=function()    {        

擴充了flash8裡array的方法

新添加兩個屬性,省去一點麻煩,使用時把下列代碼拷貝到主情境第一幀上即可: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Array.prototype.del = function(pos) {    this.splice(pos, 1);    return this;};Array.prototype.find = function(str)

flash as3 畫虛線參考

 僅供參考:Code highlighting produced by Actipro CodeHighlighter

flash as濾鏡效果總結

     用as做濾鏡效果,每種濾鏡效果對應一個類,這些類都在Macromedia\Flash 8 Beta 2\zh_cn\First Run\Classes\FP8\flash\filters這個檔案夾裡

SQL2000資料類型

(1)char、varchar、text和nchar、nvarchar、ntextchar和varchar的長度都在1到8000之間,它們的區別在於char是定長字元資料,而varchar是變長字元資料。所謂定長就是長度固定的,當輸入的資料長度沒有達到指定的長度時將自動以英文空格在其後面填充,使長度達到相應的長度;而變長字元資料則不會以空格填充。text儲存可變長度的非Unicode資料,最大長度為2^31-1(2,147,483,647)個字元。後面三種資料類型和前面的相比,從名稱上看只是多了

實現Flash跨域訪問

Flash Player 7 及以上版本為目標播放器發布的檔案,採用完全域匹配規則,而不是超域匹配規則。因此,被訪問的檔案(即使該檔案以 早於 Flash Player 7 的 Flash Player 版本為目標播放器發布)必須顯式允許跨域或子域訪問;其次,在某一使用安全性通訊協定 (HTTPS) 的網站上承載的檔案必須顯式允許從使用不安全性通訊協定(HTTP 或 FTP)的網站承載的檔案的訪問。所以當使用loadMovie進行跨域訪問時,需要調用

放一段選取treeview控制項產生樹形菜單複選框所有子節點的js代碼

<script language="javascript" type="text/javascript">    var Obj_;    document.onclick=function()    {        if(event.srcElement.tagName=="INPUT")        {            Obj_=event.srcElement;            getNextElement(event.srcElement);        }

Flash Player Version Detection (abobe 的 flash “自動啟用”代碼)

//v1.7// Flash Player Version Detection// Detect Client Browser type// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;var isWin =

關於flash的類型轉換

摘自:http://livedocs.adobe.com/flash/9.0_cn/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000048.html類型轉換在將某個值轉換為其它資料類型的值時,就說發生了類型轉換。類型轉換可以是“隱式的”,也可以是“顯式的”。隱式轉換又稱為“強制”,有時由 Flash Player 在運行時執行。例如,如果將值 2 賦給 Boolean 資料類型的變數,

放一個比較不錯的flasheasing 函式上來

函數如下:MovieClip.prototype.smoothMove = function(sp, tx,ty) {    if(tx!=0) this._x = this._x+sp*(tx-this._x);//緩動    if(ty!=0)    this._y=this._y+sp*(ty-this._y);//緩動};MovieClip.prototype.MoveTo = function(sp, sx,sy) {  

關於模式表單的緩衝問題的解決方案

最近同事做一個小項目用到模式表單,是通過querstring傳值的,當編輯某條資訊的時候,遇到彈出的模式表單老是調用緩衝的值的問題,最終還是找到瞭解決方案,現總結如下:html:在<head></head>之間加上:<meta http-equiv="Expires" content="0"><meta http-equiv="Cache-Control" content="no-cache"><meta

總頁數: 61357 1 .... 6841 6842 6843 6844 6845 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.