How to convert this code back to normal

Discussion in 'HTML & Website Design' started by cryoffalcon, Apr 28, 2012.

  1. #1
    Hi,
    I am looking for an automated software that can convert this code back to normal

    <script type="text/javascript">
    $(document).ready(function() {
        //Tooltips
        $(".tip_trigger").hover(function(){
            tip = $(this).find('.tip');
            tip.show(); //Show tooltip
        }, function() {
            tip.hide(); //Hide tooltip
        }).mousemove(function(e) {
            var mousex = e.pageX + 50; //Get X coodrinates
            var mousey = e.pageY  - 340; //Get Y coordinates
            var tipWidth = tip.width(); //Find width of tooltip
            var tipHeight = tip.height(); //Find height of tooltip
    
            //Distance of element from the right edge of viewport
            var tipVisX = $(window).width() - (mousex + tipWidth);
            //Distance of element from the bottom of viewport
            var tipVisY = $(window).height() - (mousey + tipHeight);
    
            if ( tipVisX < 90 ) { //If tooltip exceeds the X coordinate of viewport
                mousex = e.pageX - tipWidth - 90;
            } if ( tipVisY < 90 ) { //If tooltip exceeds the Y coordinate of viewport
                mousey = e.pageY - tipHeight - 90;
            }
            //Absolute position the tooltip according to mouse position
            tip.css({  top: mousey, left: mousex });
        });
    });
    </script>	
    Code (markup):
    I used a code converter to convert it but I want to convert it back, One should ask Why did I convert in first place? Well because sometimes blogger never agree to the code straight away so this is one way to make it understand ^^
     
    cryoffalcon, Apr 28, 2012 IP
  2. heloraghu

    heloraghu Member

    Messages:
    133
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #2
    you can add normal tags and anchor tags between that your problem can be rectified
     
    heloraghu, Apr 29, 2012 IP