Advertisement
johnburn

Untitled

Nov 3rd, 2014
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.33 KB | None | 0 0
  1. <script language="javascript">
  2. function show() {
  3.     if (1 == 100) {
  4.         curHeight = 266 + 1
  5.     } else {
  6.         curHeight += 2
  7.     }
  8.     if (curHeight > 266) {
  9.         clearInterval(IntervalId);
  10.         if (autoHide == 1 && (curHeight = 266)) {
  11.            popTimeout()
  12.        }
  13.    }
  14.    popupBalloon.style.height = curHeight + "px"
  15. }
  16.  
  17. function hide() {
  18.    if (1 == 100) {
  19.        curHeight = 18 - 1
  20.    } else {
  21.        curHeight -= 3
  22.    }
  23.    if (curHeight < 18) {
  24.        clearInterval(IntervalId)
  25.    }
  26.    popupBalloon.style.height = curHeight + "px";
  27.     clearPopTimeout()
  28. }
  29.  
  30. function clickhide() {
  31.     document.getElementById("popup_hide").style.display = "none";
  32.     document.getElementById("popup_show").style.display = "inline";
  33.     IntervalId = setInterval("hide()", 1)
  34. }
  35.  
  36. function clickshow() {
  37.     document.getElementById("popup_hide").style.display = "inline";
  38.     document.getElementById("popup_show").style.display = "none";
  39.     IntervalId = setInterval("show()", 1)
  40. }
  41.  
  42. function clickclose() {
  43.     document.body.style.marginBottom = "0px";
  44.     popupBalloon.style.display = "none"
  45. }
  46.  
  47. function popTimeout() {
  48.     autoHidePop = window.setTimeout("clickhide()", 5e3)
  49. }
  50.  
  51. function clearPopTimeout() {
  52.     window.clearTimeout(autoHidePop)
  53. }
  54. IntervalId = setInterval("show()", 1)
  55. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement