Home > Web Front-end > HTML Tutorial > Someone who knows DIV, please help me change this program to div instead of using the previous table. 3Q! _html/css_WEB-ITnose

Someone who knows DIV, please help me change this program to div instead of using the previous table. 3Q! _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:25:11
Original
1017 people have browsed it

<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" height="41" 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") %>" width="150" height="110" 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>
Copy after login


Reply to the discussion (solution)

Don’t understand It’s too troublesome. . . . . . . . . . . . .

I guess no one will help you draw it. Just follow this page and draw it yourself with div

How do I put it? I personally feel that no matter what it is, you can learn it if you don’t know it, and you can ask if you don’t understand it. Don’t rely on others to show it. If you need it or are interested, I suggest you buy some books or there are teaching materials online for self-study

For your sake, 3q calls will take a few hours
This is unscientific

I guess No one will help you modify it. This takes too much time. Please modify it yourself first. If you have any questions, please ask

I will modify it myself first

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template