Blue Theme Orange Theme Green Theme Red Theme
 
Home | Forums | ASP.NET 2.0 Tutorials | Web Services | How Do I...? | Class Browser | WPF Quick Starts | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
Search :       Advanced Search »
Home » Blogs Home » Blog Detail

Jquery using make change in stylesheet

 by Dhaval Patel on Dec 10, 2011

How to make change in style for using jquery
Comments: 0 Views: 387 Printable Version 
Jquery script  and Style :

 <script type="text/JavaScript" src="../jquery.min.js"></script>

<script type="text/JavaScript" src="../jquery-1.4.2.min.js"></script>

<script type="text/JavaScript">
$(document).ready(function(){
$('tr').mouseover(function() {
$(this).addClass('zebraHover');
});
$('tr').mouseout(function() {
$(this).removeClass('zebraHover');
});
$("#div1").css({'border':'1px solid red','font-size':'12px','font-weight':'bold'});
$("#div1").height();
$("#div1").height(120);
$("#div1").width();
$("#div1").width(200);

//alert(getyear());
});

</script>

<style type="text/css">
tr.zebraHover
{
background-color: #BEBEBE;
}
</style>

Design page :
 <table>
<tr>
<td id="celebs">
Dhaval patel
</td>
</tr>
<tr>
<td>
<div id="div1">
hi<br />
hello!<br />
How Are you?
</div>
</td>
</tr>
</table>

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
 
What do you say about this post? Post a comment here
*Title:
*Comment:
 
Comments not available.
Team Foundation Server Hosting
Become a Sponsor

 Blogger's Profile
Age: Not Available
Location:
Title: Developer
Joined: Mar 26, 2010
Education: Bachelors Degree
 More Blogs from this Blogger
No record available
 Latest Blogs
[Video] OnClose Handler
[Video] Storing and Loading the Window and Toolbar position
The Euclidean Algorithm
Swapping Exe Process
How Exe file is Generated by VS2005 C++ Project?
What is Exe
Header files: Multiple Inclusion problem - Solution B
Header files: Multiple Inclusion problem - Solution A
Header files: Multiple Inclusion problem - Reason
Header files: Multiple Inclusion problem
View all »
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.