导航:首页 > 万维百科 > 网页设计怎么把文字右下角

网页设计怎么把文字右下角

发布时间:2020-12-18 21:24:22

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封面,使大标题竖着写且在页面中间,右下角可以加上自己的信息,如班级,姓名等。谢谢!!

使用文本框。插入---文本框----竖排,调整字体字号,在文本框格式的版式中去掉嵌入型,可以移到任意位置。右下角也插入一个文本框。

与网页设计怎么把文字右下角相关的知识