Simple RowdataBound event isit? an alternate if it reduce memory load and time. wht abt that :)
Yup by jquery :)
In this blog i'm posting some Asp.net,Sql Server,Jquery,HTML-5,sqlite,C#,JavaScript scripts and sample codes that i found and created by me or my friends with a mind that it Save/ Help our ass some ways...
Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts
Tuesday, January 29, 2013
Friday, January 11, 2013
Thursday, January 10, 2013
Shuffle div in jquery
Hi,
Shuffle div in jquery
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.span1
{
width: 228px;
background-color: #2D89EF
!important;
height: 63px;
float: left;
cursor: pointer;
}
.span2
{
width: 228px;
background-color: #00A300
!important;
height: 63px;
float: left;
cursor: pointer;
}
.span3
{
width: 228px;
background-color: #FFC40D
!important;
height: 63px;
float: left;
cursor: pointer;
}
.span3:hover
{
cursor: pointer;
}
.place-right
{
float: right !important;
margin-left: 10px;
}
.fg-color-white
{
color: #FFFFFF !important;
}
</style>
<script src="Scripts/jquery-1.8.3.min.js"
type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
shuffle();
});
function shuffle() { //
pass the divs to the function
var e = $('#shuffle div');
var replace = $('<div>');
var size = e.size();
while (size >= 1) {
var rand = Math.floor(Math.random() *
size);
var temp = e.get(rand); // grab a
random div from our set
replace.append(temp); // add
the selected div to our new set
e = e.not(temp); // remove our selected
div from the main set
size--;
}
$('#shuffle').html(replace.html()); // update
our container div with the
// new, randomized divs
}
setInterval(shuffle, 2000);
</script>
</head>
<body>
<form id="form1" runat="server">
<div style="width: 550px">
<div id="shuffle">
<div id='d1' class="span1">
<img
class="place-right"
style="margin: 10px;" src="images/simple.png"
/>
<h2
class="fg-color-white">
D1</h2>
</div>
<div id='d2' class="span2">
<img
class="place-right"
style="margin: 10px;" src="images/grid.png"
/>
<h2
class="fg-color-white">
D2</h2>
</div>
<div id='d3' class="span3">
<img
class="place-right"
style="margin: 10px;" src="images/responsive.png"
/>
<h2
class="fg-color-white">
D3</h2>
</div>
<div id='Div1' class="span1">
<img
class="place-right"
style="margin: 10px;" src="images/simple.png"
/>
<h2
class="fg-color-white">
D1</h2>
</div>
<div id='Div2' class="span2">
<img
class="place-right"
style="margin: 10px;" src="images/grid.png"
/>
<h2
class="fg-color-white">
D2</h2>
</div>
<div id='Div3' class="span3">
<img
class="place-right"
style="margin: 10px;" src="images/responsive.png"
/>
<h2
class="fg-color-white">
D3</h2>
</div>
<div id='Div4' class="span1">
<img
class="place-right"
style="margin: 10px;" src="images/simple.png"
/>
<h2
class="fg-color-white">
D1</h2>
</div>
<div id='Div5' class="span2">
<img
class="place-right"
style="margin: 10px;" src="images/grid.png"
/>
<h2
class="fg-color-white">
D2</h2>
</div>
<div id='Div6' class="span3">
<img
class="place-right"
style="margin: 10px;" src="images/responsive.png"
/>
<h2
class="fg-color-white">
D3</h2>
</div>
</div>
</div>
</div>
</form>
</body>
</html>
To see the demo check out the menu of this blog
If u had any trouble just ask, Happy to help u :)
Stay Tune...
Have a nice day... 'N happy Coding :)
Labels:
CSS,
HTML,
Javascript,
Jquery
Sunday, May 20, 2012
css for html links
In this article I’d like to show you six effective ways to add a touch of style to your HTML links. The techniques presented here are really simple to implement. Let’s see the details.
Using a different color
This is the simplest way to make your links different from the rest of the text:
a.color {
color: #d34545;
}
Using a different color on hover
This technique adds a little bit of dynamism to your links when a user hovers them with the mouse:
a.hover {
color: #800;
}
a.hover:hover {
color: #f00;
}
Using a different background color on hover
Same as above, but this time we change also the background color of the links:
a.hover-bg {
color: #003b6c;
}
a.hover-bg:hover {
background: #003bc6;
color: #fff;
}
Using text decoration
A dynamic effect on hover involving the text-decoration property:
a.decoration {
text-decoration: none;
}
a.decoration:hover {
text-decoration: underline;
}
Using borders
Another effect on hover but with the border-bottom property:
a.border {
text-decoration: none;
border-bottom: 1px solid;
}
a.border:hover {
border-bottom: 1px dashed #008;
}
Using generated content
We can add a rounded bullet to our links when a user hovers them:
a.generate {
text-decoration: none;
}
a.generate:hover:after {
content: '>';
margin-left: 4px;
color: #000;
font-weight: bold;
display: inline-block;
width: 20px;
height: 20px;
line-height: 20px;
text-align: center;
background: #ccc;
border: 1px solid #999;
border-radius: 50%;
text-shadow: 1px 1px 1px #444;
}
If u had any trouble just ask, Happy to help u :)
Stay Tune...
Have a nice day... 'N happy Coding :)
Using a different color
This is the simplest way to make your links different from the rest of the text:
a.color {
color: #d34545;
}
Using a different color on hover
This technique adds a little bit of dynamism to your links when a user hovers them with the mouse:
a.hover {
color: #800;
}
a.hover:hover {
color: #f00;
}
Using a different background color on hover
Same as above, but this time we change also the background color of the links:
a.hover-bg {
color: #003b6c;
}
a.hover-bg:hover {
background: #003bc6;
color: #fff;
}
Using text decoration
A dynamic effect on hover involving the text-decoration property:
a.decoration {
text-decoration: none;
}
a.decoration:hover {
text-decoration: underline;
}
Using borders
Another effect on hover but with the border-bottom property:
a.border {
text-decoration: none;
border-bottom: 1px solid;
}
a.border:hover {
border-bottom: 1px dashed #008;
}
Using generated content
We can add a rounded bullet to our links when a user hovers them:
a.generate {
text-decoration: none;
}
a.generate:hover:after {
content: '>';
margin-left: 4px;
color: #000;
font-weight: bold;
display: inline-block;
width: 20px;
height: 20px;
line-height: 20px;
text-align: center;
background: #ccc;
border: 1px solid #999;
border-radius: 50%;
text-shadow: 1px 1px 1px #444;
}
If u had any trouble just ask, Happy to help u :)
Stay Tune...
Have a nice day... 'N happy Coding :)
Tuesday, October 4, 2011
Change the font color based on the value in dropdownlist in asp.net c#
Hi *.*,
2day i'm showing some css magic on dropdown list.
demo
How to Implement?
On html
<html xmlns="http://www.w3.org/1999/xhtml"
>
<head runat="server">
<title>Change the
font color based on the value in dropdownlist in asp.net c#</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="ddpdown" runat="server" >
</asp:DropDownList>
</div>
</form>
</body>
</html>
On Server Side
protected void Page_Load(object
sender, EventArgs e)
{
for (int _i = 0; _i < 10; _i++)
{
if
(_i <5)
{
ddpdown.Items.Add(_i.ToString()+" - Not
Avilable");
ddpdown.Items[_i].Attributes.CssStyle.Add("color",
"red");
}
else
{
ddpdown.Items.Add(_i.ToString()+" -
Avilable");
ddpdown.Items[_i].Attributes.CssStyle.Add("color", "green");
}
}
}
Hope u got it...
Stay Tune...
Have a nice day... 'N happy Coding :)
Monday, August 15, 2011
Addons to visual studio 2010
Hi,
Last day i visited msdn.microsoft.com then i can to know the release of few nice addons for visual studio 2010
Here it goes check out
- http://visualstudiogallery.msdn.microsoft.com/a56eddd3-d79b-48ac-8c8f-2db06ade77c3
- http://visualstudiogallery.msdn.microsoft.com/a15c3ce9-f58f-42b7-8668-53f6cdc2cd83
- http://visualstudiogallery.msdn.microsoft.com/f3d1ae09-1f94-4bcf-bcdd-81388882ca04
- http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef?SRC=Home
- http://visualstudiogallery.msdn.microsoft.com/25622469-19d8-4959-8e5c-4025d1c9183d
- http://visualstudiogallery.msdn.microsoft.com/d491911d-97f3-4cf6-87b0-6a2882120acf?SRC=Home
- http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c?SRC=Home
Stay Tune...
Have a nice day... 'N happy Coding :)
Tuesday, August 9, 2011
Sample Lavalamp menu
Hi *.*,
A Lavalamp effect is simply made by an empty element with a declared background color that follows the mouse position when you move it through the items of a menu. In other words, it consists of a simple cursor that changes its left offset when you change your mouse position moving from an item to another.
DEMO
Subscribe to:
Posts (Atom)