<script language="javascript">
<!--
if(screen.width > 800){
var screenad=screen.width-135;
document.write('<DIV ID="Layer_ad" STYLE="position:absolute; width:110; height:300; z-index:1; left: 0px; top: 140px"><a href=http://adv.pconline.com.cn/adpuba/click?adid=15930&id=pc.sy.banner.duilian. target=_blank><img src=http://image.pconline.com.cn/images/200510/notebook_110x300.gif WIDTH=110 HEIGHT=300 border=0></a></DIV>');
document.write('<DIV ID="Layer_ad" STYLE="position:absolute; width:110; height:300; z-index:1; left: '+screenad+'px; top: 140px"><a href=http://adv.pconline.com.cn/adpuba/click?adid=15930&id=pc.sy.banner.duilian. target=_blank><img src=http://image.pconline.com.cn/images/200510/notebook_110x300.gif WIDTH=110 HEIGHT=300 border=0></a></DIV>');
}//-->
</script>
<!--
if(screen.width > 800){
var screenad=screen.width-135;
document.write('<DIV ID="Layer_ad" STYLE="position:absolute; width:110; height:300; z-index:1; left: 0px; top: 140px"><a href=http://adv.pconline.com.cn/adpuba/click?adid=15930&id=pc.sy.banner.duilian. target=_blank><img src=http://image.pconline.com.cn/images/200510/notebook_110x300.gif WIDTH=110 HEIGHT=300 border=0></a></DIV>');
document.write('<DIV ID="Layer_ad" STYLE="position:absolute; width:110; height:300; z-index:1; left: '+screenad+'px; top: 140px"><a href=http://adv.pconline.com.cn/adpuba/click?adid=15930&id=pc.sy.banner.duilian. target=_blank><img src=http://image.pconline.com.cn/images/200510/notebook_110x300.gif WIDTH=110 HEIGHT=300 border=0></a></DIV>');
}//-->
</script>
解决方案 »
- 我设置的全部变量是不是用不了!还是不能用
- 求助,滚动图片,如何选中到指定位置
- 请问如何JavaScript编写在文本框插入表情符号的代码?
- 求:一个js的日历控件(兼容与IE和FireFox)
- 【Firefox】■■■■ 做个调查,大家做的页面都支持 Firefox 吗?
- 请高手帮我看看这个页面的JavaScript效果!!
- 如何在javascript访问一个页面?
- 请问如何将窗口固定大小?
- jquery 新手问题. $('myImg') 和$('myImg')[0] 有什么区别, 请讲白道理,谢谢.例子: <img id="myImg">
- EXT---Uncaught TypeError: Cannot call method 'createChild' of null ext-all.js:76
- ·如何才能使IE浏览器中的另存为失效?
- 新手请教javascript有没有手册,类似于C++的MSDN和Java的jdk帮助文档
<SCRIPT language=javascript src=js/flr.js></SCRIPT>
<SCRIPT language=javascript src=js/fll.js></SCRIPT>---------------------------flr.js------------------------------------
var imgheight
document.ns = navigator.appName == Netscape
window.screen.width>800 ? imgheight=100:imgheight=120
function myload()
{
if (navigator.appName == Netscape)
{document.dangdang.pageY=pageYOffset+window.innerHeight-imgheight-0;
document.dangdang.pageX=+window.innerWidth-107;
mymove();
}
else
{
dangdang.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight-0;
dangdang.style.left=document.body.offsetWidth-107;
mymove();
}
}
function mymove()
{
if(document.ns)
{
document.dangdang.top=pageYOffset+window.innerHeight-imgheight-0;
document.dangdang.left=pageXOffset+window.innerWidth-107;
setTimeout(mymove();,50)
}
else
{
dangdang.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight-0;
dangdang.style.left=document.body.scrollLeft+document.body.offsetWidth-107;
setTimeout(mymove();,50)
}
}function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName==Netscape)&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true) if (navigator.appName == Netscape)
{
document.write(<layer id=dangdang top=300 width=80 height=80><a target='_blank' href='http://images.sohu.com/cs/minisite/shouxin07/index.htm'><img border='0' src='../guanggao/8080.GIF' width='80' height='80'></a></layer>);
myload()}
else
{
document.write(<div id=dangdang style='position: absolute;width:80;top:300;left:5;visibility: visible;z-index: 1'><a target='_blank' href='http://images.sohu.com/cs/minisite/shouxin07/index.htm'><img border='0' src='../guanggao/8080.GIF' width='80' height='80'></a></div>);
myload()
}-------------------------fll.js--------------------------------------
var imgheight
var imgleft
document.ns = navigator.appName == Netscape
window.screen.width>800 ? imgheight=110:imgheight=110
window.screen.width>800 ? imgleft=5:imgleft=5
function myload()
{
if (navigator.appName == Netscape)
{document.myleft.pageY=pageYOffset+window.innerHeight-imgheight;
document.myleft.pageX=imgleft;
leftmove();
}
else
{
myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myleft.style.left=imgleft;
leftmove();
}
}
function leftmove()
{
if(document.ns)
{
document.myleft.top=pageYOffset+window.innerHeight-imgheight
document.myleft.left=imgleft;
setTimeout(leftmove();,80)
}
else
{
myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myleft.style.left=imgleft;
setTimeout(leftmove();,80)
}
}function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName==Netscape)&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)if (navigator.appName == Netscape)
{
document.write(<layer id=myleft top=300 width=80 height=80><a target='_blank' href='http://www.polocars.com/'><img border='0' src='../guanggao/polosx-hp-mv.gif' width='80' height='80'></a></layer>);
myload()}
else
{
document.write(<div id=myleft style='position: absolute;width:80;top:300;left:5;visibility: visible;z-index: 1'><a target='_blank' href='http://www.polocars.com/'><img border='0' src='../guanggao/polosx-hp-mv.gif' width='80' height='80'></a></div>);
myload()
}
www.bjcan.com/hengxing