• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
PHP开发记录
PHP以及web前端(ajax,js,jquery等)
博客园 首页 新随笔 管理
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 83 下一页

2009年6月24日

如何让人家复制自己网站信息自动加上网址,复制页面加上网址特效
摘要: ///复制网站内容自动加上网址document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "/r/n 详细出处参考:"+location.href; clipboardData.setData("text", text); } }, 100 ) } 阅读全文
posted @ 2009-06-24 06:28 corange 阅读(190) 评论(0) 推荐(0)
 
JS仿flash动态切换(横向,带分页器控制,自动正反向循环轮播)
摘要: <!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=u 阅读全文
posted @ 2009-06-24 06:06 corange 阅读(186) 评论(0) 推荐(0)
 
 

2009年6月22日

js操作select下拉列表的一些通用代码
摘要: 设置select中value="paraValue"的Item为选中 //document.all.objSelect.value = objItemValue; //得到select的当前选中项的value //var currSelectValue = document.all.objSelect.value; //得到select的当前选中项的text //var currSelectText = document.all.objSelect.options[document.all.objSelect.selectedIndex].text; //得到select的 阅读全文
posted @ 2009-06-22 09:32 corange 阅读(142) 评论(0) 推荐(0)
 
js设置select列表中特定项为选中状态
摘要: 设置select中text="paraText"的第一个Item为选中 function jsSelectItemByValue(objSelect,objItemText) { //判断是否存在 var isExit = false; for(var i=0;i<objSelect.options.length;i++) { if(objSelect.options[i].text == objItemText) { objSelect.options[i].selected = true; isExit = true; break; } } //Show出结果 i 阅读全文
posted @ 2009-06-22 09:28 corange 阅读(650) 评论(0) 推荐(0)
 
 

2009年6月21日

js修改select列表选项中的值
摘要: 4.修改select选项中 value="paraValue"的text为"paraText" function jsUpdateItemToSelect(objSelect,objItemText,objItemValue) { //判断是否存在 if(jsSelectIsExitItem(objSelect,objItemValue)) { for(var i=0;i<objSelect.options.length;i++) { if(objSelect.options[i].value == objItemValue) { objSelec 阅读全文
posted @ 2009-06-21 21:57 corange 阅读(584) 评论(0) 推荐(0)
 
 
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 83 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3