藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年8月25日 8:28

求:實現網頁上有一個漂浮的IE窗口,而非圖片,flash。

我希望實現網頁上有一個漂浮的窗口,而非圖片。是一個完整的IE窗口(一個完整的網頁)。
在網上找了一下..沒找到..
誰能告訴我能做出這樣的效果嗎?
代碼是什麼?
高手請進來幫忙。

是不是這樣?
[html]<html>
<head>
<script language="JavaScript">
function shake() {
        var x, y;
        x = parseInt((Math.random() - 0.5) * 100);
        y = parseInt((Math.random() - 0.5) * 100);
        window.moveBy(x, y);
        setTimeout("shake()", 800);
}
</script>
</head>
<body>
<button value="shake" onclick="shake()">
</body>
</html>[/html]

首先很謝謝你
但是我要的A網頁中有個B網頁
但是b網頁是漂浮在a網頁中.
b網頁的位置會變化.就qq插件一樣的那種

這種效果嗎?
[html]
<script>
showModelessDialog('http://google.com','width:100px;height:100px')
</script>
[/html]

上樓的,我怎麼看不到效果?

你也可做一個彈出頁面

[html]
<div id="floater" style="position:absolute;left:0;top:50;width:200;height:200"><iframe src="http://www.baidu.com" width=100% height=100%></iframe></div>
<script>
var d=2;
function float(){
  if(d>0)
    if(floater.style.posLeft+floater.clientWidth>=document.body.scrollLeft+document.body.clientWidth)
      d*=-1;
    else
      floater.style.posLeft+=d;
  else
    if(floater.style.posLeft<=document.body.scrollLeft)
      d*=-1;
    else
      floater.style.posLeft+=d;
  }
setInterval("float()",100);
</script>
[/html]

我知道了,你要的是這種效果,對吧
[html]<script>
// JavaScript Document
var imagepath="http://www.leadteam.cn/images/Logo88-31.gif";
var imagewidth=88;
var imageheight=31;

var speed=3;
var imageclick="http://www.NetCTO.com/";
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
}
var asdasd;

function pop() {
        clearTimeout(asdasd);
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 dis(){
        clearTimeout(startani);
        asdasd=setTimeout("dismisspopup();",3000);
}
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=dis//new Function("clearTimeout(startani)")
oPopup.document.body.onmouseout=pop;
oPopup.document.body.onclick=dismisspopup;//dowhat
pop();

if (hideafter>0)
setTimeout("dismisspopup()",hideafter*1000)
}
</script>
<A HREF="http://www.NetCTO.com/" TARGET=_blank>  順手做個廣告,◆立達網 ◆ ,我的CSS應用試點 :D</A>
[/html]

這個,一般不會被當成廣告過濾掉,不過著實有些令人討厭,所以從沒用過

怎麼做在dw裡面做呀?

非標的,而且一般不受瀏覽用戶歡迎,建議只是瞭解一下!




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com