跪求富媒体。右下角浮动广告带关闭按钮的!! 跪求富媒体。右下角浮动广告带关闭按钮的!!就能写入到js里的。带关闭的跪求! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 jquery插件http://www.open-lib.com/Type/179-1.jsp其他的显示方式跟层没区别 http://blog.csdn.net/cj205/archive/2010/12/23/6093496.aspx 就是我投放广告放别人网站里。只给了一个js。!如果用那些代码放到一个js带关闭按钮可以啊? 这个网上很多的,怎么不找找?<!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> <title></title> <style type="text/css"> #winpop { width:200px; height:0px; position:absolute; right:0; bottom:0px; border:1px solid #99999; margin:0px; padding:1px; overflow:hidden; background:#fff; display:none; } div.title { width:100%; height:20px; line-height:20px; background:#290052; font-weight:bold; text-align:center; font-size:12px; color:#fff; } div.content { width:100%; height:80px; line-height:80px; font-weight:bold; font-size:12px; color:#ff0000; text-decoration:underline; text-align:center; border:1px solid #290052; } .close { position:absolute; right:4px; top:-1px; color:#fff; cursor:pointer; } #glide{background:yellow; border:1px solid blue; display:none;} </style> <script language="javascript" type="text/javascript"> var MsgPop; var popH; var oDiv; var oDivW; var oDivH; window.onload = function () { MsgPop = document.getElementById("winpop"); MsgPop.style.height = "0px"; tips_pop(); setTimeout("tips_pop()", 5000); } function tips_pop() { popH = parseInt(MsgPop.style.height); if (popH == 0) { MsgPop.style.display = "block"; show =setInterval("changeH('up')", 2); } else { hide = setInterval("changeH('down')", 2); } } function changeH(str) { popH = parseInt(MsgPop.style.height); if (str=="up") { if (popH <= 100) { MsgPop.style.height = (popH + 4).toString() + "px"; } else { clearInterval(show); } } if (str == "down") { if (popH >= 4) { MsgPop.style.height = (popH -4).toString() + "px"; } else { clearInterval(hide); MsgPop.style.display = "none"; } } } </script></head><body> <div id="winpop"> <div class="title"> 短消息<span class="close" onclick="tips_pop()">X</span> </div> <div class="content">未读消息(3)</div> </div></body></html> 上面的可以直接用js调用么?上面的可以直接用js调用么? 上面的可以直接用js调用么?上面的可以直接用js调用么?上面的可以直接用js调用么?上面的可以直接用js调用么? 楼主是不是要 js document.write 那种输出广告代码 初学jquery,代码读不懂... textarea如何获得某行数据 是高手就进来,用fileupload上传时的问题,急啊……在线等 如何取得document的高度/宽度 一个脚本的困惑??????? 我在一个页面中使用为什么iframe.window来获取嵌入该iframe的页面的window对象,为什么得不到 如何动态的添加html的表的行列!! 查询时出现的简单问题,请高手帮助(急) 一个头疼的问题.关于菜单和object的显示问题.谢谢大家 请教个javascript的小问题 求助,时间无法刷新 求助 像飘在云上的那种特效
<head>
<title></title>
<style type="text/css">
#winpop
{
width:200px; height:0px; position:absolute;
right:0; bottom:0px; border:1px solid #99999;
margin:0px; padding:1px; overflow:hidden; background:#fff; display:none;
}
div.title
{
width:100%; height:20px; line-height:20px; background:#290052;
font-weight:bold; text-align:center; font-size:12px; color:#fff;
}
div.content
{
width:100%; height:80px; line-height:80px; font-weight:bold; font-size:12px; color:#ff0000;
text-decoration:underline; text-align:center; border:1px solid #290052;
}
.close
{
position:absolute; right:4px; top:-1px; color:#fff; cursor:pointer;
}
#glide{background:yellow; border:1px solid blue; display:none;}
</style>
<script language="javascript" type="text/javascript">
var MsgPop;
var popH;
var oDiv;
var oDivW;
var oDivH;
window.onload = function () {
MsgPop = document.getElementById("winpop");
MsgPop.style.height = "0px"; tips_pop();
setTimeout("tips_pop()", 5000);
}
function tips_pop() {
popH = parseInt(MsgPop.style.height);
if (popH == 0) {
MsgPop.style.display = "block";
show =setInterval("changeH('up')", 2);
}
else {
hide = setInterval("changeH('down')", 2);
}
}
function changeH(str) {
popH = parseInt(MsgPop.style.height);
if (str=="up") {
if (popH <= 100) {
MsgPop.style.height = (popH + 4).toString() + "px";
}
else {
clearInterval(show);
}
}
if (str == "down") {
if (popH >= 4) {
MsgPop.style.height = (popH -4).toString() + "px";
}
else {
clearInterval(hide);
MsgPop.style.display = "none";
}
}
}
</script>
</head>
<body>
<div id="winpop">
<div class="title">
短消息<span class="close" onclick="tips_pop()">X</span>
</div>
<div class="content">未读消息(3)</div>
</div>
</body>
</html>