碧海潮声大学生网

标题: 〖原创我想学制作动态网叶,请指教 [打印本页]

作者: 恋风尘    时间: 2005-11-1 22:49
提示: 作者被禁止或删除 内容自动屏蔽
作者: 笨笨啊    时间: 2005-11-1 23:42
想学asp还是php?
作者: LovGate    时间: 2005-11-2 08:29
来问我好了

虽然我市、是菜鸟,可以教你

最好是当面教,不然很难说清楚的

找找我的帖子

也许对你有用
作者: 你爱我像谁    时间: 2005-11-2 13:25
浮动窗口的代码是什么么啊
有那个什么HTML啊呵呵
高我下啊,谢谢了
作者: 我来啦~    时间: 2005-11-2 13:36
这个是js的代码,你在首页上抄过去就行了:)
作者: 恋风尘    时间: 2005-11-2 13:53
提示: 作者被禁止或删除 内容自动屏蔽
作者: 笨笨啊    时间: 2005-11-2 13:57
asp一般是用vbscript作为服务器角本的,你要会一些vb,当然,最重要的是html的基础

php是另外一门技术,语法和c有些像,但执行效率要比asp高好一些

jsp对大型网站会好一些,其执行速度最快

asp可以用iis建,php一般用apache+php5或php4,jsp可以选择tomcat
当然,asp一般是基于mdb数据库的居多,php一般是文本存储或mysql的居多
作者: 笨笨啊    时间: 2005-11-2 13:57
PS。我还有一年才毕业,今年大四
作者: 笨笨啊    时间: 2005-11-2 14:01
标题: 首页浮动图片角本
下面是引用我来啦~于2005-11-02 13:36发表的:
这个是js的代码,你在首页上抄过去就行了:)
  1. <SCRIPT LANGUAGE="JavaScript">
  2. <!-- Begin
  3. var isNS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));
  4. var _all = &#39;&#39;;
  5. var _style = &#39;&#39;;
  6. var wwidth, wheight;
  7. var ydir = &#39;++&#39;;
  8. var xdir = &#39;++&#39;;
  9. var id1, id2, id3;
  10. var x = 1;
  11. var y = 1;
  12. var x1, y1;
  13. if(!isNS) {
  14. _all=&#39;all.&#39;;
  15. _style=&#39;.style&#39;;
  16. }
  17. function getwindowsize() {
  18. clearTimeout(id1);
  19. clearTimeout(id2);
  20. clearTimeout(id3);
  21. if (isNS) {
  22. wwidth = window.innerWidth - 55;
  23. wheight = window.innerHeight - 50;
  24. } else {
  25. wwidth = document.body.clientWidth - 55;
  26. wheight = document.body.clientHeight - 50;
  27. }
  28. id3 = setTimeout(&#39;randomdir()&#39;, 20000);
  29. animate();
  30. }
  31. function randomdir() {
  32. if (Math.floor(Math.random()*2)) {
  33. (Math.floor(Math.random()*2)) ? xdir=&#39;--&#39;: xdir=&#39;++&#39;;
  34. } else {
  35. (Math.floor(Math.random()*2)) ? ydir=&#39;--&#39;: ydir=&#39;++&#39;;
  36. }
  37. id2 = setTimeout(&#39;randomdir()&#39;, 20000);
  38. }
  39. function animate() {
  40. eval(&#39;x&#39;+xdir);
  41. eval(&#39;y&#39;+ydir);
  42. if (isNS) {
  43. pic1.moveTo((x+pageXOffset),(y+pageYOffset))
  44. } else {
  45. pic1.pixelLeft = x+document.body.scrollLeft;
  46. pic1.pixelTop = y+document.body.scrollTop;
  47. }
  48. if (isNS) {
  49. if (pic1.top <= 5+pageYOffset) ydir = &#39;++&#39;;
  50. if (pic1.top >= wheight+pageYOffset) ydir = &#39;--&#39;;
  51. if (pic1.left >= wwidth+pageXOffset) xdir = &#39;--&#39;;
  52. if (pic1.left <= 5+pageXOffset) xdir = &#39;++&#39;;
  53. } else {
  54. if (pic1.pixelTop <= 5+document.body.scrollTop) ydir = &#39;++&#39;;
  55. if (pic1.pixelTop >= wheight+document.body.scrollTop) ydir = &#39;--&#39;;
  56. if (pic1.pixelLeft >= wwidth+document.body.scrollLeft) xdir = &#39;--&#39;;
  57. if (pic1.pixelLeft <= 5+document.body.scrollLeft) xdir = &#39;++&#39;;
  58. }
  59. id1 = setTimeout(&#39;animate()&#39;, 30);
  60. }
  61. //  End -->
  62. </script>
  63. <style type="text/css">
  64. <!--
  65. .style1 {color: #FF0000}
  66. -->
  67. </style>
  68. </head>
  69. <LINK
  70. href="css.css" type=text/css rel=stylesheet>
  71. <div id="pic1" style="position:absolute; visibility:visible; left:0px; top:0px; z-index:1">
  72. <a href="wish.php" target=_blank><img src="image/temp/xuyuan.gif" border=0></a>
  73. </div>
  74. <script language="javascript">
  75. var pic1=eval(&#39;document.&#39;+_all+&#39;pic1&#39;+_style);
  76. </script>
  77. </head>
  78. <BODY leftMargin=0 topMargin=0 background="01img/bg01.jpg" onLoad="getwindowsize()" OnResize="getwindowsize()">
  79. </body>
  80. <style type="text/css">
  81. #floater {
  82. position: absolute;
  83. left: 500;
  84. top: 146;
  85. width: 125;
  86. visibility: visible;
  87. z-index: 10;
  88. }</style>
  89. <!-- <div ID="floater" style="left: 0px; top: 300px">
  90. <p align="center">
  91. <img SRC="01img\left.gif" border="0">
  92. </div> --><script LANGUAGE="JavaScript">
  93. self.onError=null;
  94. currentX = currentY = 0;
  95. whichIt = null;
  96. lastScrollX = 0; lastScrollY = 0;
  97. NS = (document.layers) ? 1 : 0;
  98. IE = (document.all) ? 1: 0;
  99. <!-- STALKER CODE -->
  100. function heartBeat() {
  101. if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
  102. if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
  103. if(diffY != lastScrollY) {
  104. percent = .1 * (diffY - lastScrollY);
  105. if(percent > 0) percent = Math.ceil(percent);
  106. else percent = Math.floor(percent);
  107. if(IE) document.all.floater.style.pixelTop += percent;
  108. if(NS) document.floater.top += percent;
  109. lastScrollY = lastScrollY + percent;
  110. }
  111. if(diffX != lastScrollX) {
  112. percent = .1 * (diffX - lastScrollX);
  113. if(percent > 0) percent = Math.ceil(percent);
  114. else percent = Math.floor(percent);
  115. if(IE) document.all.floater.style.pixelLeft += percent;
  116. if(NS) document.floater.left += percent;
  117. lastScrollX = lastScrollX + percent;
  118. }
  119. }
  120. <!-- /STALKER CODE -->
  121. <!-- DRAG DROP CODE -->
  122. function checkFocus(x,y) {
  123. stalkerx = document.floater.pageX;
  124. stalkery = document.floater.pageY;
  125. stalkerwidth = document.floater.clip.width;
  126. stalkerheight = document.floater.clip.height;
  127. if( (x > stalkerx && x < (stalkerx+stalkerwidth)) && (y > stalkery && y < (stalkery+stalkerheight))) return true;
  128. else return false;
  129. }
  130. function grabIt(e) {
  131. if(IE) {
  132. whichIt = event.srcElement;
  133. while (whichIt.id.indexOf("floater") == -1) {
  134. whichIt = whichIt.parentElement;
  135. if (whichIt == null) { return true; }
  136. }
  137. whichIt.style.pixelLeft = whichIt.offsetLeft;
  138. whichIt.style.pixelTop = whichIt.offsetTop;
  139. currentX = (event.clientX + document.body.scrollLeft);
  140. currentY = (event.clientY + document.body.scrollTop);  
  141. } else {
  142. window.captureEvents(Event.MOUSEMOVE);
  143. if(checkFocus (e.pageX,e.pageY)) {
  144. whichIt = document.floater;
  145. StalkerTouchedX = e.pageX-document.floater.pageX;
  146. StalkerTouchedY = e.pageY-document.floater.pageY;
  147. }
  148. }
  149. return true;
  150. }
  151. function moveIt(e) {
  152. if (whichIt == null) { return false; }
  153. if(IE) {
  154. newX = (event.clientX + document.body.scrollLeft);
  155. newY = (event.clientY + document.body.scrollTop);
  156. distanceX = (newX - currentX);   distanceY = (newY - currentY);
  157. currentX = newX;   currentY = newY;
  158. whichIt.style.pixelLeft += distanceX;
  159. whichIt.style.pixelTop += distanceY;
  160. if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop;
  161. if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft;
  162. if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20;
  163. if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;
  164. event.returnValue = false;
  165. } else {
  166. whichIt.moveTo(e.pageX-StalkerTouchedX,e.pageY-StalkerTouchedY);
  167. if(whichIt.left < 0+self.pageXOffset) whichIt.left = 0+self.pageXOffset;
  168. if(whichIt.top < 0+self.pageYOffset) whichIt.top = 0+self.pageYOffset;
  169. if( (whichIt.left + whichIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) whichIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17;
  170. if( (whichIt.top + whichIt.clip.height) >= (window.innerHeight+self.pageYOffset-17)) whichIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17;
  171. return false;
  172. }
  173. return false;
  174. }
  175. function dropIt() {
  176. whichIt = null;
  177. if(NS) window.releaseEvents (Event.MOUSEMOVE);
  178. return true;
  179. }
  180. <!-- DRAG DROP CODE -->
  181. if(NS) {
  182. window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);
  183. window.onmousedown = grabIt;
  184. window.onmousemove = moveIt;
  185. window.onmouseup = dropIt;
  186. }
  187. if(IE) {
  188. document.onmousedown = grabIt;
  189. document.onmousemove = moveIt;
  190. document.onmouseup = dropIt;
  191. }
  192. if(NS || IE) action = window.setInterval("heartBeat()",1);
  193. </script>
复制代码

作者: 恋风尘    时间: 2005-11-2 22:41
提示: 作者被禁止或删除 内容自动屏蔽
作者: 恋风尘    时间: 2005-11-2 22:46
提示: 作者被禁止或删除 内容自动屏蔽
作者: 笨笨啊    时间: 2005-11-2 23:53
下面是引用恋风尘于2005-11-02 22:41发表的:
啊??
我原以为你是以前大三的建环或者电气的学生呢
原来是我多算了一年哦呵呵
学什么呢,看来我得好好的思考下
谢谢拉

电气倒是说对了
是A02电气的
作者: 恋风尘    时间: 2005-11-3 12:00
提示: 作者被禁止或删除 内容自动屏蔽
作者: LovGate    时间: 2005-11-3 13:34
你把我的名字写错了

LovGate  看清了没有E

我 学了半个月

看看我的作品http://together.30mb.com/
作者: 恋风尘    时间: 2005-11-3 22:12
提示: 作者被禁止或删除 内容自动屏蔽
作者: 绝望领域    时间: 2005-11-3 22:27
呵呵,告诉你吧,学ASP吧,那东西比较容易入门的,JSP什么的搭建服务器还有些麻烦,ASP直接用操作系统盘装个IIS在设置下就行.另外网上有关ASP的源代码也比较多,可以用来参考.
作者: 绝望领域    时间: 2005-11-3 22:29
不过网页这方面的制作重点还是在美工设计,要做些电子商务用的么确实得用些工夫了,PHP安全行高些,,这方面对网络编程的技术需求高些.嘿嘿,我也就知道这些,
作者: LovGate    时间: 2005-11-4 06:47
昨天忘记说来

我是C03电气的

笨笨写得那段代码

是加在那个文件里的

我在msn\index试一下

没有成功
作者: 你爱我像谁    时间: 2005-11-4 11:05
我也是啊
好象是说什么有LO什么G什么文件的我
作者: 恋风尘    时间: 2005-11-4 19:28
提示: 作者被禁止或删除 内容自动屏蔽
作者: 笨笨啊    时间: 2005-11-4 22:50
下面是引用LovGate于2005-11-04 06:47发表的:
昨天忘记说来

我是C03电气的

笨笨写得那段代码
.......

哪段代码?
作者: LovGate    时间: 2005-11-4 23:49
今天成功了

看演示
http://together.30mb.com/

哈哈,做广告
作者: 笨笨啊    时间: 2005-11-4 23:52
是什么成功了?
作者: 笨笨啊    时间: 2005-11-4 23:54
下面是引用遗忘代码于2005-11-03 22:29发表的:
不过网页这方面的制作重点还是在美工设计,要做些电子商务用的么确实得用些工夫了,PHP安全行高些,,这方面对网络编程的技术需求高些.嘿嘿,我也就知道这些,

如果考虑美工的话,推荐用php
因为php独有的fasttemplate功能,可以让你的程序与美工分离,而不像asp、jsp一样是穿插的。
程序与美工分离最大的好处,就是模板的多样性,以及模板修改的方便。
程序员只要负责把所要显示的内容保存到变量中,而美工的只要做好页面,然后把要插入的地方写上相应的变量名就行了
作者: LovGate    时间: 2005-11-5 08:14
什么都可以了

只差加一些内容了
作者: 笨笨啊    时间: 2005-11-8 21:59
呵呵
什么意思啊,楼上的
作者: 菜饭+小排    时间: 2005-11-9 19:28
学编程,最重要的还是要坚持,想的多了,想学的多了.反而什么也学不好了...

其中ASP相对比较简单,网上资料也多,但也很杂~~

真正学好的一门,学其它的就更简单了...
作者: 笨笨啊    时间: 2005-11-9 23:25
同意楼上的




欢迎光临 碧海潮声大学生网 (http://www.zjoubbs.com/) Powered by Discuz! X3.2