amit.soni's Profile User Rating: -----

Reputation: 26 Craftsman
Group:
Active Members
Active Posts:
73 (0.05 per day)
Joined:
19-November 10
Profile Views:
1,965
Last Active:
User is offline Dec 04 2013 05:41 AM
Currently:
Offline

Previous Fields

Country:
IN
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   amit.soni Walking the path..... in search of destination...!!! B-)

Posts I've Made

  1. In Topic: Cursor Customisation

    Posted 3 Dec 2013

    what about this technique Fiddle

    var cursors = {
        normal : "http://i696.photobucket.com/albums/vv323/RoamPT/mouse.png",
        hover :"http://cur.cursors-4u.net/others/oth-8/oth726.png"
    }
    
    $(document).mousemove(function(e){
        //console.log(e.pageX + " | " + e.pageY);
        $("#cursor").css({
            "top" : e.pageY,
            "left" : e.pageX + 2
        });
    });
    
    function onHover()
    {
        $("#cursor").css("background-image","url('" + cursors.hover + "')");
    }
    
    function onNormal()
    {
        $("#cursor").css("background-image","url('" + cursors.normal + "')");
    }
    
    $("ul li a").hover(function(){
        onHover();
    },function(){
        onNormal();
    });
    
  2. In Topic: Possible to "manually" open the Facebook message inbox?

    Posted 22 Nov 2013

    If i get you right

    On inspecting Fb Messge Dropdown box , i came to know that this Div id is "fbMessagesFlyout"

    so what i did :
    on firebug
    i type

    document.getElementById("fbMessagesFlyout").style.display = "block";

    and on press enter it opens the Message box.

    So i dont know whether this information will help you out or not.

    i just wanted to share this info with you..
  3. In Topic: Creating matching squares game in Javascript

    Posted 21 Nov 2013

    i made a quick fiddle for you,
    may be you get some idea from this Fiddle.

    	var clickCount = 0;
    	
    	for(i=0;i<3;i++)
    	{
    		var imgArray = ["https://pbs.twimg.com/profile_images/2955559089/83f09d26307253decde4d58ecd14c2e9.jpeg","http://www.biography.com/imported/images/Biography/Images/Profiles/T/Sachin-Tendulkar-20710145-1-402.jpg","http://media.indiatimes.in/media/content/2013/Mar/lionel_messi_1364202768_540x540.jpg"];
    		var arrLength = imgArray.length;
    		for(j=0;j<arrLength;j++)
    		{
    			var randomNum = Math.floor(Math.random()*imgArray.length);
    			$("table#tblGrid tr").eq(i).children().eq(j).html("<center><img alt='' src='" + imgArray[randomNum] + "' /></center>");
    			imgArray.splice(randomNum,1);
    		}
    	}
    	
    	$("table#tblGrid tr td").on("click",function(){
    		if(clickCount<3)
    		{
    			$(this).find("img").fadeIn();
    			clickCount = clickCount + 1;
    		}
    		
    	});
    
    
  4. In Topic: a:hover makes other elements/text move weirdly

    Posted 10 Nov 2013

    add one more property to your ul li a style

    -webkit-backface-visibility: hidden
    


    (kudos go to @JugularKill for his answer found here)
  5. In Topic: Animation not working (javascript)

    Posted 10 Oct 2013

    give a proper width to your #slider div for e.g.

    #slider
    {
      width:2500px;
    }
    

    now based on #slider width , give width to div(#cont1 , #cont2 , #cont3) within your #slider div
    for e.g.

    #cont1 , #cont2 , #cont3
    {
        width:800px;
        display:inline-block;
    }
    



    now based on this give a proper slider position in your javascript(jQuery) code
    for e.g.

    var sliderPos = ["0px","-800px","-1600px"];
    



    check this Fiddle

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
June 7
Gender:
Location:
Kalyan , Mumbai
Full Name:
Amit Soni
Years Programming:
2
Programming Languages:
HTML , CSS , CSS3 , jQuery , SQL , XML ASP.NET AJAX , C , C++ , ActionScript 3.0 , C# ,PHP , MySQL , HTML 5 , JavaScript ,Web Services ,AJAX

Contact Information

E-mail:
Private
LinkedIn:
http://www.linkedin.com/in/amit7soni
Facebook:
https://www.facebook.com/amit7soni

Friends

Comments

amit.soni has no profile comments yet. Why not say hello?