techweb导航栏代码

Written by aijun June 20th, 2006 11:46 PM No Comments Filed under: 资源分享

演示地址:http://www.aijun.org/codedemo/techdemo.html
CSS代码


  1. <style type="text/css">   
  2. <!--   
  3. #siteNav {   
  4. clearboth;   
  5. float:left;   
  6. width:750px;   
  7. padding-left1px;   
  8. background#fff;   
  9.   
  10. font-size:12px;   
  11. font-weightbold;   
  12. line-height:normal;   
  13. border-bottom:2px solid #84B0C7;   
  14. voice-family"\"}\"";   
  15. voice-family: inherit;   
  16. width749px;   
  17. }   
  18. #siteNav ul {   
  19. margin:0;   
  20. padding:0;   
  21. list-style:none;   
  22. }   
  23. #siteNav li {   
  24. display:inline;   
  25. margin:0;   
  26. padding:0;   
  27. }   
  28. #siteNav a {   
  29. float:left;   
  30. background:url(tableft.gif) no-repeat left top;   
  31. margin:0;   
  32. padding:0 0 0 4px;   
  33. text-decoration:none;   
  34. }   
  35. #siteNav a span {   
  36. float:left;   
  37. display:block;   
  38. background:url(tabright.gif) no-repeat rightright top;   
  39. padding:5px 11px 4px 5px;   
  40. color:#036;   
  41. }   
  42. /* Commented Backslash Hack hides rule from IE5-Mac \*/  
  43. #siteNav a span {   
  44. float:none  
  45. }   
  46. /* End IE5-Mac hack */  
  47. #siteNav a:hover span {   
  48. color:#036;   
  49. }   
  50. #siteNav a:hover {   
  51. background-position:0% -42px;   
  52. }   
  53. #siteNav a:hover span {   
  54. background-position:100% -42px;   
  55. }   
  56. #siteNa#sel a {   
  57. background-position:0% -42px;   
  58. }   
  59. #siteNa#sel a span {   
  60. background-position:100% -42px;   
  61. }   
  62. -->   
  63. </style>  

 

Read the rest of this entry »

TAGS: 导航代码

一个IP只弹出一次代码

Written by aijun April 28th, 2006 11:08 PM No Comments Filed under: 资源分享

JavaScript代码
  1. <script>   
  2.   
  3. var cookieString = new String(document.cookie)   
  4. var cookieHeader = 'happy_pop=' //更换happy_pop为任意名称  
  5. var beginPosition = cookieString.indexOf(cookieHeader)   
  6. if (beginPosition <0){   
  7. window.open('http://你要弹出的ul','','top=0,left=0,width=787,height= 
  8. 480,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,status=yes');   
  9. var Then = new Date()       
  10.  Then.setTime(Then.getTime() + 12*60*60*1000 ) //同一ip设置过期时间,即多长间隔跳出一次  
  11.  document.cookie = 'happy_pop=yes;expires='+ Then.toGMTString()  //更换happy_pop和第4行一样的名称  
  12. }   
  13.   
  14. </script>   
  15. sethome()   
  16. }   
  17. //-->  
  18. </script>   

TAGS: 弹窗

常用JS广告代码

Written by aijun April 27th, 2006 11:10 PM No Comments Filed under: 资源分享

广告在网络媒体上可谓是找到了自己的又一新家,随着需求的增加,技术的革新,越来越多形式的网络广告应运而生。
下面的几种表现方式都是比较常见的,记录一下,以便以后工作中查找。

① 演示 下载
② 演示 下载
③ 演示 下载
④ 演示 下载
⑤ 演示 下载
⑥ 演示 下载
⑦ 演示 下载
⑧ 演示 下载
⑨ 演示 下载
⑩ 演示 下载

http://www.blueidea.com/download/product/2006/3319.asp

TAGS: JS广告代码

一个类似于阿里巴巴的精品页面代码

Written by aijun April 13th, 2006 11:55 AM No Comments Filed under: 资源分享

代码浏览地址:http://www.aijun.org/codedemo/js.html

代码自己查看文件,准备用于新的网站中去

TAGS: 阿里巴巴