Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <img src="<?= base_url(); ?>img/face1.jpg" id="icon"> //<-- this function is from codeigniter, to get the base url
- $(document).ready(function(){
- $("#icon").mouseover(function() {
- $(this).fadeOut(1000);
- }).mouseout(function(){
- $(this).fadeIn(1000);
- });});
- $(document).ready(function() {
- $("#icon").mouseenter(function() {
- $(this).fadeOut(1000);
- }).mouseout(function() {
- $(this).fadeIn(1000);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement