HTML一些基本代码

来源:互联网 发布:淘宝三国杀主播店 编辑:程序博客网 时间:2024/05/16 06:21
  1. 背景随即音乐:
  2. <BODY>
  3.     <script>
  4. var music;
  5. var index;
  6. var path;
  7. music = new Array();
  8. music[0] = "http://www.show1show.com.cn/UpLoadFile/2007101956473061.mp3";
  9. music[1] = "http://www.smxpt.cn/xywh/bjgr/yj/music/rm/hj.mp3";
  10. music[2] = "http://www.sxurl.com/manage/yl/兄弟-%20任贤齐.mp3";
  11. index = Math.floor(Math.random() * music.length);
  12. if (navigator.appName=="Microsoft Internet Explorer")
  13. document.write('<bgsound src='+'"'+music[index]+'"'+' loop="infinite">')
  14. else
  15. document.write('<embed src='+'"'+music[index]+'"'+' hidden="true" autostart="true" loop="true">')
  16. </script>
  17. </BODY>
  18. 2:
  19. 1>.让背景固定不动的代码
  20. <Body bgproperties="fixed">
  21. 2>.插入透明FLASH代码
  22. <embed src="这里放flash的地址";; width="800" height="800" quality="high"wmode="transparent" align="right" style="position: absolute; left:92; top:0">
  23. 3>.让页面不要滚动条
  24. 让竖条没有:
  25. <body style='overflow:scroll;overflow-y:hidden'>
  26. </body>
  27. 让横条没有:
  28. <body style='overflow:scroll;overflow-x:hidden'>
  29. </body>
  30. 两个都去掉
  31. <body scroll="no">
  32. </body>
  33. 彩色滚动条:
  34. <STYLE type=text/css>
  35. body
  36. {
  37. scrollbar-face-color: #b5daff;
  38. scrollbar-highlight-color: #ffffff;
  39. scrollbar-shadow-color: #000000;
  40. scrollbar-arrow-color: #0000ff;
  41. scrollbar-base-color: #6699ff;
  42. scrollbar-dark-shadow-color: #6699ff;
  43. }
  44. </STYLE>
  45. 去掉超连接的下划线:
  46. 插在<body></body>之间
  47. <STYLE type=text/css>
  48. <!-
  49. a:link{text-decoration:none}
  50. a:hover{text-decoration:none}
  51. a:visited{text-decoration:none}
  52. ->
  53. </STYLE>
原创粉丝点击