Friday, 7 February 2014

IMAGE MOUSEMOVE THEN WE GET ACTUAL IMAGESIZE

    /*------( THIS IS FOR IMAGE )--------*/
    $('.profileGraphic').live('mousemove', function (event) {
        var v_src = $(this).attr('src');
        v_src = v_src.replace('&type=square', '');
        v_src = v_src.replace('?preset=thumb', '');
        v_src = v_src.replace('sz=100', '');
        $('#imgpreview').attr('src', v_src);
        $('.popup').css({
            top: (event.pageY - 10),
            left: (event.pageX + 10),
            display: 'block'
        });
    }).live('mouseout', function () {
        $('#imgpreview').attr('src', '');
        $('.popup').css({ display: 'none' });
        return false;
    });

   <!--IN ASPX/HTML IMAGE POPUP-->
                    <div class="popup">
                            <img id="imgpreview" src=""/>
                        </div>

<!--CSS STYLE -->
.popup
{
    position: absolute;
    display: none;
    z-index: 111111;
    border-collapse: collapse;
    border: solid 3px white;
}

No comments:

Post a Comment

Extracting Nupkg files using command line

Rename it to zip first then extract files as below 1.     Rename-Item -Path A_Package.nupkg -NewName A_Package.zip 2.     Make sure to repla...