[Beta Plus] Tuyết rơi phù hợp với theme

Hiện tại thì code tuyết rơi có rất nhiều và đa dạng. Nhưng các bạn thường xuyên bị lỗi là chèn code tuyết rơi vào thì bị mất theme hoặc một phần của theme. Bài viết này sẽ giới thiệu code hoàn chỉnh không bị những lỗi đó nữa 


Trước hết, olympia xin nói về nguyên tắc code tuyết rơi là chèn link hình có tuyết rơi vào nền blog đè lên theme, không bị theme che mất và cũng không bị mất theme.

Trước hết để tránh tình trạng mất theme, bạn phải xác định bạn đang dùng code chèn theme kiểu nào để có thể kết hợp code tuyết rơi phù hợp. Ở đây có một số cách chèn theme cho các bạn tham khảo 

>>> [360Plus Beta Medium] Chèn theme một mảnh cho blog 360Plus Beta
>>> [360Plus Beta Medium] Chèn theme hai mảnh dạng top-bot cho 360Plus Beta 


Tương ứng với mỗi cách chèn theme sẽ có một cách chèn code tuyết rơi riêng.


Đối với dạng theme 1 mảnh, ta có các cách chèn sau


Cách 1 :



Quote:
body.blog_my, body.blog_my_index, body.comment_listing, body.trackback_listing, body.blog_archives_folder, body.blog_archives_date, body.blog_archives_all, body.post_rte, body.post_doodle, body.guestbook, body.comment_list, body.subscribe_list, body.post_gb, body.profile_view, body.gallery, body.photo_big, body.slideshow, body.photo_upload_pc, body.photo_upload_gallery
{background:transparent url(Link tuyết rơi);}/olympia41124*/
html {background:#FFFFFF url(Link hình nền) top center;}/*vietnam360plus.com*/



Cách 2 :


Quote:
body.blog_my, body.blog_my_index, body.comment_listing, body.trackback_listing, body.blog_archives_folder, body.blog_archives_date, body.blog_archives_all, body.post_rte, body.post_doodle, body.guestbook, body.comment_list, body.subscribe_list, body.post_gb, body.profile_view, body.gallery, body.photo_big, body.slideshow, body.photo_upload_pc, body.photo_upload_gallery
{background:transparent url(Link hình nền) fixed top center;}/*olympia41124*/
#doc2{background:transparent url(Link tuyết rơi);}/*vietnam360plus.com*/
Cách 3 :

Quote:
body.blog_my, body.blog_my_index, body.comment_listing, body.trackback_listing, body.blog_archives_folder, body.blog_archives_date, body.blog_archives_all, body.post_rte, body.post_doodle, body.guestbook, body.comment_list, body.subscribe_list, body.post_gb, body.profile_view, body.gallery, body.photo_big, body.slideshow, body.photo_upload_pc, body.photo_upload_gallery
{background:transparent url(Link hình nền) fixed top center;}/*olympia41124*/
.yui-t1{background:transparent url(Link tuyết rơi);}/*vietnam360plus.com*/

Cách 4 :



Quote:
body.blog_my, body.blog_my_index, body.comment_listing, body.trackback_listing, body.blog_archives_folder, body.blog_archives_date, body.blog_archives_all, body.post_rte, body.post_doodle, body.guestbook, body.comment_list, body.subscribe_list, body.post_gb, body.profile_view, body.gallery, body.photo_big, body.slideshow, body.photo_upload_pc, body.photo_upload_gallery
{background:transparent url(Link hình nền) fixed top center;}/*olympia41124*/
#bd,#head{background:transparent url(Link tuyết rơi);}/*vietnam360plus.com*/


Trong các code trên, các bạn thay Link ảnh nền bằng link hình nền của bạn, thay Link tuyết rơi bằng link hình bạn muốn làm tuyết rơi. Link hình các bạn có thể tham khảo một số mẫu mà olympia giới thiệu ở cuối bài viết. Sau đây là code chèn tuyết rơi cho theme 2 mảnh, rắc rối hơn một chút


Cách 1 :

Quote:
body.blog_my, body.blog_my_index, body.comment_listing, body.trackback_listing, body.blog_archives_folder, body.blog_archives_date, body.blog_archives_all, body.post_rte, body.post_doodle, body.guestbook, body.comment_list, body.subscribe_list, body.post_gb, body.profile_view, body.gallery, body.photo_big, body.slideshow, body.photo_upload_pc, body.photo_upload_gallery
{background:transparent url(Link hình bot) bottom no-repeat;}/*olympia41124*/
html {background: #FFFFFF url(Link hình top) no-repeat top;}/*vietnam360plus.com*/
#doc2{background:transparent url(Link tuyết rơi);}/*olympia41124*/

Cách 2 :


Quote:
body.blog_my, body.blog_my_index, body.comment_listing, body.trackback_listing, body.blog_archives_folder, body.blog_archives_date, body.blog_archives_all, body.post_rte, body.post_doodle, body.guestbook, body.comment_list, body.subscribe_list, body.post_gb, body.profile_view, body.gallery, body.photo_big, body.slideshow, body.photo_upload_pc, body.photo_upload_gallery
{background:transparent url(Link hình bot) bottom no-repeat;}/*olympia41124*/
html {background: #FFFFFF url(Link hình top) no-repeat top;}/*vietnam360plus.com*/
.yui-t1{background:transparent url(Link tuyết rơi);}/*olympia41124*/

Cách 3 :


Quote:
body.blog_my, body.blog_my_index, body.comment_listing, body.trackback_listing, body.blog_archives_folder, body.blog_archives_date, body.blog_archives_all, body.post_rte, body.post_doodle, body.guestbook, body.comment_list, body.subscribe_list, body.post_gb, body.profile_view, body.gallery, body.photo_big, body.slideshow, body.photo_upload_pc, body.photo_upload_gallery
{background:transparent url(Link hình bot) bottom no-repeat;}/*olympia41124*/
html {background: #FFFFFF url(Link hình top) no-repeat top;}/*vietnam360plus.com*/
#head,#bd{background:transparent url(Link tuyết rơi);}/*olympia41124*/


Trong các code trên thay link hình top, bot và tuyết rơi tương ứng.


Riêng đối với dạng theme 3 mảnh thì tuyết rơi không hoàn hảo, bị che mất một phần


Quote:
body.blog_my, body.blog_my_index, body.comment_listing, body.trackback_listing, body.blog_archives_folder, body.blog_archives_date, body.blog_archives_all, body.post_rte, body.post_doodle, body.guestbook, body.comment_list, body.subscribe_list, body.post_gb, body.profile_view, body.gallery, body.photo_big, body.slideshow, body.photo_upload_pc, body.photo_upload_gallery
{background:transparent url(Link top) no-repeat top center;height:Apx;}/*olympia41124*/

html{background:#FFFFFF url(Link center) center center;}/*vietnam360plus.com*/

#ft{background:transparent url(Link bot) no-repeat bottom center;height:Bpx}/*olympia41124*/

#doc2{background:transparent url(Link tuyết rơi);}/*vietnam360plus.com*/


Cuối cùng bonus cho các bạn code chèn 3 loại tuyết rơi vào blog cho dạng theme 1 mảnh, coi chừng chóng mặt nhé 


Quote:
html {background:#FFFFFF url(Link hình nền) top center;}/*olympia41124*/
body.blog_my, body.blog_my_index, body.comment_listing, body.trackback_listing, body.blog_archives_folder, body.blog_archives_date, body.blog_archives_all, body.post_rte, body.post_doodle, body.guestbook, body.comment_list, body.subscribe_list, body.post_gb, body.profile_view, body.gallery, body.photo_big, body.slideshow, body.photo_upload_pc, body.photo_upload_gallery
{background:transparent url(Link tuyết rơi 1);}/*vietnam360plus.com*/
#doc2{background:transparent url(Link tuyết rơi 2);}/*olympia41124*/
#head,#bd{background:transparent url(Link tuyết rơi 3);}/*vietnam360plus.com*/


Còn dưới đây là các hình cho các bạn tham khảo


   


Có thể xem toàn bộ các hình ở đây >>>http://s118.photobucket.com/albums/o93/olympia41124/Yahoo_360plus/Hover/?start=all



Written by olympia41124 - http://forum.vietnam360plus.com 

Nguồn : http://forum.vietnam360plus.com/showthread.php?t=1443

Nguồn : chúng tôi sưu tầm từ nhiều nguồn
SHARE

Thiết kế web chuyên nghiệp giá rẻ

Chúng tôi tuyên thiết kế web chuyên nghiệp đẳng cấp giá rẻ với 5 năm kinh nghiệm trong lĩnh vực thiết kế website nếu các bạn có nhu cầu có thể liên hệ Hotline: 0962 66 57 57 || Email: cmay.tt@gmail.com || website: cmay.vn

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 nhận xét:

Đăng nhận xét