1、怎樣做右下角彈出框?在網頁中製作。
<script>
var oPopup = window.createPopup();
var popTop=50;
function popmsg(msgstr){
var winstr="<table style=\"border: 1 solid #6D93C8\" width=\"241\" height=\"172\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >";
winstr+="<tr><td height=\"30\"> </td></tr><tr><td align=\"center\"><table width=\"90%\" height=\"110\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
winstr+="<tr><td valign=\"top\" style=\"font-size:12px; color: #6D93C8; face: Tahoma\">"+msgstr+"</td></tr></table></td></tr></table>";
oPopup.document.body.innerHTML = winstr;
popshow();
}
function popshow(){
window.status=popTop;
if(popTop>1720){
clearTimeout(mytime);
oPopup.hide();
return;
}else if(popTop>1520&&popTop<1720){
oPopup.show(screen.width-250,screen.height,241,1720-popTop);
}else if(popTop>1500&&popTop<1520){
oPopup.show(screen.width-250,screen.height+(popTop-1720),241,172);
}else if(popTop<180){
oPopup.show(screen.width-250,screen.height,241,popTop);
}else if(popTop<220){
oPopup.show(screen.width-250,screen.height-popTop,241,172);
}
popTop+=10;
var mytime=setTimeout("popshow();",200);
}
popmsg("歡迎進入蘇某人的傳奇世界!");
</script>
2、網頁中右下角彈出的flash廣告怎麼嵌入的,怎樣把自己製作的flash嵌入到網上
這個在dreamweaver裡面按 CTRL+ALT+F 即可插入flash媒體文件
至於flash在右下角彈出的話,需要js來解決
建議先學習相關知識
3、我想利用javascript製作一個在網頁右下角出現的浮動窗口,窗口裡面是2分鍾的倒計時,時間一到就轉到另一個
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文檔</title>
<script type="text/javascript">
function foo(){
var s=document.getElementById('m').innerHTML;
if(s==0){document.getElementById('d1').style.display='none'; document.getElementById('d2').style.display='block'; return;}
document.getElementById('m').innerHTML=s-1;
t=setTimeout('foo()',1000);
}
</script>
<body onload="foo()">
<div id="d1" style="position:absolute; right:0px; bottom:0px; border:1px solid #666; width:200px; height:100px; background-color:#FFFFBF; display:block;">第一個窗口,<br />倒計時<span id="m">120</span>秒</div>
<div id="d2" style="position:absolute; right:0px; bottom:0px; border:1px solid #666; width:200px; height:100px; background-color:#FFFFBF; display:none;">第二個窗口</div>
</body>
</html>
4、製作網頁如何做出「返回頂部」圖標並固定在頁面右下的位置?
<!DOCTYPE HTML>
<html>
<head>
<meta charset=UTF-8>
<title>SCROLL</title>
<style type="text/css">
</style>
<script type="text/javascript">
var goToWhere = function (where)
{
var me = this;
clearInterval (me.interval);
me.site = [];
var dom = !/.*chrome.*/i.test (navigator.userAgent) ? document.documentElement : document.body;
var height = !!where ? dom.scrollHeight : 0;
me.interval = setInterval (function ()
{
var speed = (height - dom.scrollTop) / 16;
if (speed == me.site[0])
{
clearInterval (me.interval);
return null;
}
dom.scrollTop += speed;
me.site.unshift (speed);
}, 16);
};
</script>
</head>
<body>
<div style="height: 1000px; text-align: center; font-size: 200px; font-weight: bold;">5</div>
<div style="height: 1000px; text-align: center; font-size: 200px; font-weight: bold;">4</div>
<div style="height: 1000px; text-align: center; font-size: 200px; font-weight: bold;">3</div>
<div style="height: 1000px; text-align: center; font-size: 200px; font-weight: bold;">2</div>
<div style="height: 1000px; text-align: center; font-size: 200px; font-weight: bold;">1</div>
<div style="height: 1000px; text-align: center; font-size: 200px; font-weight: bold;">0</div>
<div id="back-up" onclick="goToWhere(0)"
style="border: 1px solid red; height: 100px; width: 15px; position: fixed; cursor: pointer; right: 10px; bottom: 150px;">返回頂部</div>
<div id="back-up" onclick="goToWhere(1)"
style="border: 1px solid red; height: 100px; width: 15px; position: fixed; cursor: pointer; right: 10px; bottom: 30px;">返回底部</div>
</body>
</html>
5、簡述網頁設計中,如何使用CSS定位相關的屬性來設置實現將某個網頁元素定位在當前瀏覽器窗口的右下角?
body設置 position 相對定位, 要放在右下角的元素 position設置絕對定位 然後 left :0; bottom:0 就差不不多了
6、用dream weaver (dw)製作網頁,可以彈出小廣告窗的那種,在右下角,有人可以告訴代碼嗎
JS 特效小廣告 特效自己找,百度有你需要的幫你找一個剩下的你自己找
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<style type="text/css">
div{
position:absolute;
}
</style>
</head>
<body>
<div id="floatdiv">
<img src="1.jpg" height="100px" width="200px">
</div>
</body>
</html>
<script language="javascript" type="text/javascript">
/*
利用window對象,實現浮動效果
1、有一個div,就是我們要控制的,它的起始點坐標(0,0)
2、設定橫向和縱向的速度
3、控制div移動
1)div是否到達邊界,設置圖片速度反向移動
*/
//獲取圖片所在的div對象
var img=document.getElementById("floatdiv");
//設置div起始點坐標
var x=0,y=0;
//設置div行進速度
var xSpeed=2,ySpeed=1;
//設置圖片移動
var w=document.body.clientWidth-200,h=document.body.clientHeight-100;
function floatdiv(){
//比較圖片是否到達邊界,如查到達邊界 改變方向;如未到達邊界
if(x>w||x<0) xSpeed= -xSpeed;
if(y>h||y<0) ySpeed= -ySpeed;
x+=xSpeed;
y+=ySpeed;
//設置坐標值,起始坐標+速度
img.style.top=y+"px";
img.style.left=x+"px";
setTimeout("floatdiv()",10);
}
floatdiv();
</script>
7、在網頁設計中怎樣把時間設在右下角
你可以在右下角單獨放過div層,然後再那裡面寫入顯示時間程序不就可以了
8、怎樣做右下角彈出框?在網頁中製作。
暈,有木馬也是別的地方感染的,那個彈出廣告有時候也提示網費問題的,下不掉的。
9、在網頁設計中 那種一幅圖片 右下角 有1、2、3、4不停 跳轉 的動畫怎麼製作
這是用javascript腳本語言(俗稱js)實現的,網上有現成的js代碼,你直接搜 網站幻燈片 效果 代碼,就能出來一大堆了。
10、如何製作個word封面,使大標題豎著寫且在頁面中間,右下角可以加上自己的信息,如班級,姓名等。謝謝!!
使用文本框。插入---文本框----豎排,調整字體字型大小,在文本框格式的版式中去掉嵌入型,可以移到任意位置。右下角也插入一個文本框。