via आज तक https://ift.tt/2tkJOPc
Saturday, 23 June 2018
Tuesday, 9 May 2017
How to Zoom all the image in a webpage
Code :
<style>
img {
cursor: pointer;
transition: -webkit-transform 0.1s ease
}
img:focus {
-webkit-transform: scale(6);
-ms-transform: scale(6);
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function () {
var imgs = document.querySelectorAll('img');
Array.prototype.forEach.call(imgs, function (el, i) {
if (el.tabIndex <= 0) el.tabIndex = 10000;
});
});
</script>
Apply this code in the <head> --- </head> section of your webpage and all the images in your page will zoom when you click on the image.
Happy Coding
<style>
img {
cursor: pointer;
transition: -webkit-transform 0.1s ease
}
img:focus {
-webkit-transform: scale(6);
-ms-transform: scale(6);
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function () {
var imgs = document.querySelectorAll('img');
Array.prototype.forEach.call(imgs, function (el, i) {
if (el.tabIndex <= 0) el.tabIndex = 10000;
});
});
</script>
Apply this code in the <head> --- </head> section of your webpage and all the images in your page will zoom when you click on the image.
Happy Coding
Thursday, 10 December 2015
SQL VIEW
View
A VIEW in SQL in completely based on the concept of Virtual Table which comes as a result of some SQL query. It behaves
like a real table and you can perform all SQL statements and function on a VIEW.
How
to create a VIEW:
Syntax:
CREATE VIEW [dbo].[View_Name]
as
select
A.Name, A.Email, A.Phone
from
tbl_name as A
where
A.status = 1
Example:
For
example let me create a table as tblEmployee
CREATE TABLE [dbo].[tblEmployee]
(
id int identity(1,1),
Emp_Code varchar(20) primary key,
Emp_Name varchar(500),
Emp_Email nvarchar(500),
Emp_Salary decimal,
Emp_Dept int,
Emp_Status int
)
Now I am going to create another table with the
name tblDepartment
CREATE TABLE [dbo].[tblDepartment]
(
id int identity(1,1),
Dept_Id int primary key,
Dept_Name varchar(500),
Dept_Status int
)
Now
based on these two tables I want to get details of those employees who are
currently working for the organization i.e. has Emp_Status as 1, for this I am
going to create a VIEW named as View_Emp_Active.
CREATE VIEW [dbo].[View_Emp_Active]
as
select
A.Emp_Code, A.Emp_Name, A.Emp_Email, A.Emp_Salary, B.Dept_Name
from
tblEmployee A inner join
tblDepartment B
on
A.Emp_Dept = B.Dept_Id
where
a.Emp_Status =
1
So, whenever you
need to get the list of active employees just call this View rather than
writing the full code of the select statement from two tables using join statement.
Some Important
things you should know about the SQL VIEW:
1. A
view can only be updated i.e. insert, delete, update statement can only applied
on the View if it is formed from s single table, otherwise you cannot perform
these actions on a View.
2. You
cannot have a view having more than 1000+ columns.
Friday, 30 October 2015
ASP.NET Dropdown for Months (Filled)
<asp:DropDownList ID="ddlmonth" runat="server" CssClass="form-control">
<asp:ListItem Text="January" Value="1"></asp:ListItem>
<asp:ListItem Text="February" Value="2"></asp:ListItem>
<asp:ListItem Text="March" Value="3"></asp:ListItem>
<asp:ListItem Text="April" Value="4"></asp:ListItem>
<asp:ListItem Text="May" Value="5"></asp:ListItem>
<asp:ListItem Text="June" Value="6"></asp:ListItem>
<asp:ListItem Text="July" Value="7"></asp:ListItem>
<asp:ListItem Text="August" Value="8"></asp:ListItem>
<asp:ListItem Text="September" Value="9"></asp:ListItem>
<asp:ListItem Text="October" Value="10"></asp:ListItem>
<asp:ListItem Text="November" Value="11"></asp:ListItem>
<asp:ListItem Text="December" Value="12"></asp:ListItem>
</asp:DropDownList>
<asp:ListItem Text="January" Value="1"></asp:ListItem>
<asp:ListItem Text="February" Value="2"></asp:ListItem>
<asp:ListItem Text="March" Value="3"></asp:ListItem>
<asp:ListItem Text="April" Value="4"></asp:ListItem>
<asp:ListItem Text="May" Value="5"></asp:ListItem>
<asp:ListItem Text="June" Value="6"></asp:ListItem>
<asp:ListItem Text="July" Value="7"></asp:ListItem>
<asp:ListItem Text="August" Value="8"></asp:ListItem>
<asp:ListItem Text="September" Value="9"></asp:ListItem>
<asp:ListItem Text="October" Value="10"></asp:ListItem>
<asp:ListItem Text="November" Value="11"></asp:ListItem>
<asp:ListItem Text="December" Value="12"></asp:ListItem>
</asp:DropDownList>
Subscribe to:
Posts (Atom)