随笔分类 - Jquery
有关js的代码
摘要:<script src="/Scripts/hall/tab.js" type="text/javascript" id="src"></script> <script language="javascript" type="text/ecmascript"> GetJs(); function GetJs() { var src = document.getElementById("src"); if (GetBrowserType()
阅读全文
摘要:function KeyDown(e) { if (!e) e = window.event; //火狐中是 window.event if ((e.keyCode || e.which) == 13) {//登录的函数 ToLogin(); }}页面的调用 <input type="textbox" onkeydown = "KeyDown(event)" >
阅读全文
摘要:reload 方法,该方法强迫浏览器刷新当前页面。语法:location.reload([bForceGet]) 参数: bForceGet, 可选参数, 默认为 false,从客户端缓存里取当前页。true, 则以 GET 方式,从服务端取最新的页面, 相当于客户端点击 F5("刷新")replace 方法,该方法通过指定URL替换当前缓存在历史里(客户端)的项目,因此当使用replace方法之后,你不能通过“前进”和“后退”来访问已经被替换的URL。语法: location.replace(URL) 在实际应用的时候,重新刷新页面的时候,我们通常使用: location
阅读全文
摘要:function setChecked(iswhisper) { //是不是悄悄话 var check = document.getElementById("isRreplyWhisper"); if (iswhisper.toLowerCase() == "false") { check.checked = false; } else { check....
阅读全文
摘要:div弹出层<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>LIGHTBOX EXAMPLE</title> <style> .white_content {
阅读全文
摘要:function resizePic_temp(o, Mw, Mh, need_margin) { var _Mw = Mw || 120; var _Mh = Mh || 120; var need_resize = false; var _image = new Image(); _image.src = o.src; function getRightWH(Rw, Rh, Mw, Mh) { var index = 0, _Rw = Rw, _Rh = Rh; if...
阅读全文
摘要:<input name="" type="text" id="newDirtxt"/><input class="btn" name="" type="button" value="创建新目录" onclick="newDir()" />Js代码 <script type="text/javascript">////创建新目录 function newDir() { var txt
阅读全文
摘要:<script type="text/javascript">function bookmarksite(title, url){if (document.all) window.external.AddFavorite(url, title);else if (window.sidebar) window.sidebar.addPanel(title, url, "")}</script><a href="javascript:bookmarksite('简单的猪的博客', 'http:/
阅读全文
摘要:<td> <input class="btn" type="button" value="取消" onclick="cal()"/> </td> <td> <input class="btn" type="submit" value="保存" /> </td> </tr> </table> <% } %> <script type="
阅读全文
摘要:文章转自 http://www.2cto.com/kf/201206/138104.htmljquery autocomplete插件结合ajax使用demo 首先是引入文件,除了juqery和juqeryUI的基本文件外,还需要引入下面的文件1<!-- autocomplete -->2<script src="<%=request.getContextPath()%>/share/js/jqueryPlugin/autoComplete/jquery.ui.core.js"></script>3<script src
阅读全文
摘要:其中不乏Google、163邮箱、搜狐、Discuz等大站使用的图标,都被我分离,整理出来了,列在下面与大家共享:MSN:2008-3-16新增2个QQ加载图标2008-3-17 新增新网互联后台加载图标一个2008-3-22 新增123cha的加载图标一个2008-3-22 新增中关材的加载图标一个(这个加载图标中关村在作栏目的LOGO,实在让人想不通,看得晕晕的)2008-3-27 再新增未知站图标一个,iFOTO图片查看器加载图片一张(感谢陈智彬提供)再来一个DISCUZ的早前雅虎的...本文转自 http://blog.163.com/wxdl_1029/blog/static/446
阅读全文
摘要:官网介绍http://www.my97.net/dp/demo/index.htm时间间隔
阅读全文
摘要:先贴一个国内某大公司的代码: 复制代码 代码如下: <script type="text/javascript">function lang(key) {mylang = {'ls_input_myb': '请输入您的账户','ls_myb_email': '漫游币账户为邮箱地址','ls_login_password': '请输入您的登录密码','ls_password_length': '密码长度为{0}-{1}位之间','
阅读全文
摘要:<img border="0" alt="有事点这里" src="http://wpa.qq.com/pa?p=1:1025011641:3">点击跳到网页qq2.头像选择<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www
阅读全文
摘要:JS 回车提交,兼容IE、火狐、Opera、Chrome、Safari…… 1、JavaScript 方法:[javascript] <script> document.onkeydown=function(event){ e = event ? event :(window.event ? window.event : null); if(e.keyCode==13){ //执行的方法 alert('回车检测到了'); } } </script> <script> docume...
阅读全文
摘要://新的评论function sendCom(aId) { var currUrl = window.location; var liuyan = document.getElementById("liuyan"); var txt = liuyan.outerHTML; if (txt == null || txt == "") { alert("回复内容不可以为空"); } else { var check = checkLogin(); if (check != "") //查看是否登录 { ...
阅读全文
摘要:function HomePage() { if (document.all) { document.body.style.behavior = 'url(#default#homepage)'; document.body.setHomePage(window.location); } else if (window.sidebar) { if (window.netscape) { try { netscape.security.PrivilegeManager.enablePr...
阅读全文
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FixtableHeader.aspx.cs" Inherits="Text.FixtableHeader" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&q
阅读全文
摘要:function GetBrowserType() { var ua = navigator.userAgent.toLowerCase(); if (ua == null) return "ie"; else if (ua.indexOf('chrome') != -1) return "chrome"; else if (ua.indexOf('opera') != -1) return "opera"; else if (ua.indexOf('msie') != -1) retu
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-
阅读全文

浙公网安备 33010602011771号