Created
January 11, 2013 14:33
-
-
Save yoannmoinet/4511073 to your computer and use it in GitHub Desktop.
Set css vendor specific.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setCSS(prop,value,css){ | |
var ar = ["-webkit-","-o-","-moz-","-ms-","-khtml-",""]; | |
if(css === undefined) | |
{ | |
css = {}; | |
} | |
for(var i = 0, max = ar.length; i<max; i+=1) | |
{ | |
css[ar[i]+prop] = value; | |
} | |
return css; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment