Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script language="javascript">
- function show() {
- if (1 == 100) {
- curHeight = 266 + 1
- } else {
- curHeight += 2
- }
- if (curHeight > 266) {
- clearInterval(IntervalId);
- if (autoHide == 1 && (curHeight = 266)) {
- popTimeout()
- }
- }
- popupBalloon.style.height = curHeight + "px"
- }
- function hide() {
- if (1 == 100) {
- curHeight = 18 - 1
- } else {
- curHeight -= 3
- }
- if (curHeight < 18) {
- clearInterval(IntervalId)
- }
- popupBalloon.style.height = curHeight + "px";
- clearPopTimeout()
- }
- function clickhide() {
- document.getElementById("popup_hide").style.display = "none";
- document.getElementById("popup_show").style.display = "inline";
- IntervalId = setInterval("hide()", 1)
- }
- function clickshow() {
- document.getElementById("popup_hide").style.display = "inline";
- document.getElementById("popup_show").style.display = "none";
- IntervalId = setInterval("show()", 1)
- }
- function clickclose() {
- document.body.style.marginBottom = "0px";
- popupBalloon.style.display = "none"
- }
- function popTimeout() {
- autoHidePop = window.setTimeout("clickhide()", 5e3)
- }
- function clearPopTimeout() {
- window.clearTimeout(autoHidePop)
- }
- IntervalId = setInterval("show()", 1)
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement