May 27, 2011
Animated window sample
ေအာက္က link ေတြကိုႏွိပ္ၾကည့္ပါ။
Demo:
Google
Facebook
ဒီလိုမ်ဳိး effect လုပ္မယ္ဆိုရင္ေတာ့ ေအာက္က code ကို သင္ေပၚေစခ်င္တဲ့ေနရာမွာ ထည့္ေပးပါ။
<script> var winheight=100 var winsize=100 var x=5 function openwindow(thelocation){ temploc=thelocation if (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById)){ window.open(thelocation) return } win2=window.open("","","scrollbars") win2.moveTo(0,0) win2.resizeTo(100,100) go2() } function go2(){ if (winheight>=screen.availHeight-3) x=0 win2.resizeBy(5,x) winheight+=5 winsize+=5 if (winsize<=screen.width-5){ win2.location=temploc winheight=100 winsize=100 x=5 return } setTimeout("go2()",50) } </script> <p> <a href="javascript:openwindow('YOUR TERGET LINK')">Open window </a> <p> <a href="javascript:openwindow('YOUR TERGET LINK')">Open window </a>
မွတ္ခ်က္မရွိေသးပါ...