Archive for the ‘JavaScript’ Category

Javascript Explode

Friday, April 2, 2010 0:32 No Comments

What is the equivalent function for php explode in Javascript? There is no explode function in java script.but we can handle the explode functionality by writing some custom functions. here is a simple java script  code for you. If you Run the following code explode(‘. ‘, ‘blog.altmint.com); It Could return 1.{0: ‘blog’, 1: ‘altmint’, 2: Continue Reading »

This was posted under category: JavaScript Tags: , ,

Alter Css Properties with Jquery

Thursday, March 25, 2010 9:40 No Comments

how to change the Properties of class or id with javascript? It is very simple with jquery. we can alter or add any css property to the class or id. here is a sample example for it. Assuming Jquery is Included $(“#IdName”).css(“color”,”red”); (or) $(“.Classname”).css(“color”,”red”);

This was posted under category: JavaScript Tags: , ,

CSS Properties To JavaScript Reference Conversion

Thursday, March 25, 2010 8:29 1 Comment

CSS Properties To JavaScript Reference Conversion CSS Property JavaScript Reference background background background-attachment backgroundAttachment background-color backgroundColor background-image backgroundImage background-position backgroundPosition background-repeat backgroundRepeat border border border-bottom borderBottom border-bottom-color borderBottomColor border-bottom-style borderBottomStyle border-bottom-width borderBottomWidth border-color borderColor border-left borderLeft border-left-color borderLeftColor border-left-style borderLeftStyle border-left-width borderLeftWidth border-right borderRight border-right-color borderRightColor border-right-style borderRightStyle border-right-width borderRightWidth border-style borderStyle border-top borderTop border-top-color Continue Reading »

This was posted under category: JavaScript Tags: ,

JavaScript Image Rotator

Tuesday, March 9, 2010 2:40 1 Comment

We can rotate the image by angle.here is a source code for it ..( rotate an image by an arbitrary angle, it works in IE7 & FF3 <html> <head> <!– **** Universal JavaScript Image Rotator v1.1 (16-03-2009) //–> <script type="text/javascript"> <!– //******************** Image parameters ******************* imagename='kk.jpg' xsize=180 ysize=240 //*********** nothing to configure below this line Continue Reading »

This was posted under category: JavaScript Tags: , , , ,