请教高手:如何让网页中的某个表格或图片置顶在桌面上,即不管用户打开多少个IE窗口,只要用户不关掉这个网页,尽管用户打开了其他网站,这个网页中的表格或图片一直在桌面最上面始终让用户看得到,用什么方法可以做到呢,请帮忙给个示例,非常感谢

解决方案 »

  1.   


    function reloadPage(init) { //reloads the window if Nav4 resized
    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
    else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
    }
    reloadPage(true);
    var imagepath="http://www.blueidea.com/articleimg/bbsimg/topic5.gif" 
    var imagewidth=200 //这两行写图片的大小 
    var imageheight=80 
    var speed=3; 
    var imageclick="http://www.blueidea.com/articleim ... c5.gif" //这里写点击图片连接到的地址 
    var hideafter=0 
    var isie=0; 
    if(window.navigator.appName=="Microsoft Internet Explorer"&&window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf("MSIE")+8)>=5.5) { 
    isie=1; 

    else { 
    isie=0; 

    if(isie){ 
    var preloadit=new Image() 
    preloadit.src=imagepath 

    function pop() { 
    if(isie) { 
    x=x+dx;y=y+dy; 
    oPopup.show(x, y, imagewidth, imageheight); 
    if(x+imagewidth+5>screen.width) dx=-dx; 
    if(y+imageheight+5>screen.height) dy=-dy; 
    if(x<0) dx=-dx; 
    if(y<0) dy=-dy; 
    startani=setTimeout("pop();",50); 


    function dismisspopup(){ 
    clearTimeout(startani) 
    oPopup.hide() 

    function dowhat(){ 
    if (imageclick=="dismiss") 
    dismisspopup() 
    else 
    window.open(imageclick); 

    if(isie) { 
    var x=0,y=0,dx=speed,dy=speed; 
    var oPopup = window.createPopup(); 
    var oPopupBody = oPopup.document.body; 
    oPopupBody.style.cursor="hand" 
    oPopupBody.innerHTML = '<IMG SRC="'+preloadit.src+'">'; 
    oPopup.document.body.onmouseover=new Function("clearTimeout(startani)") 
    oPopup.document.body.onmouseout=pop 
    oPopup.document.body.onclick=dowhat 
    pop(); 
    if (hideafter>0) 
    setTimeout("dismisspopup()",hideafter*1000) 
    }
    //仅IE支持...