- 積分
- 1570
- 威望
- 1570
- 金錢
- 1514
- 最後登錄
- 2023-3-21
|
透明背景右下角弹窗代码,放第三方- <style type="text/css">
- <!--
- *{margin:0;padding:0;}
- body{text-align:center;}
- #main #scroll{width:250px;height:150px;border:green 1px solid;text-align:left;position:absolute;visibility:hidden;}
- #main #scroll #open{float:left;text-align:center;width:180px}
- #main #scroll #close{float:right;}
- #msg #icos{width:250px;height:25px;background:#FECD00;position:absolute;}
- // -->
- </style>
-
-
- <div id="main">
- <a href="http://szpne.5d6d.com">*</a>
- <div id="scroll"><div id="open" onmouseover="openbox();"> <a href="http://xclub.weclub.info" onclick="openbox()">给Xclub!留言</a><div id="close" class="szpne"><marquee align="left" onmouseover=stop() onmouseout=start()>Xclub!提示您:这里可以写留言的啦</marquee></div> </div>
-
- <div id="close"><a href="#" onclick="closebox()" >关闭</a>
-
- <script type="text/javascript">
- <!--
- var scroll=document.getElementById("scroll")
- var main=document.getElementById("main")
- var open=document.getElementById("open")
- var close=document.getElementById("close")
-
- scroll.style.visibility="visible"
- function runright()
- {
-
- scroll.style.top=document.body.scrollTop+document.body.clientHeight-scroll.clientHeight-4+"px"
- scroll.style.left=document.body.scrollLeft+document.body.clientWidth-scroll.clientWidth-4+"px"
-
- setTimeout("runright()",30)
- }
-
-
-
- function closebox()
- {
-
- scroll.style.height=scroll.offsetHeight-4+"px"
-
- if (scroll.offsetHeight>20)
- {
- setTimeout("closebox()",5)
- }
- else
- {
- close.style.visibility="hidden"
- }
-
- }
- function openbox()
- {
-
-
- if (scroll.offsetHeight<148)
- {
- close.style.visibility="visible"
- scroll.style.height=scroll.offsetHeight+2+"px"
- setTimeout("openbox()",5)
- }
-
- }
-
- runright();
- // -->
-
- </script>
- </div>
- </div>
- </div>
-
-
複製代碼 |
|