关于浮动广告和DOCTYPE标签问题,急~在线等待
页面中只要加入了
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<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.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
if (window.screen.width <810){
document.getElementById('divStayTopLeft').style.display = 'none';}
</script>