skip to main
|
skip to sidebar
Dinakar's Testing area
Testing
Saturday, August 16, 2008
testing slideshow
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/; if(IE6){ window.onload = function(){ var now = new Date(); var time = now.getTime(); var div = document.createElement('a'); var id = 'saynotoie6_div_' + time; div.setAttribute('id',id); div.setAttribute('href','http://www.savethedevelopers.org/'); div.setAttribute('target','_blank'); div.style.display = 'block'; div.style.color = '#1d1d1d'; div.style.textAlign = 'left'; div.style.fontFamily = 'Arial'; div.style.fontSize = '11px'; div.style.background = 'url(http://www.savethedevelopers.org/images/popDown.gif)'; div.style.padding = '0'; div.style.position = 'absolute'; div.style.top = '0'; div.style.right = '40px'; div.style.zIndex = '999999'; div.style.width = '330px'; div.style.height = '63px'; div.style.marginTop = '-80px'; div.style.filter = 'alpha(opacity=95)'; document.body.appendChild(div); var animate = function(){ var myDiv = document.getElementById(id); var value = parseInt(myDiv.style.marginTop) myDiv.style.marginTop = value + 1 + 'px'; if(parseInt(myDiv.style.marginTop) < -1){ var timer = setTimeout(animate,30 * 80/Math.abs(value) * .27); }else{ var timer = setTimeout(hide,5000); } } var hide = function(){ var myDiv = document.getElementById(id); var value = parseInt(myDiv.style.marginTop) myDiv.style.marginTop = value - 1 + 'px'; if(parseInt(myDiv.style.marginTop) > -80){ var timer = setTimeout(hide,1.4 * 80/Math.abs(value) * 3.70); } } setTimeout(animate,1000); } }
dinakar's shared items
Blog Archive
▼
2008
(1)
▼
August
(1)
testing slideshow
►
2006
(3)
►
April
(1)
►
March
(1)
►
January
(1)
►
2005
(55)
►
November
(3)
►
October
(3)
►
September
(1)
►
July
(5)
►
June
(5)
►
May
(10)
►
April
(1)
►
February
(9)
►
January
(18)
►
2004
(90)
►
December
(16)
►
November
(5)
►
October
(2)
►
September
(11)
►
August
(28)
►
July
(11)
►
June
(16)
►
February
(1)
►
2003
(1)
►
November
(1)
About Me
Dinakar
View my complete profile