[BBcode] Rê chuột - nụ hôn & trái tim nhé
Change background image
Ganh Hao Teen9x-Club Teen9x

GanhHao kết nối trái tim Teen:-x => https://ganhhaoteen.forum.st

[BBcode] Rê chuột - nụ hôn & trái tim nhé Fb1

You are not connected. Please login or register

Go downThông điệp [Trang 1 trong tổng số 1 trang]

Mon Apr 09, 2012 6:01 pm
Mon Apr 09, 2012 6:01 pm
linh
linh
Admin
Posts : 349
Sinh Nhật : 10/10/1995
Tham Gia : 26/12/2011
Đến từ : ganhhao
Giới tính : Nam
Tuổi : 28
Points : 70528
thanked : 19
STT *: : [BBcode] Rê chuột - nụ hôn & trái tim nhé Scared10
Posts : 349
Sinh Nhật : 10/10/1995
Tham Gia : 26/12/2011
Đến từ : ganhhao
Giới tính : Nam
Tuổi : 28
Points : 70528
thanked : 19
STT *: : [BBcode] Rê chuột - nụ hôn & trái tim nhé Scared10
Tiêu Đề: [BBcode] Rê chuột - nụ hôn & trái tim nhé
-------------------------------------------------------------------------

[BBcode] Rê chuột - nụ hôn & trái tim nhé Thtx_010 [BBcode] Rê chuột - nụ hôn & trái tim nhé Thtx_012
Code:
  <style type="text/css">
    <!--
    .kisser {
    position:absolute;
    top:0;
    left:0;
    visibility:hidden;
    }
    -->
    </style>

    <script type="text/JavaScript">

    kisserCount = 15 //maximum number of images on screen at one time
    curKisser = 0 //the last image DIV to be displayed (used for timer)
    kissDelay = 1000 //duration images stay on screen (in milliseconds)
    kissSpacer = 50 //distance to move mouse b4 next heart appears
    theimage = "http://nd2.upanh.com/b4.s10.d2/67eed6bfafd7db61e13e0958ae2d15df_35818842.lipssmall.gif" //the 1st image to be displayed
    theimage2 = "http://nd1.upanh.com/b5.s3.d1/448255382b6559f84f39bd0ac013cd1e_35818851.smallheart.gif" //the 2nd image to be displayed

    //Browser checking and syntax variables
    var docLayers = (document.layers) ? true:false;
    var docId = (document.getElementById) ? true:false;
    var docAll = (document.all) ? true:false;
    var docbitK = (docLayers) ? "document.layers['":(docId) ? "document.getElementById('":(docAll) ? "document.all['":"document."
    var docbitendK = (docLayers) ? "']":(docId) ? "')":(docAll) ? "']":""
    var stylebitK = (docLayers) ? "":".style"
    var showbitK = (docLayers) ? "show":"visible"
    var hidebitK = (docLayers) ? "hide":"hidden"
    var ns6=document.getElementById&&!document.all
    //Variables used in script
    var posX, posY, lastX, lastY, kisserCount, curKisser, kissDelay, kissSpacer, theimage
    lastX = 0
    lastY = 0
    //Collection of functions to get mouse position and place the images
    function doKisser(e) {

    posX = getMouseXPos(e)
    posY = getMouseYPos(e)
    if (posX>(lastX+kissSpacer)||posX<(lastX-kissSpacer)||posY>(lastY+kissSpacer)||posY<(lastY-kissSpacer)) {
    showKisser(posX,posY)
    lastX = posX
    lastY = posY
    }
    }
    // Get the horizontal position of the mouse
    function getMouseXPos(e) {
    if (document.layers||ns6) {
    return parseInt(e.pageX+10)
    } else {
    return (parseInt(event.clientX+10) + parseInt(document.body.scrollLeft))
    }
    }
    // Get the vartical position of the mouse
    function getMouseYPos(e) {
    if (document.layers||ns6) {
    return parseInt(e.pageY)
    } else {
    return (parseInt(event.clientY) + parseInt(document.body.scrollTop))
    }
    }
    //Place the image and start timer so that it disappears after a period of time
    function showKisser(x,y) {
    var processedx=ns6? Math.min(x,window.innerWidth-75) : docAll? Math.min(x,document.body.clientWidth-55) : x
    if (curKisser >= kisserCount) {curKisser = 0}
    eval(docbitK + "kisser" + curKisser + docbitendK + stylebitK + ".left = " + processedx)
    eval(docbitK + "kisser" + curKisser + docbitendK + stylebitK + ".top = " + y)
    eval(docbitK + "kisser" + curKisser + docbitendK + stylebitK + ".visibility = '" + showbitK + "'")
    if (eval("typeof(kissDelay" + curKisser + ")")=="number") {
    eval("clearTimeout(kissDelay" + curKisser + ")")
    }
    eval("kissDelay" + curKisser + " = setTimeout('hideKisser(" + curKisser + ")',kissDelay)")
    curKisser += 1
    }
    //Make the image disappear
    function hideKisser(knum) {
    eval(docbitK + "kisser" + knum + docbitendK + stylebitK + ".visibility = '" + hidebitK + "'")
    }

    function kissbegin(){
    //Let the browser know when the mouse moves
    if (docLayers) {
    document.captureEvents(Event.MOUSEMOVE)
    document.onMouseMove = doKisser
    } else {
    document.onmousemove = doKisser
    }
    }
    window.onload=kissbegin
    </script>

    <script type="text/JavaScript">
    if (document.all||document.getElementById||document.layers){
    for (k=0;k<kisserCount;k=k+2) {
    document.write('<div id="kisser' + k + '" class="kisser"><img src="' + theimage + '" alt="" border="0"></div>\n')
    document.write('<div id="kisser' + (k+1) + '" class="kisser"><img src="' + theimage2 + '" alt="" border="0"></div>\n')
    }
    }

    </script>


Click vào đây để thử code hiển thị
[BBcode] Rê chuột - nụ hôn & trái tim nhé Thtx_015 [BBcode] Rê chuột - nụ hôn & trái tim nhé Thtx_017
https://ganhhaoteen.forum.st

Thích

Báo xấu [0]

Gửi một bình luận lên tường nhà linh

Về Đầu TrangThông điệp [Trang 1 trong tổng số 1 trang]

« Xem bài trước | Xem bài kế tiếp »

Bài viết liên quan

    Quyền hạn của bạn:

    Bạn không có quyền trả lời bài viết