[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum » Računarstvo » Web Development » Kako napraviti UP dugme
Kako napraviti UP dugme
cetvrtak, 2013-05-09, 17.36 | Сообщение # 1
Оффлайн
Admin
Poruka:
83
Nagrade:
32
Code
<script>   
     
$(function(){$.fn.scrollToTop=function(){$(this).hide().removeAttr("href");if($(window).scrollTop()>="100"){$(this).fadeIn("slow")}var
     
scrollDiv=$(this);$(window).scroll(function(){if($(window).scrollTop()<="1000"){$(scrollDiv).fadeOut("slow")}else{$(scrollDiv).fadeIn("slow")}});$(this).click(function(){$("html,
   body").animate({scrollTop:0},"slow")})}});   
   $(function(){$("#toTo_button").scrollToTop();});   
   </script>   
   <style>   
   #toTo_button {   
width:70px;text-align:center;padding:5px;position:fixed;bottom:10px;right:12px;cursor:pointer;color:#666;text-decoration:none;
   }   
   #ups a img { opacity:0.7; -moz-opacity:0.7; filter:alpha(opacity=70); }   
   #ups a:hover img { opacity:1.0; -moz-opacity:1.0; filter:alpha(opacity=100); }   
   </style>   
   <div id="ups">   
   <a href="/" id="toTo_button"><img src="http://full4dl.ucoz.com/Support/ups.png" alt="" /></a>   
   </div>



http://full4dl.ucoz.com/Support/ups.png,to mozwte zameniti bilo kojom drugom slikom.
Forum » Računarstvo » Web Development » Kako napraviti UP dugme
  • Page 1 of 1
  • 1
Search: