在網上搜尋了一些JavaScript畫線的代碼,綜合了幾個例子,作了一些修改和整合,實現了畫線的功能,但是只是很簡單的功能,只能實現單擊畫線,雙擊結束,由於本人初學JS,還不知道怎麼實現撤消,及清除。頁面代碼如下: Code highlighting produced by Actipro CodeHighlighter
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE>產生投影片式的網頁圖片效果示範</TITLE><META http-equiv=Content-Type content="text/html; charset=gb2312"><META content=""
<Script language="jscript.encode"> var LINK = new Array("mms://nv.sina.com.cn/bnpv/2006/06/07706787.wmv","123");var linkType = new Array();linkType['WMA'] = 'WMP';linkType['MP3'] = 'WMP';linkType['WMV'] = 'WMP';linkType['ASF'] = 'WMP';linkType[
<script language="JavaScript1.2">/* This following code are designed and writen by Windy_sk <windy_sk@126.com> You can use it freely, but u must held all the copyright items!*/var MainSel = null;var SlaveSel = null;var Item_org = new
有時候選擇下拉框自動postback時,由於頁面太長,postback後頁面自動滾動到最上面,不能保持postback之前的位置,如果在Page_Load調用下面的方法就可以解決這個問題:/**//// <summary> /// Persist ScrollBar's Position After a PostBack /// </summary> private void PersistScrollPosition() { Sy
發表時間:2006-4-6 18:31:00function returnFactPage(newIndex){ var pageCount = document.getElementById("FactNameControl_divPageCount").innerHTML; var newPage = "factindex="+newIndex; var pattern = /factIndex="d*/img; var url = window.***.toString(); var