expand.js
996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
var timer = 400;
var bExpandable = true;
var TzBigBoxAd = function() {
var BB = document.getElementById('bigbox1');
var Expand = document.getElementById('bigbox1expanded');
BB.onmouseover = function() {
if(bExpandable) {
Expand.style.display = 'block';
BB.style.display = 'none';
}
}
Expand.onmouseout = function() {
//bExpandable = true;
Expand.style.display = 'none';
BB.style.display = 'block';
}
}();
/*
on (release) {
getURL("javascript:" + _root.er_closefn + "()");
}
*/
function closefn() {
//var closefn = function() {
//alert("close pressed");
var BB = document.getElementById('bigbox1');
var Expand = document.getElementById('bigbox1expanded');
Expand.style.display = 'none';
BB.style.display = 'block';
bExpandable = false;
setTimeout("enableExpansion()",timer);
};
function enableExpansion() {
bExpandable = true;
}