佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1358|回复: 5

[复制链接]
TonyApricot 该用户已被删除
发表于 21-4-2004 10:36 PM | 显示全部楼层 |阅读模式
請問如何在網頁中加一個大大個的十字架?
像這樣子http://home.kimo.com.tw/fantasydreamdx01/

[ Last edited by TonyApricot on 23-8-2004 at 10:44 PM ]
回复

使用道具 举报


ADVERTISEMENT

TonyApricot 该用户已被删除
 楼主| 发表于 24-8-2004 12:09 PM | 显示全部楼层
請個位幫幫忙好不,
我真的很急!!!
回复

使用道具 举报

zealx 该用户已被删除
发表于 24-8-2004 12:41 PM | 显示全部楼层
喂,你可以試試在塗鴉區留言問站長啊:)
回复

使用道具 举报

发表于 24-8-2004 12:52 PM | 显示全部楼层

  1. <html>
  2. <script language="JavaScript1.2">  
  3.   
  4. <!--  
  5.   
  6. if (document.all&&!window.print){  
  7. leftright.style.width=document.body.clientWidth-2  
  8. topdown.style.height=document.body.clientHeight-2  
  9. }  
  10. else if (document.layers){  
  11. document.leftright.clip.width=window.innerWidth  
  12. document.leftright.clip.height=1  
  13. document.topdown.clip.width=1  
  14. document.topdown.clip.height=window.innerHeight  
  15. }  
  16.   
  17.   
  18. function followmouse1(){  
  19. //move cross engine for IE 4+  
  20. leftright.style.pixelTop=document.body.scrollTop+event.clientY+1  
  21. topdown.style.pixelTop=document.body.scrollTop  
  22. if (event.clientX<document.body.clientWidth-2)  
  23. topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1  
  24. else  
  25. topdown.style.pixelLeft=document.body.clientWidth-2  
  26. }  
  27.   
  28. function followmouse2(e){  
  29. //move cross engine for NS 4+  
  30. document.leftright.top=e.y+1  
  31. document.topdown.top=pageYOffset  
  32. document.topdown.left=e.x+1  
  33. }  
  34.   
  35. if (document.all)  
  36. document.onmousemove=followmouse1  
  37. else if (document.layers){  
  38. window.captureEvents(Event.MOUSEMOVE)  
  39. window.onmousemove=followmouse2  
  40. }  
  41.   
  42. function regenerate(){  
  43. window.location.reload()  
  44. }  
  45. function regenerate2(){  
  46. setTimeout("window.onresize=regenerate",400)  
  47. }  
  48. if ((document.all&&!window.print)||document.layers)  
  49. //if the user is using IE 4 or NS 4, both NOT IE 5+  
  50. window.onload=regenerate2  
  51. //-->  
  52. </script>
  53. <style>
  54. <!--
  55. #leftright, #topdown{
  56. position:absolute;
  57. left:0;
  58. top:0;
  59. width: 1px;
  60. height: 1px;
  61. layer-bockground-color:#B0D0F8;
  62. background-color:#CC0080;
  63. z-index: 100;
  64. font-size: 1px;
  65. }
  66. -->
  67. </style>
  68. </head>
  69. <body>
  70. <div id="leftright" style="width:expression(document.body.clientWidth-2)"></div>   
  71. <div id="topdown" style="height:expression(document.body.clientHeight-2)"></div>   
  72. </body>
  73. </html>
复制代码
回复

使用道具 举报

发表于 25-8-2004 04:26 AM | 显示全部楼层
其实你只要选择Menu Bar的 View -> Source 便可以看到他的Code了。

经常使用这个方法参考别人的code可以有助于提升自己
source.JPG
回复

使用道具 举报

TonyApricot 该用户已被删除
 楼主| 发表于 25-8-2004 05:55 PM | 显示全部楼层
謝謝!!!!!!!!!!!!
回复

使用道具 举报

Follow Us
您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 2-6-2024 08:15 PM , Processed in 0.068009 second(s), 28 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表