日期:2014-05-17  浏览次数:20794 次

关于浮动广告和DOCTYPE标签问题,急~在线等待
页面中只要加入了
HTML code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

我的两侧滚动的广告就不能用,
但是去掉了话,我的jquery的某些功能就不能用。。。急求解决。。

或者谁能提供一个稳定的两侧滚动广告的代码呢?200分急求~ 解决了结贴

两侧滚动广告代码:

HTML code
 

<script>
var online= new Array();
if (!document.layers)
document.write(' <div id="divStayTopLeft" style="position:absolute">')
</script>

<layer id="divStayTopLeft1">

<TABLE id=table1 height=116 cellSpacing=0 cellPadding=0 width=116 border=0>
  <TBODY>
  <TR>
    <TD width=116 colSpan=3> <IMG src="./qq/onlineservice_02.gif" width="116" height="69" onclick="document.getElementById('divStayTopLeft').style.display = 'none';"> </TD>
  </TR>
  <TR>   
    <TD vAlign=top width=5 background=./qq/onlineservice_07.gif height=400> </TD>
    <TD vAlign=top width=106>
      <TABLE id=table6 cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
        <TD> <IFRAME border=0 name=qqonline src="./qq/qqonline.htm" frameBorder=0 width=106 scrolling=no height=400>浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。 </IFRAME> </TD>
        </TR>
        </TBODY>
        </TABLE>
        </TD>
    <TD width=5 background=./qq/onlineservice_05.gif height=400> <IMG height=50 alt="" src="./qq/onlineservice_05.gif" width=5> </TD> </TR>
  <TR>
    <TD width=116 colSpan=3> <IMG src="./qq/onlineservice_15.gif" alt="" width="116" height="37"> </TD>
  </TR> </TBODY> </TABLE>
</layer>

<script type="text/javascript">
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"
if (!document.layers)
document.write(' </div>')
function JSFX_FloatTopDiv()
{
var startX = window.screen.width-139;
startY = window.screen.height-188;
if (window.screen.width == 800)
{ startY = 330;
}
if (window.screen.width == 1280)
{ startX = window.screen.width-206;
}
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.sc