锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
This is fresh collection of new jQuery plugins. 10 great solutions: new slider, image gallery, movie, map and many other useful things. Many of the plugins have been created recently in 2011. Download, customize and use its in your projects.
This plugin is content slider and image slideshow. Where you can slide between slides using horizontal, vertical and fade transitions. Also you can have navigation controls, custom behavior (this plugin have very many options). Online demo available here
Using this plugin you can easy slide betweeb slides with any content (Content Slider). Allow to embed quite any content inside slides: text, images, video, tooltips etc. Also can enable thumbnails and more. Online demo available here
Using this plugin you can easy perform necessary actions when you scroll to desired element. Online demo available here
This plugin will allow you to play image sequences. So result will similar real video (it looks like GIF – animation too). Online demo available same page.
Another one UL-LI navigation menu. Online demo available here
Interesting plugin, some kind of navigation system between pages, plus give feeling what you walking through rooms of maze Online demo available here
This plugin show us vector world map (and they promising to add more maps in future). Online demo available here
There is a very serious mistake in picture, Taiwan is a part of China!
Nice looking plugin for webmasters who dreaming to build own game (RPG) website. Online demo available here
This pluging giving us few navigation modes for web applications. Online demo available here
Great looking image gallery with autoplay, descriptions and more.
Hope that our review of fresh jquery plugins was very interesting. Good luck!
xtype Class
鍩烘湰緇勪歡錛?/strong>
box Ext.BoxComponent 鍏鋒湁杈規灞炴х殑緇勪歡
button Ext.Button 鎸夐挳
colorpalette Ext.ColorPalette 璋冭壊鏉?/p>
component Ext.Component 緇勪歡
container Ext.Container 瀹瑰櫒
cycle Ext.CycleButton
dataview Ext.DataView 鏁版嵁鏄劇ず瑙嗗浘
datepicker Ext.DatePicker 鏃ユ湡閫夋嫨闈㈡澘
editor Ext.Editor 緙栬緫鍣?/p>
editorgrid Ext.grid.EditorGridPanel 鍙紪杈戠殑琛ㄦ牸
grid Ext.grid.GridPanel 琛ㄦ牸
paging Ext.PagingToolbar 宸ュ叿鏍忎腑鐨勯棿闅?/p>
panel Ext.Panel 闈㈡澘
progress Ext.ProgressBar 榪涘害鏉?/p>
splitbutton Ext.SplitButton 鍙垎瑁傜殑鎸夐挳
tabpanel Ext.TabPanel 閫夐」闈㈡澘
treepanel Ext.tree.TreePanel 鏍?/p>
viewport Ext.ViewPort 瑙嗗浘
window Ext.Window 紿楀彛
宸ュ叿鏍忕粍浠訛細
toolbar Ext.Toolbar 宸ュ叿鏍?/p>
tbbutton Ext.Toolbar.Button 鎸夐挳
tbfill Ext.Toolbar.Fill 鏂囦歡
tbitem Ext.Toolbar.Item 宸ュ叿鏉¢」鐩?/p>
tbseparator Ext.Toolbar.Separator 宸ュ叿鏍忓垎闅旂
tbspacer Ext.Toolbar.Spacer 宸ュ叿鏍忕┖鐧?/p>
tbsplit Ext.Toolbar.SplitButton 宸ュ叿鏍忓垎闅旀寜閽?/p>
tbtext Ext.Toolbar.TextItem 宸ュ叿鏍忔枃鏈」
琛ㄥ崟鍙婂瓧孌電粍浠訛細
form Ext.FormPanel Form 闈㈡澘
checkbox Ext.form.Checkbox checkbox 褰曞叆妗?/p>
combo Ext.form.ComboBox combo 閫夋嫨欏?/p>
datefield Ext.form.DateField 鏃ユ湡閫夋嫨欏?/p>
field Ext.form.Field 琛ㄥ崟瀛楁
fieldset Ext.form.FieldSet 琛ㄥ崟瀛楁緇?/p>
hidden Ext.form.Hidden 琛ㄥ崟闅愯棌鍩?/p>
htmleditor Ext.form.HtmlEditor html 緙栬緫鍣?/p>
numberfield Ext.form.NumberField 鏁板瓧緙栬緫鍣?/p>
radio Ext.form.Radio 鍗曢夋寜閽?/p>
textarea Ext.form.TextArea 鍖哄煙鏂囨湰妗?/p>
textfield Ext.form.TextField 琛ㄥ崟鏂囨湰妗?/p>
timefield Ext.form.TimeField 鏃墮棿褰曞叆欏?/p>
trigger Ext.form.TriggerField 瑙﹀彂褰曞叆欏?/p>
ul.demolayout {
list-style-type: none;
float: left;
margin:0px;
padding:0px;
}
ul.demolayout li {
margin: 0 0 0 0;
float: left;
border-bottom:1px solid #515151;
}
.tab{
padding:0 0 2px 0;
height: 160px;
text-align:left;
}
ul.demolayout a {
float: left;
display: block;
padding: 5px 25px;
border-bottom: 0;
color: #515151;
text-decoration: none;
font-size:14px;
font-weight: bold;
}
ul.demolayout a:hover {
background: #eee;
}
ul.demolayout a.active {
background: #515151;
padding-bottom: 5px;
cursor: default;
color:white;
}
.tabs-container {
clear: left;
padding:0px;
}
p.more_details{
padding:2px 2px 2px 2px;
font-size:11px;
}
</style>
</HEAD>
<BODY>
<div id="demo" class="demolayout">
<ul id="demo-nav" class="demolayout">
<li><a class="active" href="#tab1" id="1">媧誨姩璧勮</a></li>
<li><a class="" href="#tab2" id="2">涓氭佸垎甯?lt;/a></li>
<li><a class="" href="#tab3" id="3">鍟嗗鎺ㄨ崘</a></li>
</ul>
<div class="tabs-container">
<div style="display: block;" class="tab" id="tab1">
<p class="more_details">
媧誨姩璧勮鍐呭淇℃伅
</p>
</div>
<div style="display: none; " class="tab" id="tab2">
<p class="more_details">
涓氭佸垎甯冨唴瀹逛俊鎭?br />
</p>
</div>
<div style="display: none; " class="tab" id="tab3">
<p id="comment" class="more_details">
鍟嗗鎺ㄨ崘鍐呭淇℃伅
</p>
</div>
</div>
</div>
</BODY>
</HTML>
COMSHARP CMS 鍐欓亾錛氬湪綰跨紪杈戝唴瀹圭殑鏃跺欙紝閭d簺鍩轟簬 JavaScript 鐨勭紪杈戝櫒甯簡鎴戜滑澶у繖錛岃繖浜涙墍瑙佸嵆鎵寰楋紙WYSIWYG錛夌紪杈戝櫒錛岀粰鎴戜滑鎻愪緵浜嗙被浼?Office 鐨勬搷浣滀綋楠屻傚浠婏紝浠諱綍緗戠珯鍐呭綆$悊緋葷粺錛圕MS錛夊拰鍗氬緋葷粺閮介渶瑕佷竴涓繖鏍風殑緙栬緫鍣ㄣ傛湰鏂囩簿閫変簡10涓熀浜?JavaScript 鐨勭紪杈戝櫒錛屽畠浠湁鐨勬槸鍩轟簬 jQuery 妗嗘灦錛屾湁鐐瑰垯涓嶆槸銆?/p>
鍔熻兘涓嶆槸寰堝錛屼絾寰堣交閲忥紝寰堢伒媧匯傛墦鍖呭悗鍙湁6.5K澶у皬銆?/p>
闈炲父鍩烘湰鐨勭紪杈戝櫒錛岀畝鍗曚負鏈傛墦鍖呭悗鍙湁7K銆?/p>
綆鍗曞埌涓嶈兘鍐嶇畝鍗曪紝寰堝鏄撹嚜宸變慨鏀廣?/p>
璺ㄦ祻瑙堝櫒錛屽紑婧愶紝鍩轟簬 jQuery銆傚彲浠ュ緢瀹規槗鍚屽悇縐?CMS錛岃鍧涳紝鐣欒█鏈紝鍗氬絳夌郴緇熼泦鎴愩?/p>
鍩轟簬 iframe 瀵硅薄銆?/p>
<!-- ################## NON jQUery ################### -->
鏈緇忓吀鐨勫熀浜?JavaScript 鐨勭紪杈戝櫒錛孋OMSHARP CMS 榛樿鐨勭紪杈戝櫒灝辨槸榪欎釜銆?/p>
鍔熻兘闈炲父寮哄ぇ銆?/p>
鍩轟簬 Yahoo YUI錛岀畝鍗曪紝浣嗗緢鍙潬銆?/p>
鑷敱鐨勫熀浜?nbsp; BSD 璁稿彲緙栬緫鍣紝鍔熻兘瀹屽杽錛屽緢閫傚悎鍚屽悇縐嶇郴緇熼泦鎴愩?/p>
鏈枃鍘熸枃鏉ユ簮錛?a >http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors
Grails鏀寔涓浜涗笉鍚岀殑鏂規硶鏉ヤ駭鐢焁ML鍜孞SON鍝嶅簲銆傜涓涓槸闅愬紡鐨勯氳繃render鏂規硶銆?
render
鏂規硶鍙互浼犻掍竴涓唬鐮佸潡鏉ユ墽琛屾爣璁扮敓鎴愬櫒浜х敓XML
def list = { def results = Book.list() render(contentType:"text/xml") { books { for(b in results) { book(title:b.title) } } } }
榪欐浠g爜鐨勭粨鏋滃皢浼氬儚榪欐牱錛?
<books> <book title="The Stand" /> <book title="The Shining" /> </books>
娉ㄦ剰錛屽綋浣犱嬌鐢ㄦ爣璁扮敓鎴愬櫒鏃訛紝蹇呴』灝忓績閬垮厤鍛藉悕鍐茬獊銆備緥濡傦紝榪欐浠g爜灝嗕駭鐢熶竴涓敊璇細
def list = { def books = Book.list() // naming conflict here render(contentType:"text/xml") { books { for(b in results) { book(title:b.title) } } } }
鍘熷洜鏄紝榪欓噷鐨勪竴涓湰鍦板彉閲?code>books浼佸浘浣滀負鏂規硶琚皟鐢ㄣ?
render
鏂規硶鍙互鍚屾牱琚敤浜庤緭鍑篔SON:
def list = { def results = Book.list() render(contentType:"text/json") { books { for(b in results) { book(title:b.title) } } } }
鍦ㄨ繖縐嶆儏鍐典笅錛岀粨鏋滃氨浼氭槸澶ц嚧鐩稿悓鐨勶細
[ {title:"The Stand"}, {title:"The Shining"} ]
鍚屾牱鐨勫懡鍚嶅啿紿佸嵄闄╅傜敤浜嶫SON鐢熸垚鍣ㄣ?
錛堣瘧鑰呮敞錛氬湪姝ら檮涓婂浜庡垪闆?Marshalling)瑙i噴錛氬鍑芥暟鍙傛暟榪涜鎵撳寘澶勭悊寰楄繃紼嬶紝鍥犱負鎸囬拡絳夋暟鎹紝蹇呴』閫氳繃涓瀹氬緱杞崲錛屾墠鑳借鍙︿竴緇勪歡鎵鐞嗚В銆傚彲浠ヨ鍒楅泦(Marshalling)鏄竴縐嶆暟鎹牸寮忕殑杞崲鏂規硶銆傦級
Grails鍚屾牱鏀寔鑷姩鍒楅泦(Marshalling)棰嗗煙綾諱負XML閫氳繃鐗瑰畾鐨勮漿鎹㈠櫒銆?
棣栧厛錛屽鍏?code>grails.converters 綾誨寘鍒頒綘鐨勬帶鍒跺櫒錛圕ontrollers錛変腑錛?
import grails.converters.*
鐜板湪錛屼綘鍙互浣跨敤涓嬪垪楂樺害鏄撹鐨勮娉曟潵鑷姩杞崲棰嗗煙綾繪垚XML錛?
render Book.list() as XML
杈撳嚭緇撴灉鐪嬩笂鍘諱細鍍忎笅鍒楄繖鏍鳳細
<?xml version="1.0" encoding="ISO-8859-1"?> <list> <book id="1"> <author>Stephen King</author> <title>The Stand</title> </book> <book id="2"> <author>Stephen King</author> <title>The Shining</title> </book> </list>
涓涓嬌鐢ㄨ漿鎹㈠櫒鐨勬浛浠f柟娉曟槸浣跨敤Grails鐨刢odecs鐗規с俢odecs鐗規ф彁渚涗簡encodeAsXML鍜宔ncodeAsJSON鏂規硶:
def xml = Book.list().encodeAsXML() render xml
Grails鍚屾牱鏀寔鑷姩鍒楅泦(Marshalling)涓篔SON閫氳繃鍚屾牱鐨勬満鍒躲傜畝鍗曟浛浠?code>XML 涓?code>JSON
render Book.list() as JSON
杈撳嚭緇撴灉鐪嬩笂鍘諱細鍍忎笅鍒楄繖鏍鳳細
[ {"id":1, "class":"Book", "author":"Stephen King", "title":"The Stand"}, {"id":2, "class":"Book", "author":"Stephen King", "releaseDate":new Date(1194127343161), "title":"The Shining"} ]
鍐嶆浣滀負涓縐嶆浛浠o紝浣犲彲浠ヤ嬌鐢?code>encodeAsJSON杈懼埌鐩稿悓鐨勬晥鏋?
new Ajax.Updater(container, url, options);
// make a HTTP request to the specified URL and update the 'container' element.
Note: to only update a div on success, you may optionally substitute a property list for a simply element id (ie {success:’div_name’} instead of ‘div_name’)
Option | Default value | Description |
asynchronous | true | Type of request |
evalScripts | false | When set as “true”, scripts in requested url are evaluated |
method | ‘post’ | Lets you decide whether to use Get or Post for the request to the server |
contentType | ‘application/x-www-form-urlencoded’ | Allows you to set the content-type sent to the server |
encoding | ‘UTF-8’ | Allows you to determine the encoding type information given to the server |
parameters | ’’ | Allows you to attach parameters to your AJAX request. Most common: parameters:Form.serialize(this) |
postBody | ’’ | Specify data to post. Something like: postBody:’thisvar=true&thatvar=Howdy’ How does this differ from parameters? |
username | ’’ | |
password | ’’ | |
requestHeaders | ’’ | Allows you to override the headers, see the Prototype AJAX options for details |
onComplete | ’’ | Function to call on completion of request |
onSuccess | ’’ | Function to call on successful completion of request |
onFailure | ’’ | Function to call on failed request |
onException | ’’ | Function to call on failed request (e.g. attempted cross-site request) |
on + Status Code | ’’ | on404 etc. raise an event when given status code is encountered. |
insertion | None | Instead of inserting the response in the existing content (possibly overwriting it) you can pass a valid Insertion object, such as Insertion.Top, Insertion.Bottom, Insertion.Before or Insertion.After. |
Hint: If you have set evalScripts:true the script you call (the url parameter) must return a header of ‘Content-Type: text/javascript’ else the browser will not execute it.
var oFragment = document.createDocumentFragment();
for (var i = 0; i < aTRs.length; i++) {
oFragment.appendChild(aTRs[i]);
}
oTBody.appendChild(oFragment);
oTable.sortCol = iCol;
}
</script>
</head>
<body>
This is my HTML page. <br>
<table border="1" id="tblSort">
<thead>
<tr>
<th onclick="sortTable('tblSort', 0)" style="cursor:pointer">Last Name</th>
<th onclick="sortTable('tblSort', 1)" style="cursor:pointer">First Name</th>
<th onclick="sortTable('tblSort', 2, 'date')" style="cursor:pointer">Birthday</th>
<th onclick="sortTable('tblSort', 3, 'int')" style="cursor:pointer">Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>Smith</td>
<td>John</td>
<td>7/12/1978</td>
<td>31</td>
</tr>
<tr>
<td>Johnson</td>
<td>Betty</td>
<td>10/15/1977</td>
<td>32</td>
</tr>
<tr>
<td>Henderson</td>
<td>Nathan</td>
<td>02/22/1982</td>
<td>27</td>
</tr>
<tr>
<td>Williams</td>
<td>James</td>
<td>8/19/1980</td>
<td>29</td>
</tr>
<tr>
<td>Gilliams</td>
<td>Michael</td>
<td>5/13/1972</td>
<td>39</td>
</tr>
<tr>
<td>Walker</td>
<td>Matthew</td>
<td>10/19/1981</td>
<td>28</td>
</tr>
</tbody>
</table>
</body>
</html>
function sortTable(sTableID, iCol) {
var oTable = document.getElementById(sTableID);
var oTBody = oTable.tBodies[0];
var colDataRows = oTBody.rows;
var aTRs = new Array;
for (var i = 0; i < colDataRows.length; i++) {
aTRs.push(colDataRows[i]);
}
if (oTable.sortCol == iCol){
aTRs.reverse();
} else {
aTRs.sort(generateCompareTRs(iCol));
}
var oFragment = document.createDocumentFragment();
for (var i = 0; i < aTRs.length; i++) {
oFragment.appendChild(aTRs[i]);
}
oTBody.appendChild(oFragment);
oTable.sortCol = iCol;
}
<BODY>
<p>Move your mouser over the red square.</p>
<div id="div1" style="background-color:red; height:50px; width:50px" onmouseover="showTip(event);" onmouseout="hideTip(event);"><div>
<div id="divTip1" style="background-color:yellow;position:absolute;visibility:hidden;padding:5px">
<span style="font-weight:bold">Custom Tooltip</span><br/>
</div>
</BODY>
</HTML>
<BODY>
<div style ="background-color:blue; color:white; font-weight:bold; padding:10px; cursor:pointer" onclick="toggle('divContent1');">Click Here</div>
<div style="border:3px solid blue; height:100px;padding:10px" id="divContent1">
This is some content to show and hide.
</div>
<div style ="background-color:blue; color:white; font-weight:bold; padding:10px; cursor:pointer" onclick="toggle('divContent2');">Click Here</div>
<div style="border:3px solid blue; height:100px;padding:10px" id="divContent2">
This is some content to show and hide.
</div>
</BODY>
</HTML>
ShowModalDialog鍑芥暟鐨勫姛鑳斤細
鎵撳紑涓涓瓙紿楀彛錛屽茍涓斿彲涓庣埗紿楀彛鐩鎬簰浼犻掓暟鎹紝瀹冧笌window.open鐨勬渶澶у尯鍒氨鍦ㄤ簬鐢盨howModalDialog鎵撳紑瀛愮獥鍙e悗錛岀埗紿楀彛灝嗕笉鑳芥搷浣溿?br />
浣跨敤鏂規硶錛?/strong>
vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
鍙傛暟璇存槑錛?br />
sURL
蹇呴夊弬鏁幫紝綾誨瀷錛氬瓧絎︿覆銆傜敤鏉ユ寚瀹氬璇濇瑕佹樉紺虹殑鏂囨。鐨刄RL銆?br />
vArguments
鍙夊弬鏁幫紝綾誨瀷錛氬彉浣撱傜敤鏉ュ悜瀵硅瘽妗嗕紶閫掑弬鏁般備紶閫掔殑鍙傛暟綾誨瀷涓嶉檺錛屽寘鎷暟緇勭瓑銆傚璇濇閫氳繃window.dialogArguments鏉ュ彇寰椾紶閫掕繘鏉ョ殑鍙傛暟銆?br />
sFeatures
鍙夊弬鏁幫紝綾誨瀷錛氬瓧絎︿覆銆傜敤鏉ユ弿榪板璇濇鐨勫瑙傜瓑淇℃伅錛屽彲浠ヤ嬌鐢ㄤ互涓嬬殑涓涓垨鍑犱釜錛岀敤鍒嗗彿“;”闅斿紑銆?br />
dialogHeight 瀵硅瘽妗嗛珮搴︼紝涓嶅皬浜庯紤錛愶紣px錛岋緝錛ワ紨涓璬ialogHeight 鍜?dialogWidth 榛樿鐨勫崟浣嶆槸em錛岃岋緝錛ワ紩涓槸px錛屼負鏂逛究鍏惰錛屽湪瀹氫箟modal鏂瑰紡鐨勫璇濇鏃訛紝鐢╬x鍋氬崟浣嶃?br />
銆銆 dialogWidth: 瀵硅瘽妗嗗搴︺?br />
銆銆 dialogLeft: 璺濈妗岄潰宸︾殑璺濈銆?br />
銆銆 dialogTop: 紱繪闈笂鐨勮窛紱匯?br />
銆銆 center: {yes | no | 1 | 0 }錛氱獥鍙f槸鍚﹀眳涓紝榛樿yes錛屼絾浠嶅彲浠ユ寚瀹氶珮搴﹀拰瀹藉害銆?br />
銆銆 help: {yes | no | 1 | 0 }錛氭槸鍚︽樉紺哄府鍔╂寜閽紝榛樿yes銆?br />
銆銆 resizable: {yes | no | 1 | 0 } 錛伙緝錛ワ紩錛嬶冀錛氭槸鍚﹀彲琚敼鍙樺ぇ灝忋傞粯璁o銆?br />
銆銆 status: {yes | no | 1 | 0 } 錛籌E5+錛斤細鏄惁鏄劇ず鐘舵佹爮銆傞粯璁や負yes[ Modeless]鎴杗o [Modal]銆?br />
scroll:{ yes | no | 1 | 0 | on | off }錛氭寚鏄庡璇濇鏄惁鏄劇ず婊氬姩鏉°傞粯璁や負yes銆?br />
鍙傛暟浼犻掓柟娉曪細
鐖剁獥鍙e悜瀛愮獥鍙d紶閫掑弬鏁伴噰鐢⊿howModalDialog鐨勭2涓弬鏁板嵆鍙紝鐖剁獥鍙h鑾峰彇瀛愮獥鍙d紶鍥炵殑鍙傛暟鍒欏彲閫氳繃ShowModalDialog鍑芥暟鐨勮繑鍥炲艱幏鍙栥?br />
瀛愮獥鍙h幏鍙栫埗紿楀彛鍙傛暟鐨勬柟娉曚負閲囩敤瀛愮獥鍙indow瀵硅薄dialogArguments灞炴ц幏鍙栵紝渚嬪錛?br />
var a=window.dialogArguments;
瀛愮獥鍙e悜鐖剁獥鍙h繑鍥炲弬鏁伴噰鐢╳indow.returnValue灞炴э紝濡傦細
window.returnValue=1;
window.close();
姣斿瀹炵幇涓婇潰闂錛屽彧闇瑕佽繖鏍鳳細
var url = "page.html";
var retValue = window.showModalDialog(url, "newwindow", "dialogWidth:500px;dialogHeight:200px;help:no;resizable:no;scroll:no;status:no");
浜屻佹庢牱鎵嶈鍦╯howModalDialog鍜宻howModelessDialog鐨勮秴榪炴帴涓嶅脊鍑烘柊紿楀彛錛?br /> 銆銆鍦ㄨ鎵撳紑鐨勭綉欏甸噷鍔犱笂<base target="_self">灝卞彲浠ヤ簡銆傝繖鍙ヨ瘽涓鑸槸鏀懼湪<html>鍜?lt;body>涔嬮棿鐨勩?/p>
涓夈佹庢牱鎵嶅埛鏂皊howModalDialog鍜宻howModelessDialog閲岀殑鍐呭錛?br /> 銆銆鍦╯howModalDialog鍜宻howModelessDialog閲屾槸涓嶈兘鎸塅5鍒鋒柊鐨勶紝鍙堜笉鑳藉脊鍑鴻彍鍗曘傝繖涓彧鑳戒緷闈爅avascript浜嗭紝浠ヤ笅鏄浉鍏充唬鐮侊細
<body onkeydown="if (event.keyCode==116){reload.click()}">
<a id="reload" href="filename.htm" style="display:none">reload...</a>
銆銆灝唂ilename.htm鏇挎崲鎴愮綉欏電殑鍚嶅瓧鐒跺悗灝嗗畠鏀懼埌浣犳墦寮鐨勭綉欏甸噷錛屾寜F5灝卞彲浠ュ埛鏂頒簡錛屾敞鎰忥紝榪欎釜瑕侀厤鍚?lt;base target="_self">浣跨敤錛屼笉鐒朵綘鎸変笅F5浼氬脊鍑烘柊紿楀彛鐨勩?/p>
鍥涖佸浣曠敤javascript鍏蟲帀showModalDialog(鎴杝howModelessDialog)鎵撳紑鐨勭獥鍙c?br />
銆銆<input type="button" value="鍏抽棴" onclick="window.close()">
銆銆涔熻閰嶅悎<base target="_self">錛屼笉鐒朵細鎵撳紑涓涓柊鐨処E紿楀彛錛岀劧鍚庡啀鍏蟲帀鐨勩?/p>
鍏蜂綋浣跨敤鍔炴硶錛?br /> 鍒?a target="_blank" rel="nofollow">snap緗戠珯鍙互鐢寵鍒頒竴孌電被浼間互涓嬪艦寮忕殑浠g爜錛?br />
<script defer id="snap_preview_anywhere" type="text/javascript" src="http://spa.snap.com/snap_preview_anywhere.js?ap=1&key=739080a127808f9856fa43a8c91c4d21&sb=1&domain=dimlau.com"></script>
涓嬮潰璇磋浠g爜鐨勪慨鏀癸細
1銆佷嬌鐢ㄩ粯璁ょ殑浠g爜錛岄紶鏍囩Щ鍔ㄥ埌閾炬帴涓婃椂鏄劇ず鐨勬晥鏋滄槸甯︽悳绱㈡鐨勶紝浣嗘槸鍙互閫氳繃淇敼浠g爜鏉ュ幓鎺夋悳绱㈡錛屽厛鐪嬫晥鏋滃姣旓細
淇敼鏂規硶鏄紝灝嗚幏寰椾唬鐮佷腑鐨?strong>sb=1鏀規垚sb=0
2銆侀粯璁や唬鐮佹晥鏋滄槸欏甸潰涓殑鎵鏈夐摼鎺ラ兘鏈夐紶鏍囧垝榪囨椂鏄劇ず緙╃暐鍥炬晥鏋溿?/strong>濡傛灉浣犳兂瀵規煇涓壒瀹氶摼鎺ョ鐢ㄧ緝鐣ュ浘鏁堟灉錛屽彲浠ュ璇ラ摼鎺ュ姞涓婁竴涓垎綾繪潵鏍囪瘑錛?br /> 渚嬪閾炬帴
<a href="xxxx">xxx</a>錛岀鐢ㄧ緝鐣ュ浘鐨勬柟娉曟槸鍐欐垚
<a href="xxxx" class="snap_nopreview">xxx</a>
閫氬父錛屼竴涓〉闈㈤噷澶ч儴鍒嗛摼鎺ユ垜浠兘涓嶆兂鍔犲叆緙╃暐鍥劇殑錛屾墍浠ヤ笂榪板姙娉曟湁鐐圭儲鐞愪簡銆?br /> 鍏跺疄鍙互閫氳繃淇敼浠g爜涓殑ap=1涓?strong>ap=0鏉ヤ嬌欏甸潰鐨勬墍鏈夐摼鎺ュ湪榛樿鎯呭喌涓嬩笉鏄劇ず緙╃暐鍥撅紝榪欐椂鍙湁閾炬帴鍐欐垚浠ヤ笅鏍煎紡鐨勬儏鍐典笅鎵嶄細鏈夌緝鐣ュ浘鏄劇ず錛?br />
<a class="snap_preview" href="XXX">XXX</a>
瀵逛簬涓婅堪鍚勭鎯呭喌錛屽鏋滈摼鎺ユ湰韜凡緇忔湁浜嗘煇涓猚lass鍒嗙被錛屾瘮濡傚凡緇忓垎綾諱負class="123",鍙互鐢?strong>絀烘牸鏉ュ垎闅旓紝騫惰祴浜堝涓猚lass鍒嗙被錛屾瘮濡?br /> class="123 snap_nopreview"鎴栬卌lass="123 snap_preview"
浠ヤ笂涓烘湰浜虹殑涓鐐瑰皬灝忓績寰楋紝甯屾湜瀵瑰悇浣嶇湅瀹樻湁鐐瑰府鍔┿?br /> --------------------------------------------------------------------------------------------------------
瀵逛簬鎴戜嬌鐢ㄧ殑MT錛屽彲浠ュ妯$増涓殑璇勮鑰呯綉绔欓摼鎺ュ艦寮忓姞鍏ヤ竴涓猚lass="snap_preview"鏉ュ疄鐜板璇勮鑰呯綉绔欑晫闈㈢殑鍒濇棰勮錛屾垜瑙夊緱鏄釜涓嶉敊鐨勫皬宸ュ叿銆?br />
褰撶劧鍏朵粬紼嬪簭錛屼篃鍙互鍋氱浉搴旂殑淇敼瀹炵幇璇ユ晥鏋溿傛垜灝變笉鍐嶅璇翠簡銆?/p>
"^\\d+$"銆銆//闈炶礋鏁存暟錛?font style="BACKGROUND-COLOR: #ffffff">姝f暣鏁?/font> + 0錛?br>"^[0-9]*[1-9][0-9]*$"銆銆//姝f暣鏁?/font>
"^((-\\d+)|(0+))$"銆銆//闈?font style="BACKGROUND-COLOR: #ffffff">姝f暣鏁?/font>錛堣礋鏁存暟 + 0錛?br>"^-[0-9]*[1-9][0-9]*$"銆銆//璐熸暣鏁?br>"^-?\\d+$"銆銆銆銆//鏁存暟
"^\\d+(\\.\\d+)?$"銆銆//闈炶礋嫻偣鏁幫紙姝f誕鐐規暟 + 0錛?br>"^(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-9]+)|([0-9]*[1-9][0-9]*))$"銆銆//姝f誕鐐規暟
"^((-\\d+(\\.\\d+)?)|(0+(\\.0+)?))$"銆銆//闈炴嫻偣鏁幫紙璐熸誕鐐規暟 + 0錛?br>"^(-(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-9]+)|([0-9]*[1-9][0-9]*)))$"銆銆//璐熸誕鐐規暟
"^(-?\\d+)(\\.\\d+)?$"銆銆//嫻偣鏁?br>"^[A-Za-z]+$"銆銆//鐢?6涓嫳鏂囧瓧姣嶇粍鎴愮殑瀛楃涓?br>"^[A-Z]+$"銆銆//鐢?6涓嫳鏂囧瓧姣嶇殑澶у啓緇勬垚鐨勫瓧絎︿覆
"^[a-z]+$"銆銆//鐢?6涓嫳鏂囧瓧姣嶇殑灝忓啓緇勬垚鐨勫瓧絎︿覆
"^[A-Za-z0-9]+$"銆銆//鐢辨暟瀛楀拰26涓嫳鏂囧瓧姣嶇粍鎴愮殑瀛楃涓?br>"^\\w+$"銆銆//鐢辨暟瀛椼?6涓嫳鏂囧瓧姣嶆垨鑰呬笅鍒掔嚎緇勬垚鐨勫瓧絎︿覆
"^[\\w-]+(\\.[\\w-]+)*@[\\w-]+(\\.[\\w-]+)+$"銆銆銆銆//email鍦板潃
"^[a-zA-z]+://(\\w+(-\\w+)*)(\\.(\\w+(-\\w+)*))*(\\?\\S*)?$"銆銆//url
var months = new Array("涓鏈?, "浜屾湀", "涓夋湀", "鍥涙湀", "浜旀湀", "鍏湀", "涓冩湀", "鍏湀", "涔濇湀", "鍗佹湀", "鍗佷竴鏈?, "鍗佷簩鏈?);
var daysInMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
var days = new Array("鏃?,"涓", "浜?, "涓?, "鍥?, "浜?, "鍏?);
var today;
document.writeln("<div id='Calendar' style='position:absolute; z-index:1; visibility: hidden; filter:\"progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#999999,strength=3)\"'></div>");
function getDays(month, year)
{
//涓嬮潰鐨勮繖孌典唬鐮佹槸鍒ゆ柇褰撳墠鏄惁鏄棸騫寸殑
if (1 == month)
return ((0 == year % 4) && (0 != (year % 100))) || (0 == year % 400) ? 29 : 28;
else
return daysInMonth[month];
}
function getToday()
{
//寰楀埌浠婂ぉ鐨勫勾,鏈?鏃?
this.now = new Date();
this.year = this.now.getFullYear();
this.month = this.now.getMonth();
this.day = this.now.getDate();
}
function getStringDay(str)
{
//寰楀埌杈撳叆妗嗙殑騫?鏈?鏃?br /> var str=str.split("-")
this.now = new Date(parseFloat(str[0]),parseFloat(str[1])-1,parseFloat(str[2]));
this.year = this.now.getFullYear();
this.month = this.now.getMonth();
this.day = this.now.getDate();
}
function newCalendar() {
var parseYear = parseInt(document.all.Year.options[document.all.Year.selectedIndex].value);
var newCal = new Date(parseYear, document.all.Month.selectedIndex, 1);
var day = -1;
var startDay = newCal.getDay();
var daily = 0;
if ((today.year == newCal.getFullYear()) &&(today.month == newCal.getMonth()))
day = today.day;
var tableCal = document.all.calendar;
var intDaysInMonth =getDays(newCal.getMonth(), newCal.getFullYear());
for (var intWeek = 1; intWeek < tableCal.rows.length;intWeek++)
for (var intDay = 0;intDay < tableCal.rows[intWeek].cells.length;intDay++)
{
var cell = tableCal.rows[intWeek].cells[intDay];
if ((intDay == startDay) && (0 == daily))
daily = 1;
if(day==daily) //浠婂ぉ錛岃皟鐢ㄤ粖澶╃殑Class
{
cell.style.background='#6699CC';
cell.style.color='#FFFFFF';
//cell.style.fontWeight='bold';
}
else if(intDay==6) //鍛ㄥ叚
cell.style.color='green';
else if (intDay==0) //鍛ㄦ棩
cell.style.color='red';
if ((daily > 0) && (daily <= intDaysInMonth))
{
cell.innerText = daily;
daily++;
}
else
cell.innerText = "";
}
}
function GetDate(InputBox)
{
var sDate;
//榪欐浠g爜澶勭悊榧犳爣鐐瑰嚮鐨勬儏鍐?
if (event.srcElement.tagName == "TD")
if (event.srcElement.innerText != "")
{
sDate = document.all.Year.value + "-" + document.all.Month.value + "-" + event.srcElement.innerText;
eval("document.all."+InputBox).value=sDate;
HiddenCalendar();
}
}
function HiddenCalendar()
{
//鍏抽棴閫夋嫨紿楀彛
document.all.Calendar.style.visibility='hidden';
}
function ShowCalendar(InputBox)
{
var x,y,intLoop,intWeeks,intDays;
var DivContent;
var year,month,day;
//var o=document.getElementById(InputBox);
var o=InputBox;
var oid=o.id;
var thisyear; //鐪熸鐨勪粖騫村勾浠?br />
if(!oid)oid=o.name;
thisyear=new getToday();
thisyear=thisyear.year;
today = o.value;
if(isDate(today))
today = new getStringDay(today);
else
today = new getToday();
//鏄劇ず鐨勪綅緗?br /> x=o.offsetLeft;
y=o.offsetTop;
while(o=o.offsetParent)
{
x+=o.offsetLeft;
y+=o.offsetTop;
}
document.all.Calendar.style.left=x+2;
document.all.Calendar.style.top=y+20;
document.all.Calendar.style.visibility="visible";
//涓嬮潰寮濮嬭緭鍑烘棩鍘嗚〃鏍?border-color:#9DBAF7)
DivContent="<table border='0' cellspacing='0' style='border:1px solid #0066FF; background-color:#EDF2FC'>";
DivContent+="<tr>";
DivContent+="<td style='border-bottom:1px solid #0066FF; background-color:#C7D8FA'>";
//騫?br /> DivContent+="<select name='Year' id='Year' onChange='newCalendar()' style='font-family:Verdana; font-size:12px'>";
for (intLoop = thisyear - 100; intLoop < (thisyear + 2); intLoop++)
DivContent+="<option value= " + intLoop + " " + (today.year == intLoop ? "Selected" : "") + ">" + intLoop + "</option>";
DivContent+="</select>";
//鏈?br /> DivContent+="<select name='Month' id='Month' onChange='newCalendar()' style='font-family:Verdana; font-size:12px'>";
for (intLoop = 0; intLoop < months.length; intLoop++)
DivContent+="<option value= " + (intLoop + 1) + " " + (today.month == intLoop ? "Selected" : "") + ">" + months[intLoop] + "</option>";
DivContent+="</select>";
DivContent+="</td>";
DivContent+="<td style='border-bottom:1px solid #0066FF; background-color:#C7D8FA; font-weight:bold; font-family:Wingdings 2,Wingdings,Webdings; font-size:16px; padding-top:2px; color:#4477FF; cursor:hand' align='center' title='鍏抽棴' onClick='javascript:HiddenCalendar()'>S</td>";
DivContent+="</tr>";
DivContent+="<tr><td align='center' colspan='2'>";
DivContent+="<table id='calendar' border='0' width='100%'>";
//鏄熸湡
DivContent+="<tr>";
for (intLoop = 0; intLoop < days.length; intLoop++)
DivContent+="<td align='center' style='font-size:12px'>" + days[intLoop] + "</td>";
DivContent+="</tr>";
//澶?br /> for (intWeeks = 0; intWeeks < 6; intWeeks++)
{
DivContent+="<tr>";
for (intDays = 0; intDays < days.length; intDays++)
DivContent+="<td onClick='GetDate(\"" + oid + "\")' style='cursor:hand; border-right:1px solid #BBBBBB; border-bottom:1px solid #BBBBBB; color:#215DC6; font-family:Verdana; font-size:12px' align='center'></td>";
DivContent+="</tr>";
}
DivContent+="</table></td></tr></table>";
document.all.Calendar.innerHTML=DivContent;
newCalendar();
}
function isDate(dateStr)
{
var datePat = /^(\d{4})(\-)(\d{1,2})(\-)(\d{1,2})$/;
var matchArray = dateStr.match(datePat);
if (matchArray == null) return false;
var month = matchArray[3];
var day = matchArray[5];
var year = matchArray[1];
if (month < 1 || month > 12) return false;
if (day < 1 || day > 31) return false;
if ((month==4 || month==6 || month==9 || month==11) && day==31) return false;
if (month == 2)
{
var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));
if (day > 29 || (day==29 && !isleap)) return false;
}
return true;
}
#imgTitle_up
{
LEFT: 0px; HEIGHT: 1px; TEXT-ALIGN: left
}
#imgTitle_down
{
LEFT: 0px; TEXT-ALIGN: right
}
.imgClass
{
BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; BORDER-LEFT: gray 1px solid; BORDER-BOTTOM: gray 0px solid
}
#txtFrom
{
VERTICAL-ALIGN: middle; TEXT-ALIGN: center
}
.button
{
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: #7b7b63; PADDING-BOTTOM: 0px; MARGIN: 0px; FONT: bold 9px sans-serif; BORDER-LEFT: #fff 1px solid; PADDING-TOP: 0px; TEXT-DECORATION: none;width:20;
}
A.button
{
COLOR: #ffffff; FONT-FAMILY: sans-serif; BACKGROUND-COLOR: #000000; TEXT-DECORATION: none
}
A.button:link
{
COLOR: #ffffff; FONT-FAMILY: sans-serif; BACKGROUND-COLOR: #000000; TEXT-DECORATION: none
}
A.button:visited
{
COLOR: #ffffff; FONT-FAMILY: sans-serif; BACKGROUND-COLOR: #000000; TEXT-DECORATION: none
}
A.button:hover
{
BACKGROUND: #fff; COLOR: #fff; FONT-FAMILY: sans-serif; TEXT-DECORATION: none
}
.buttonDiv
{
BACKGROUND: #000000; FLOAT: left; VERTICAL-ALIGN: middle; WIDTH: 21px; HEIGHT: 1px; TEXT-ALIGN: center
}
.trans
{
FILTER: progid:DXImageTransform.Microsoft.Alpha(startX=0, startY=0, finishX=100, finishY=100,style=1,opacity=0,finishOpacity=40); WIDTH: 90px; BACKGROUND-COLOR: #000
}
</STYLE>
<SCRIPT language="javascript" type="text/javascript">
var imgWidth=199; //鍥劇墖瀹?br /> var imgHeight=180; //鍥劇墖楂?br /> var textFromHeight=0; //鐒︾偣瀛楁楂樺害 (鍗曚綅涓簆x)
var textStyle="f12"; //鐒︾偣瀛梒lass style (涓嶆槸榪炴帴class)
var textLinkStyle="p1"; //鐒︾偣瀛楄繛鎺lass style
var buttonLineOn="#f60"; //button涓嬪垝綰縪n鐨勯鑹?br /> var buttonLineOff="#000"; //button涓嬪垝綰縪ff鐨勯鑹?br /> var TimeOut=5000; //姣忓紶鍥懼垏鎹㈡椂闂?(鍗曚綅姣);
var imgUrl=new Array();
var imgLink=new Array();
var imgtext=new Array();
var imgAlt=new Array();
var adNum=0;
//鐒︾偣瀛楁楂樺害鏍峰紡琛?寮濮?br /> document.write('<style type="text/css">');
document.write('#focuseFrom{width:'+(imgWidth+2)+';margin: 0px; padding:0px;height:'+(imgHeight+textFromHeight)+'px; overflow:hidden;}');
document.write('#txtFrom{height:'+textFromHeight+'px;line-height:'+textFromHeight+'px;width:'+imgWidth+'px;overflow:hidden;}');
document.write('#imgTitle{width:'+imgWidth+';top:-'+(textFromHeight+18)+'px;height:18px}');
document.write('</style>');
document.write('<div id="focuseFrom">');//sx1123
//鐒︾偣瀛楁楂樺害鏍峰紡琛?緇撴潫
<%
//鍥劇墖鏂伴椈
nmm_al = nmm_scIndex.getPicNews(430,5);
if(nmm_al!=null&&!nmm_al.isEmpty())
{
for(int i=0;i < nmm_al.size();i++)
{
Element e = (Element)nmm_al.get(i);
String picUrl = (e.getLink().equals("")?"/nry.jsp?ID=" + e.getID():e.getLink());
out.print("imgUrl["+(i+1)+"]='/Upload/"+e.getElse()+"';");
out.print("imgtext["+(i+1)+"]='<center><a href=\""+ picUrl+"\" TARGET=\"_blank\" class=\"p1\" title="+ e.getTitle() +">"+nmm_scIndex.getSubString(e.getTitle(),30)+"</a></center>';");
out.print("imgLink["+(i+1)+"]='"+picUrl+"';");
out.print("imgAlt["+(i+1)+"]='"+e.getTitle()+"';");
}
}
%>
function changeimg(n)
{
adNum=n;
window.clearInterval(theTimer);
adNum=adNum-1;
nextAd();
}
function goUrl(){
window.open(imgLink[adNum],'_blank');
}
//NetScape寮濮?br /> if (navigator.appName == "Netscape")
{
document.write('<style type="text/css">');
document.write('.buttonDiv{height:4px;width:21px;}');
document.write('</style>');
function nextAd(){
if(adNum<(imgUrl.length-1))adNum++;
else adNum=1;
theTimer=setTimeout("nextAd()", TimeOut);
document.images.imgInit.src=imgUrl[adNum];
document.images.imgInit.alt=imgAlt[adNum];
document.getElementById('focustext').innerHTML=imgtext[adNum];
document.getElementById('imgLink').href=imgLink[adNum];
document.getElementById("imgtext").innerHTML=imgtext[adNum];//////////////////
}
document.write('<a id="imgLink" href="'+imgLink[1]+'" target=_blank class="p1"><img src="'+imgUrl[1]+'" name="imgInit" width='+imgWidth+' height='+imgHeight+' border=1 alt="'+imgAlt[1]+'" class="imgClass"></a><div id="txtFrom"><span id="focustext" class="'+textStyle+'">'+imgtext[1]+'</span></div>')//sx1123
document.write('<div id="imgTitle">');
document.write('<div id="imgTitle_down">');
//鏁板瓧鎸夐挳浠g爜寮濮?br /> for(var i=1;i<imgUrl.length;i++){document.write('<a href="javascript:changeimg('+i+')" class="button" style="cursor:hand" title="'+imgAlt[i]+'">'+i+'</a>');}
//鏁板瓧鎸夐挳浠g爜緇撴潫
document.write('</div>');
document.write('</div>');
document.write('</div>');
nextAd();
}
//NetScape緇撴潫
//IE寮濮?br /> else
{
var count=0;
for (i=1;i<imgUrl.length;i++) {
if( (imgUrl[i]!="") && (imgLink[i]!="")&&(imgtext[i]!="")&&(imgAlt[i]!="") ) {
count++;
} else {
break;
}
}
function playTran(){
if (document.all)
imgInit.filters.revealTrans.play();
//imgInit.filters.revealTrans.Transition=23;
//imgInit.filters.revealTrans.apply();
}
var key=0;
function nextAd(){
if(adNum<count)adNum++ ;
else adNum=1;
if( key==0 ){
key=1;
} else if (document.all){
imgInit.filters.revealTrans.Transition=23;
imgInit.filters.revealTrans.apply();
playTran();
}
document.images.imgInit.src=imgUrl[adNum];
document.images.imgInit.alt=imgAlt[adNum];
document.getElementById('link'+adNum).style.background=buttonLineOn;
for (var i=1;i<=count;i++)
{
if (i!=adNum){document.getElementById('link'+i).style.background=buttonLineOff;}
}
focustext.innerHTML=imgtext[adNum];
theTimer=setTimeout("nextAd()", TimeOut);
document.getElementById("imgtext").innerHTML=imgtext[adNum];//////////////////
}
document.write('<a target=_self href="javascript:goUrl()"><img style="FILTER: revealTrans(duration=1,transition=5);" src="javascript:nextAd()" width='+imgWidth+' height='+imgHeight+' border=0 vspace="0" name=imgInit class="imgClass"></a>');
document.write('<div id="txtFrom"><span id="focustext" class="'+textStyle+'"></span></div>');
document.write('<div id="imgTitle">');
document.write(' <div id="imgTitle_down"> <a class="trans"></a>');
//鏁板瓧鎸夐挳浠g爜寮濮?br /> for(var i=1;i<imgUrl.length;i++)
{
document.write('<a id="link'+i+'" href="javascript:changeimg('+i+')" class="button" style="cursor:hand" title="'+imgAlt[i]+'" onFocus="this.blur()">'+i+'</a>');
}
//鏁板瓧鎸夐挳浠g爜緇撴潫
document.write('</div>');
document.write('</div>');
document.write('</div><table><tr><td height=6></td></tr></table>');
document.write("<div id='imgtext'></div>");//////////////////
}
//IE緇撴潫
</SCRIPT>
銆銆浜屻併愮紪杈?E)銆戣彍鍗曚腑鐨勫懡浠ょ殑瀹炵幇
銆銆銆栧叏閫夈楀懡浠ょ殑瀹炵幇
銆銆[鏍煎紡]:document.execCommand("selectAll")
銆銆[璇存槑]灝嗛夌緗戦〉涓殑鍏ㄩ儴鍐呭錛?
銆銆[涓句緥]鍦?lt;body></body>涔嬮棿鍔犲叆錛?
銆銆<a href="#" onclick=document.execCommand("selectAll")>鍏ㄩ?lt;/a>
銆銆涓夈併愭煡鐪?V)銆戣彍鍗曚腑鐨勫懡浠ょ殑瀹炵幇
銆銆1銆併栧埛鏂般楀懡浠ょ殑瀹炵幇
銆銆[鏍煎紡]:location.reload() 鎴?history.go(0)
銆銆[璇存槑]嫻忚鍣ㄩ噸鏂版墦寮鏈〉銆?
銆銆[涓句緥]鍦?lt;body></body>涔嬮棿鍔犲叆錛?
銆銆<a href="#" onclick=location.reload()>鍒鋒柊</a>
銆銆鎴栧姞鍏?<a href="#" onclick=history.go(0)>鍒鋒柊</a>
銆銆2銆併栨簮鏂囦歡銆楀懡浠ょ殑瀹炵幇
銆銆[鏍煎紡]:location.replace("view-source:"+location)
銆銆[璇存槑]鏌ョ湅璇ョ綉欏電殑婧愪唬鐮併?
銆銆[涓句緥]鍦?lt;body></body>涔嬮棿鍔犲叆錛?
銆銆<a href="#" onclick=location.replace("view-source:"+location)>鏌ョ湅婧愭枃浠?lt;/a>
銆銆3銆併栧叏灞忔樉紺恒楀懡浠ょ殑瀹炵幇
銆銆[鏍煎紡]:window.open(document.location,"url","fullscreen")
銆銆[璇存槑]鍏ㄥ睆鏄劇ず鏈〉銆?
銆銆[涓句緥]鍦?lt;body></body>涔嬮棿鍔犲叆錛?
銆銆<a href="#" onclick=window.open(document.location,"url","fullscreen")>鍏ㄥ睆鏄劇ず</a>
銆銆鍥涖併愭敹钘?A)銆戣彍鍗曚腑鐨勫懡浠ょ殑瀹炵幇
銆銆1銆併栨坊鍔犲埌鏀惰棌澶廣楀懡浠ょ殑瀹炵幇
銆銆[鏍煎紡]:window.external.AddFavorite('url', '“緗戠珯鍚?#8221;)
銆銆[璇存槑]灝嗘湰欏墊坊鍔犲埌鏀惰棌澶廣?
銆銆[涓句緥]鍦?lt;body></body>涔嬮棿鍔犲叆錛?
銆銆<a href="Java script:window.external.AddFavorite('http://oh.jilinfarm.com', '鑳℃槑鏂扮殑涓漢涓婚〉')">娣誨姞鍒版敹钘忓す</a>
銆銆2銆併栨暣鐞嗘敹钘忓す銆楀懡浠ょ殑瀹炵幇
銆銆[鏍煎紡]:window.external.showBrowserUI("OrganizeFavorites",null)
銆銆[璇存槑]鎵撳紑鏁寸悊鏀惰棌澶瑰璇濇銆?
銆銆[涓句緥]鍦?lt;body></body>涔嬮棿鍔犲叆錛?
銆銆<a href="#" onclick=window.external.showBrowserUI("OrganizeFavorites",null)>鏁寸悊鏀惰棌澶?lt;/a>
銆銆浜斻併愬伐鍏?T)銆戣彍鍗曚腑鐨勫懡浠ょ殑瀹炵幇
銆銆銆杋nternet閫夐」銆楀懡浠ょ殑瀹炵幇
銆銆[鏍煎紡]:window.external.showBrowserUI("PrivacySettings",null)
銆銆[璇存槑]鎵撳紑internet閫夐」瀵硅瘽妗嗐?
銆銆[涓句緥]鍦?lt;body></body>涔嬮棿鍔犲叆錛?
銆銆<a href="#" onclick=window.external.showBrowserUI("PrivacySettings",null)>internet閫夐」</a>
銆銆鍏併愬伐鍏鋒爮銆戜腑鐨勫懡浠ょ殑瀹炵幇
銆銆1銆併栧墠榪涖楀懡浠ょ殑瀹炵幇
銆銆[鏍煎紡]history.go(1) 鎴?history.forward()
銆銆[璇存槑]嫻忚鍣ㄦ墦寮鍚庝竴涓〉闈€?
銆銆[涓句緥]鍦?lt;body></body>涔嬮棿鍔犲叆錛?
銆銆<a href="#" onclick=history.go(1)>鍓嶈繘</a>
銆銆鎴栧姞鍏?<a href="#" onclick=history.forward()>鍓嶈繘</a>
銆銆2銆併栧悗閫銆楀懡浠ょ殑瀹炵幇
銆銆[鏍煎紡]:history.go(-1) 鎴?history.back()
銆銆[璇存槑]嫻忚鍣ㄨ繑鍥炰笂涓涓凡嫻忚鐨勯〉闈€?
銆銆[涓句緥]鍦?lt;body></body>涔嬮棿鍔犲叆錛?
銆銆<a href="#" onclick=history.go(-1)>鍚庨</a>
銆銆鎴栧姞鍏?<a href="#" onclick=history.back()>鍚庨</a>
銆銆3銆併栧埛鏂般楀懡浠ょ殑瀹炵幇
銆銆[鏍煎紡]:document.reload() 鎴?history.go(0)
銆銆[璇存槑]嫻忚鍣ㄩ噸鏂版墦寮鏈〉銆?
銆銆[涓句緥]鍦?lt;body></body>涔嬮棿鍔犲叆錛?
銆銆<a href="#" onclick=location.reload()>鍒鋒柊</a>
銆銆鎴栧姞鍏?<a href="#" onclick=history.go(0)>鍒鋒柊</a>
銆銆
銆銆涓冦佸叾瀹冨懡浠ょ殑瀹炵幇
銆銆銆栧畾鏃跺叧闂湰紿楀彛銆楀懡浠ょ殑瀹炵幇
銆銆[鏍煎紡]:settimeout(window.close(),鍏抽棴鐨勬椂闂?
銆銆[璇存槑]灝嗗叧闂湰紿楀彛銆?
銆銆[涓句緥]鍦?lt;body></body>涔嬮棿鍔犲叆錛?
銆銆<a href="#" onclick=settimeout(window.close(),3000)>3縐掑叧闂湰紿楀彛</a>
銆銆濡傛灉澶у榪樻暣鐞嗗嚭鍏朵粬鐢╦avascript瀹炵幇鐨勫懡浠わ紝涓嶅Θ鎶曠ǹ鏉ュ拰澶у鍒嗕韓銆?
銆銆銆愰檮銆戜負浜嗘柟渚胯鑰咃紝涓嬮潰灝嗗垪鍑烘墍鏈夊疄渚嬩唬鐮侊紝浣犲彲浠ユ妸瀹冧滑鏀懼埌涓涓猦tml鏂囦歡涓紝鐒跺悗棰勮鏁堟灉銆?
銆銆<a href="#" onclick=document.execCommand("open")>鎵撳紑</a><br>
銆銆<a href="#" onclick=location.replace("view-source:"+location)>浣跨敤 璁頒簨鏈?緙栬緫</a><br>
銆銆<a href="#" onclick=document.execCommand("saveAs")>鍙﹀瓨涓?lt;/a><br>
銆銆<a href="#" onclick=document.execCommand("print")>鎵撳嵃</a><br>
銆銆<a href="#" onclick=window.close();return false)>鍏抽棴鏈獥鍙?lt;/a><br>
銆銆<a href="#" onclick=document.execCommand("selectAll")>鍏ㄩ?lt;/a><br>
銆銆<a href="#" onclick=location.reload()>鍒鋒柊</a>銆<a href="#" onclick=history.go(0)>鍒鋒柊</a><br>
銆銆<a href="#" onclick=location.replace("view-source:"+location)>鏌ョ湅婧愭枃浠?lt;/a> <br>
銆銆<a href="#" onclick=window.open(document.location,"url","fullscreen")>鍏ㄥ睆鏄劇ず</a> <br>
銆銆<a href="Java script:window.external.AddFavorite('http://homepage.yesky.com', '澶╂瀬緗戦〉闄跺惂')">娣誨姞鍒版敹钘忓す</a> <br>
銆銆<a href="#" onclick=window.external.showBrowserUI("OrganizeFavorites",null)>鏁寸悊鏀惰棌澶?lt;/a> <br>
銆銆<a href="#" onclick=window.external.showBrowserUI("PrivacySettings",null)>internet閫夐」</a> <br>
銆銆<a href="#" onclick=history.go(1)>鍓嶈繘1</a>銆<a href="#" onclick=history.forward()>鍓嶈繘2</a><br>
銆銆<a href="#" onclick=history.go(-1)>鍚庨1</a>銆<a href="#" onclick=history.back()>鍚庨2</a><br>
銆銆<a href="#" onclick=settimeout(window.close(),3000)>3縐掑叧闂湰紿楀彛</a><br>
"鎵撳紑,鍙﹀瓨涓?灞炴?鎵撳嵃"絳?4涓狫S浠g爜
http://www.weiw.com 2003-8-19 浼熺綉鍔ㄥ姏
鈻犳墦寮鈻?
<input name=Button onClick=document.all.WebBrowser.ExecWB(1,1) type=button value=鎵撳紑>
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>
鈻犲彟瀛樹負鈻?
<input name=Button onClick=document.all.WebBrowser.ExecWB(4,1) type=button value=鍙﹀瓨涓?gt;<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>
鈻犲睘鎬р枲
<input name=Button onClick=document.all.WebBrowser.ExecWB(10,1) type=button value=灞炴?gt;<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>
鈻犳墦鍗扳枲
<input name=Button onClick=document.all.WebBrowser.ExecWB(6,1) type=button value=鎵撳嵃><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>
鈻犻〉闈㈣緗枲
<input name=Button onClick=document.all.WebBrowser.ExecWB(8,1) type=button value=欏甸潰璁劇疆><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>
鈻犲埛鏂扳枲
<input type=button value=鍒鋒柊 name=refresh onclick="window.location.reload()">
鈻犲鍏ユ敹钘忊枲
<input type="button" name="Button" value="瀵煎叆鏀惰棌澶? onClick=window.external.ImportExportFavorites(true,);>
鈻犲鍑烘敹钘忊枲
<input type="button" name="Button3" value="瀵煎嚭鏀惰棌澶? onClick=window.external.ImportExportFavorites(false,);>
鈻犲姞鍏ユ敹钘忊枲
<INPUT name=Button2 onclick="window.external.AddFavorite(location.href, document.title)" type=button value=鍔犲叆鏀惰棌澶?gt;
鈻犳暣鐞嗘敹钘忓す鈻?
<INPUT name=Submit2 onclick="window.external.ShowBrowserUI(OrganizeFavorites, null)" type=button value=鏁寸悊鏀惰棌澶?gt;
鈻犳煡鐪嬪師鏂囦歡鈻?
<INPUT name=Button onclick=window.location = "view-source:" + window.location.href type=button value=鏌ョ湅婧愭枃浠?gt;
鈻犺璦璁劇疆鈻?
<INPUT name=Button onclick="window.external.ShowBrowserUI(LanguageDialog, null)" type=button value=璇█璁劇疆>
鈻犲墠榪涒枲
<INPUT name=Submit onclick=history.go(1) type=submit value=鍓嶈繘>
鈻犲悗閫鈻?
<INPUT name=Submit2 onclick=history.go(-1) type=submit value=鍚庨>