Wednesday, January 9, 2013

Jquery Animation

Jquery Animation



Now it is very easy to use and animate images or text without write so many lines.You have to add jquery min library as usual and use animate () function. Jquery Animation is very simple and easy to use.


blow code is for animate top :

$("#content").animate({"top":"-200px"}, "slow");
you can pass the attributes right ,left and bottom.
<script>
$(document).ready(function(){
var opened = false;
var divheight= $("#panel").height()+ $("#content").height();
$("#middle").click(function(){
if(opened){
$("#content").animate({"top": "+=100px",height:'100'}, "slow");
}else{
$("#content").animate({"top": "-=100px",height:divheight}, "slow");
}
$("#panel").slideToggle("slow");
$("#panel .close").toggle();
opened = opened ? false : true;
});
});
</script>

<div id="panel"></div>
<div id="middle"></div>
<div id="content" style="height:100px;"></div>

try and enjoy :)

Tuesday, November 6, 2012

Hiding playbar from videos

Hide play bar from your video files.

Hello friends...

Here is the best and simple code for hiding bottom play bar from you-tube video file.

<iframe width="560" height="350" src="url"  frameborder="0" allowfullscreen></iframe>

And if you want to display text or button over the video add ?wmode=transparent this after the url


I hope this will definately help you


:) enjoy !!


Tuesday, October 30, 2012

Return valkue on clicked item

Hello readers,

If  you want to verify particular clicked item you should try this.

I am working on it and i need to select particular menu item ,here is my code;


 function getval(sender, args) {
                     var itemText = item.get_value();
                                    
           }

i assigned value =1,2,3 for each menu items
then i compare those values with cliked items.

  var itemText = item.get_value(); will return current value on click item.


I hope this will help you..

Cheers :)

Wednesday, October 24, 2012

Introduction

Hello guys,
This is my new blog on JQuery. I have played with new functions and i have found very interesting experiences with CSS and jquery. Downloading and modifying CSS is not exactly i mean about,but i think you would really have a good experience after play with animations.Any how UI is the most attractive part of the website.

Here i will share my some of experience with you...


Happy Dashehra to all of you

Enjoy :)