Friday, October 14, 2011

CSS3 Animations (Does not work in all browsers yet)

div
{
animation-name: myfirst;
animation-duration: 5s;
animation-timing-function: linear;
animation-delay: 2s;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-play-state: running;
/* Firefox: */
-moz-animation-name: myfirst;
-moz-animation-duration: 5s;
-moz-animation-timing-function: linear;
-moz-animation-delay: 2s;
-moz-animation-iteration-count: infinite;
-moz-animation-direction: alternate;
-moz-animation-play-state: running;
/* Safari and Chrome: */
-webkit-animation-name: myfirst;
-webkit-animation-duration: 5s;
-webkit-animation-timing-function: linear;
-webkit-animation-delay: 2s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: alternate;
-webkit-animation-play-state: running;
}

HTML Event Attributes

onblur
captures the moment that this element loses focus

onchange
captures the moment when the value of this element is changed

onclick
captures a mouse click on the element

ondblclick
captures a double mouse click on this element

onfocus
captures the moment that this element receives focus, either via the cursor or keyboard navigation

onkeydown
captures the event in which a key pressed down (but not released) while focus is on the element

onkeypress
captures a key press while focus is on this element

onkeyup
captures the moment at which a pressed key is released while focus is on the element

onload
catches the point at which a page has completely loaded

onmousedown
captures the pressing down of the mouse button while the cursor is positioned over the element

onmousemove
captures a mouse movement within this element

onmouseout
captures the movement of a cursor off an area covered by this element

onmouseover
captures the movement of a cursor into an area covered by this element

onmouseup
captures the release of a previously pressed mouse button while the cursor is over the element

onreset
captures the moment that this form’s Reset button is activated

onselect
captures the event in which the user selects, or highlights, text in the element

onsubmit
captures the moment that the form element to which this attribute is applied is submitted

onunload
catches the point at which a page has unloaded

Thursday, October 13, 2011

jQuery Intellisense with Visual Studio 2010

http://weblogs.asp.net/scottgu/archive/2010/02/08/jquery-1-4-1-intellisense-with-visual-studio.aspx

Please find the needful information and files from this blog

Add Meta Information and Titles from Content pages on ASP.NET

There are two ways as far as i know to do this

The first way



Add a title

<%@ Page Title="Articles of Intrest" Language="C#" MasterPageFile="~/Site.Master"
AutoEventWireup="true" CodeBehind="ArticlesOfInterest.aspx.cs" Inherits="Website1.Web.ArticlesOfIntrest" %>

Add Meta Keywords

<%@ Page MetaKeywords="keyword1, keyword2, keyword3" Language="C#" MasterPageFile="~/Site.Master"
AutoEventWireup="true" CodeBehind="ArticlesOfInterest.aspx.cs" Inherits="Website1.Web.ArticlesOfIntrest" %>

Add Meta Description

<%@ Page MetaDescription="the description goes here" Language="C#" MasterPageFile="~/Site.Master"
AutoEventWireup="true" CodeBehind="ArticlesOfInterest.aspx.cs" Inherits="Website1.Web.ArticlesOfIntrest" %>

Finally it should look like

<%@ Page MetaDescription="the description goes here" MetaKeywords="keyword1, keyword2, keyword3" Title="Articles of Intrest | Oral Mednet - Australia" Language="C#" MasterPageFile="~/Site.Master"
AutoEventWireup="true" CodeBehind="ArticlesOfInterest.aspx.cs" Inherits="OralMednet.Web.ArticlesOfIntrest" %>

The Second way

Do it at the PageLoad