Styles Code ông già giáng sinh, tuần lộc 2017

Holazama

Private
Tham gia
16/02/2017
Bài viết
3
Được Like
1
Hello mọi người.

Xưa vxf.vn có share code này mà giờ em tìm mãi không thấy,bác nào còn save thì share lên để anh em trang trí website, forums cho xôm được không ạ ?
 
  • Like
Reactions: THB

THB

Founder
Thành viên BQT
Tham gia
25/02/2015
Bài viết
6,646
Được Like
3,931
vào gg nó ra ngay. hình như trang trí noel thì phải.
 

Holazama

Private
Tham gia
16/02/2017
Bài viết
3
Được Like
1
Mình search không ra hiệu ứng 2 con tuần lộc đó admin à?
 

quick87

Corporal
Tham gia
10/12/2016
Bài viết
113
Được Like
62
Hello mọi người.

Xưa vxf.vn có share code này mà giờ em tìm mãi không thấy,bác nào còn save thì share lên để anh em trang trí website, forums cho xôm được không ạ ?
copy đoạn code này vào header:
Mã:
<script type='text/javascript'>
 $(function(){
    $('html').append('<img id="halo" title="Happy Noel" style="cursor:pointer;position:fixed;z-index:99999" height="120" src="http://lh6.ggpht.com/--821TuXi7o0/UMN0DyDHwtI/AAAAAAAAFL8/V3nQtexRIIk/ghost_thumb.gif"/>')
    setInterval(function(){
       var $X=Math.ceil(Math.random()*$(window).width())
       var $Y=Math.ceil(Math.random()*$(window).height())
       $('img#halo').animate({'left':$X,'top':$Y},5000)
    },5000)
    $('img#halo').click(function(){
        window.open('http://lh6.ggpht.com/--821TuXi7o0/UMN0DyDHwtI/AAAAAAAAFL8/V3nQtexRIIk/ghost_thumb.gif','')
    })
 })
  </script>

Nếu muốn thay ảnh khác thì lựa tại link sau:
 

Đính kèm

  • ghost_thumb.gif
    ghost_thumb.gif
    26.9 KB · Lượt xem: 36

xenmax

Private
Tham gia
28/11/2017
Bài viết
48
Được Like
47
Mình search không ra hiệu ứng 2 con tuần lộc đó admin à?
kỹ năng quá kém . đề nghị đồng chí phải nâng cao kỹ năng lại
"Share code ông già noel bay trên website "
sẽ ra bài hd của vietds

còn ko thì chơi css3 cho nó nhẹ khỏi phải upload
chèn code này vào extra.css
Mã:
/***************************

BEGIN OF FLYING SANTA

***************************/
.santa {
    z-index: 600;
    cursor: pointer;
    -webkit-animation: FlyingSanta 38s infinite linear;
    -moz-animation: FlyingSanta 38s infinite linear;
    -ms-animation: FlyingSanta 38s infinite linear;
    -o-animation: FlyingSanta 38s infinite linear;
    animation: FlyingSanta 38s infinite linear;
    bottom: 0%;
    left: 0%;
    position: absolute;
}
@keyframes FlyingSanta {
25% {
bottom: 80%;
left: 85%;
transform: rotateY(0deg);
}
26% {
transform: rotateY(180deg);
}
50% {
 bottom:60%;
 left: 0%;
 transform: rotateY(180deg);
}
51% {
 transform: rotateY(0deg);
}
75% {
 bottom:40%;
 left: 85%;
 transform: rotateY(0deg);
}
76% {
 bottom:40%;
 left: 85%;
 transform: rotateY(180deg);
}
99% {
 transform: rotateY(180deg);
}
}

HTML:
<img class="santa" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/santas.gif" alt="Santa Be Watchin" />
code này nhét vào sau thẻ <body> của page_container

nếu thích màu mè hoa lá cành nữa thì cho thêm thằng này vào trước </head> của page_container. đảm bảo hấp dẫn
Mã:
<script src='//cdnjs.cloudflare.com/ajax/libs/buzz/1.1.0/buzz.min.js'></script>
<script>
buzz.defaults.formats = [ 'mp3' ];
buzz.defaults.preload = 'metadata';


var SleighRide = new buzz.sound("https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/9562523_silvanmusic_christmas-time", {
    formats: [ "mp3" ],
    preload: true,
    autoplay: false,
    volume: 100,
    loop: true
});
var hohoho = new buzz.sound("https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/hohoho", {
    formats: [ "mp3" ],
    preload: true,
    autoplay: false,
    volume: 100,
    loop: false
});

var SantaLaughing = new buzz.sound("https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/SantaLaughing", {
    formats: [ "mp3" ],
    preload: true,
    autoplay: false,
    volume: 100,
    loop: false
});



var MerryChristmas = new buzz.sound("https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/SantaMerryChristmas", {
    formats: [ "mp3" ],
    preload: true,
    autoplay: false,
    volume: 100,
    loop: false
});
var Jingle2 = new buzz.sound("https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/Jinglebells2", {
    formats: [ "mp3" ],
    preload: true,
    autoplay: false,
    volume: 100,
    loop: false
});


           
       
/***************************
Santa Magic Sound Effects
****************************/      

   
    SleighRide.play();Jingle2.play();hohoho.play();      
    setTimeout(function () {
    Jingle2.play();MerryChristmas.play();}, 8000
);
setTimeout(function () {
    SantaLaughing.play();}, 20000
);
setTimeout(function () {
    Jingle2.play();SantaLaughing.play();}, 35000
);
setTimeout(function () {
    hohoho.play();}, 50000
);
setTimeout(function () {
    Jingle2.play();MerryChristmas.play();}, 80000
);

setTimeout(function () {
    SantaLaughing.play();}, 100000
);
   
$('.santa').hover(function() {
                hohoho.play();Jingle2.play();
 
            }, function() {
                hohoho.stop();Jingle2.stop();
            });  
$('.santa').click(function() {
     MerryChristmas.play();
     hohoho.stop();Jingle2.stop();
            });      
           

/***************************
Grouping the sounds so I can toggle them off and on all at once
****************************/      


var soundEffects = new buzz.group([
    hohoho,
    SleighRide,
    Jingle2,
    MerryChristmas,
    SantaLaughing

]);      
</script>
 
Sửa lần cuối:

Holazama

Private
Tham gia
16/02/2017
Bài viết
3
Được Like
1
Không phải con tuần lộc này trên vxf.vn khi xưa rồi các bác ơi, bên vxf.vn nó clean hơn nhiều.
 

Jindo_Katori

FirstSergeant
Tham gia
01/03/2015
Bài viết
1,454
Được Like
1,193
kỹ năng quá kém . đề nghị đồng chí phải nâng cao kỹ năng lại
"Share code ông già noel bay trên website "
sẽ ra bài hd của vietds

còn ko thì chơi css3 cho nó nhẹ khỏi phải upload
chèn code này vào extra.css
Mã:
/***************************

BEGIN OF FLYING SANTA

***************************/
.santa {
    z-index: 600;
    cursor: pointer;
    -webkit-animation: FlyingSanta 38s infinite linear;
    -moz-animation: FlyingSanta 38s infinite linear;
    -ms-animation: FlyingSanta 38s infinite linear;
    -o-animation: FlyingSanta 38s infinite linear;
    animation: FlyingSanta 38s infinite linear;
    bottom: 0%;
    left: 0%;
    position: absolute;
}
@keyframes FlyingSanta {
25% {
bottom: 80%;
left: 85%;
transform: rotateY(0deg);
}
26% {
transform: rotateY(180deg);
}
50% {
 bottom:60%;
 left: 0%;
 transform: rotateY(180deg);
}
51% {
 transform: rotateY(0deg);
}
75% {
 bottom:40%;
 left: 85%;
 transform: rotateY(0deg);
}
76% {
 bottom:40%;
 left: 85%;
 transform: rotateY(180deg);
}
99% {
 transform: rotateY(180deg);
}
}

HTML:
<img class="santa" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/santas.gif" alt="Santa Be Watchin" />
code này nhét vào sau thẻ <body> của page_container

nếu thích màu mè hoa lá cành nữa thì cho thêm thằng này vào trước </head> của page_container. đảm bảo hấp dẫn
Mã:
<script src='//cdnjs.cloudflare.com/ajax/libs/buzz/1.1.0/buzz.min.js'></script>
<script>
buzz.defaults.formats = [ 'mp3' ];
buzz.defaults.preload = 'metadata';


var SleighRide = new buzz.sound("https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/9562523_silvanmusic_christmas-time", {
    formats: [ "mp3" ],
    preload: true,
    autoplay: false,
    volume: 100,
    loop: true
});
var hohoho = new buzz.sound("https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/hohoho", {
    formats: [ "mp3" ],
    preload: true,
    autoplay: false,
    volume: 100,
    loop: false
});

var SantaLaughing = new buzz.sound("https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/SantaLaughing", {
    formats: [ "mp3" ],
    preload: true,
    autoplay: false,
    volume: 100,
    loop: false
});



var MerryChristmas = new buzz.sound("https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/SantaMerryChristmas", {
    formats: [ "mp3" ],
    preload: true,
    autoplay: false,
    volume: 100,
    loop: false
});
var Jingle2 = new buzz.sound("https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/Jinglebells2", {
    formats: [ "mp3" ],
    preload: true,
    autoplay: false,
    volume: 100,
    loop: false
});


          
      
/***************************
Santa Magic Sound Effects
****************************/     

  
    SleighRide.play();Jingle2.play();hohoho.play();     
    setTimeout(function () {
    Jingle2.play();MerryChristmas.play();}, 8000
);
setTimeout(function () {
    SantaLaughing.play();}, 20000
);
setTimeout(function () {
    Jingle2.play();SantaLaughing.play();}, 35000
);
setTimeout(function () {
    hohoho.play();}, 50000
);
setTimeout(function () {
    Jingle2.play();MerryChristmas.play();}, 80000
);

setTimeout(function () {
    SantaLaughing.play();}, 100000
);
  
$('.santa').hover(function() {
                hohoho.play();Jingle2.play();
 
            }, function() {
                hohoho.stop();Jingle2.stop();
            }); 
$('.santa').click(function() {
     MerryChristmas.play();
     hohoho.stop();Jingle2.stop();
            });     
          

/***************************
Grouping the sounds so I can toggle them off and on all at once
****************************/     


var soundEffects = new buzz.group([
    hohoho,
    SleighRide,
    Jingle2,
    MerryChristmas,
    SantaLaughing

]);     
</script>
Thật sự lúc nào mình cũng CSS như của bác nhất. Mỗi tội ngu code :v
 
  • Like
Reactions: THB

Hướng dẫn sử dụng

XenForo 1 XenForo 2
Translate by PVS

Dịch vụ XenForo của VNXF

Mobile/Zalo: 0906081284

Telegram: anhanhxf

Chỉ nhận web nội dung lành mạnh

Nhà Tài Trợ

Mút Xốp Không Gian
Mút Sofa Không Gian
Top Bottom