请懂DIV的大神帮吧这段程序改成div的,不用以前的table了。3Q!_html/css_WEB-ITnose

WBOY
Freigeben: 2016-06-24 12:25:11
Original
1006 Leute haben es durchsucht

<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0" class="index">  <tr>    <td width="353" height="219" valign="top" background="images/xalhbl_153.jpg" bgcolor="#FFFFFF"><table width="100%" height="212" border="0" align="center" cellpadding="0" cellspacing="0">      <tr>        <td height="212"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="td">              <tr>                <td height="197" align="center" valign="top"><ul class="menu_zzjs_net">     <li class="this_zzjs"><a href="qynews.asp" class="STYLE6">签约新闻</a></li>     <li><a href="news.asp" class="STYLE6">公司新闻</a></li> </ul> <div class="sub_zzjs">  <ul style="display:block;"> <div id=link_bir style="OVERFLOW: hidden; WIDTH: 330px; HEIGHT: 160px">  <div id=link_bir1 style="OVERFLOW: hidden">   <table width="86%" border="0" align="center" cellpadding="0" cellspacing="0" background="images/dian4.jpg">     <% 		dim rsb		set rsb=server.createobject("adodb.recordset")sql1="select top 12 * from news1 where bigclassname='签约新闻' order by id desc"rsb.open sql1,conn,1,1 %>     <% while not rsb.eof and not rsb.bof  %>     <tr>       <td width="7%" height="28" align="center"> </td>       <td width="93%" valign="middle"><a href="shownews_new1.asp?id=<%= rsb("id") %>" target="_blank"><span class="STYLE6"><%= left(rsb("title"),30) %> </span></a></td>     </tr>     <% rsb.movenext 	wend %>   </table> </div>  <div id=link_bir2></div></div><script> var speed=65  link_bir2.innerHTML=link_bir1.innerHTML    function Marquee5(){	  if(link_bir2.offsetTop-link_bir.scrollTop<=0)	     link_bir.scrollTop-=link_bir1.offsetHeight		   else{		    link_bir.scrollTop++			   }			      }				     var MyMar5=setInterval(Marquee5,speed)					    link_bir.onmouseover=function() {clearInterval(MyMar5)}						   link_bir.onmouseout=function() {MyMar5=setInterval(Marquee5,speed)}</script> </ul> <ul><table width="86%" border="0" align="center" cellpadding="0" cellspacing="0" background="images/dian4.jpg">     <% 		dim rsb1		set rsb1=server.createobject("adodb.recordset")sql1="select top 5 * from news1 where bigclassname='公司新闻' order by id desc"rsb1.open sql1,conn,1,1 %>     <% while not rsb1.eof and not rsb1.bof  %>     <tr>       <td width="7%" height="28" align="center"> </td>       <td width="93%" valign="middle"><a href="shownews_new.asp?id=<%= rsb1("id") %>" target="_blank"><span class="STYLE6"><%= left(rsb1("title"),30) %> </span></a></td>     </tr>     <% rsb1.movenext 	wend %>   </table> </ul></div><script>function $_class(name){ var elements = document.getElementsByTagName("*"); for(s=0;s<elements.length;s++){  if(elements[s].className==name){   return  elements[s];  } }}//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。//tab effectsvar tabList = $_class("menu_zzjs_net").getElementsByTagName("li") tabCon = $_class("sub_zzjs").getElementsByTagName("ul");for(i=0;i<tabList.length;i++){ (function(){  var t = i;  tabList[t].onmouseover = function(){   for(o=0;o<tabCon.length;o++){    tabCon[o].style.display = "none";    tabList[o].className = "";    if(t==o){     this.className = "this_zzjs";     tabCon[o].style.display = "block";    }   }  } })()}//欢迎来到站z长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。</script></td>              </tr>                  </table></td>        </tr>    </table></td>    <td valign="top" bgcolor="#FFFFFF"><table  border="0" align="center" cellpadding="0" cellspacing="0">      <tr>        <td><img src="images/xalhbl_14.jpg" alt="" width="649"    style="max-width:90%" border="0" usemap="#Map" /></td>      </tr>    </table>      <table border="0" align="center" cellpadding="0" cellspacing="0">        <tr>          <td height="178" valign="top" background="images/xalhbl_16.jpg"><table  border="0" cellspacing="0" cellpadding="0">            <tr>              <td> </td>            </tr>          </table>            <table border="0" align="center" cellpadding="0" cellspacing="0" class="td">              <tr>                <td width="52" height="145"> </td>                <td width="550"><TABLE style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid" cellSpacing=0 cellPadding=0 width=100% align=center border=0>                  <TBODY>                    <TR>                      <TD valign="middle"><DIV id="demo" style="OVERFLOW: hidden; WIDTH: 98%; COLOR: #ffffff" onmouseover="iScrollAmount=0" onmouseout="iScrollAmount=1">                          <TABLE cellSpacing=0 cellPadding=0 align=left border=0 cellspace="0">                            <TBODY>                              <TR>                                <TD width="196" vAlign=top id="demo1"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="0">                                    <% dim rszxun8,m	    set rszxun8=server.CreateObject("ADODB.Recordset")		sql="select top 50 * from Product order by ArticleID desc"		rszxun8.Open sql,conn,1,1%>                                    <% if rszxun8.bof and  rszxun8.eof then %>                                    <% response.write "  没有内容" %>                                    <% else %>                                    <%  m=1while not rszxun8.eof and not rszxun8.bof								 %>                                    <% if m mod 50 = 1  then 	  response.Write("<tr>")	  end if%>                                  <td height="136" align="center" valign="middle"><table width="211" border="0" align="center" cellpadding="0" cellspacing="0" class="td1">                                    <tr>                                      <td width="211" align="center"><table width="298" height="131" border="0" cellpadding="0" cellspacing="0">                                        <tr>                                          <td width="298" height="131" valign="top" background="images/tu_0.jpg"><table width="293" height="116" border="0" align="center" cellpadding="0" cellspacing="0">                                            <tr>                                              <td width="164" height="112" rowspan="2" align="center" valign="middle" background="images/kuang.jpg" class="td11"><a href="productshow.asp?ArticleID=<%= rszxun8("ArticleID") %>"><img  src="<%= rszxun8("PhotoUrl") % alt="请懂DIV的大神帮吧这段程序改成div的,不用以前的table了。3Q!_html/css_WEB-ITnose" >" width="150"    style="max-width:90%" border="0" /></a></td>                                              <td width="129" height="28" align="center" valign="bottom" class="td11 STYLE6"><%= rszxun8("title") %> </td>                                            </tr>                                            <tr>                                              <td height="88" valign="top" class="td11"> <span class="STYLE6"> <a href="productshow.asp?ArticleID=<%= rszxun8("ArticleID") %>"><%= left(rszxun8("Memo"),30) %>....</a></span></td>                                            </tr>                                          </table></td>                                        </tr>                                      </table></td>                                    </tr>                                  </table></td>                        <%  if m mod 50 = 0 then 	response.Write("</tr>") 	end if %>                        <% rszxun8.movenext		m = m+1				wend %><% end if %>                                                  </table></TD>                                <span><TD width="27" vAlign=top id="demo2"> </TD></span>                              </TR>                            </TBODY>                        </TABLE>                      </DIV><SCRIPT type="text/javascript">/*var speed3=15//速度数值越大速度越慢demo2.innerHTML=demo1.innerHTMLfunction Marquee(){if(demo2.offsetWidth-demo.scrollLeft<=0)demo.scrollLeft-=demo1.offsetWidthelse{demo.scrollLeft++}}var MyMar=setInterval(Marquee,speed3)demo.onmouseover=function() {clearInterval(MyMar)}demo.onmouseout=function() {MyMar=setInterval(Marquee,speed3)}*//*var speed3 = 20; //判断浏览器类型var isMSIE = (navigator.appName == "Microsoft Internet Explorer");//滚动对象 var oMarquee = document.getElementById("demo");//内容对象 var omqdemo = document.getElementById("demo2");var w = oMarquee.offsetWidth;var odl = omqdemo.offsetWidth;var x = parseInt(w/odl)+1;for(var i=0;i<x;i++){	var o = omqdemo.cloneNode(true);	oMarquee.appendChild(o);}var iScrollAmount = 1function scroll(){	oMarquee.scrollLeft += iScrollAmount;	var ol = oMarquee.scrollLeft;	//IE和FF的位置有不同	if(isMSIE){		if(odl-ol<=0){			oMarquee.scrollLeft = 0;		}	}else{		if(odl-ol<=-10){			oMarquee.scrollLeft = 2;		}	}}var MyMar = window.setInterval(scroll,speed3); */</SCRIPT>                      </TD>                    </TR>                  </TBODY>                </TABLE></td>                <td width="47"> </td>              </tr>            </table></td>        </tr>      </table></td>  </tr></table>
Nach dem Login kopieren


回复讨论(解决方案)

 不懂 太麻烦。。。。。。。。。。。。。

估计没人帮你画,自己照着这个页面,用div画吧

怎么说呢 个人觉得不管是什么事情 不会的可以学 不懂的可以问 单纯的靠别人不显示 如果需要或者感兴趣 建议LZ可以买些书 或者网上也有教材可以自学下

为了你一句 3q 话费几个小时
这个不科学啊

估计没人帮你修改的,这个太花时间了,自己先改改,有什么问题在问问

我自己先改改

Quelle:php.cn
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage