Web development , php , ajax , symfony, framework, zend
In: web resources
20 Mar 2010The transform property of CSS allows rotating, scaling, and skewing objects in HTML.
However, as expected, it doesn't work consistently on every browser (specially IE) and requires a different rule for almost each of them like:
-moz-transform for Mozilla-o-transform for Opera-webkit-transform for Webkit engines (like Safari)cssSandpaper is a JavaScript library which enables IE to support CSS transforms and every other browser to work with the same rule definitions.
The library requires its own CSS rules like -sand-transform, -sand-box-shadow or -sand-gradient.
Once they are defined, it searches for these rules in the CSS file and applies the browser-specific transformations via JavaScript.
There is an impressive demo provided which can be tested with every browser.
Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets
Advertisements:
SSLmatic – Cheap SSL Certificates (from $19.99/year)
Follow WebResourcesDepot At Twitter And Get More Resources!
Tags: Javascript, Transform
This blog delivers stylish and dynamic news for designers and web-developers on all subjects of design, ranging from: CSS, Ajax, Javascript, web design, graphics, typography, advertising & much more. Our goal is to help you communicate effectively on the web with an engaging website or functional interface.
8 Responses to Cross Browser CSS Transforms – cssSandpaper
Isofarro
March 23rd, 2010 at 10:01 pm
document.write cannot change a document that has already been loaded in the browser. You could instead use DOM scripting to update the content of a page.
In the example above, after the </form> insert the following line:
<div id="output"></div>
Now you can append content to this by using DOM manipulation, so instead of
tmpStr += this.city + " " + this.state +
" " + this.zip + "n" + "<br>";
do this instead:
var d = document
var el = d.getElementById("output");
el.appendChild(
d.createTextNode(
this.city + " " +
this.state + " " +
this.zip + "n")
);
el.appendChild(
d.createElement("br")
);
darcy m
March 25th, 2010 at 8:32 am
Months ago I told all who would listen that he was scary. Little by little you are finding out.
Oo,oo, Pick Me!
March 28th, 2010 at 4:41 pm
Javascript form validation is by no means trivial, and depends almost entirely on your definition of "valid" for each field. Most methods, however, follow a similar structure:
1. Retrieve the element(s) to be validated.
2. Pass the value of the element to a function that will return true/false if the value is "valid".
3. Repeat as desired until a decision is made whether the form itself is "valid".
W3Schools has a decent conceptual overview.
zsandsz
March 29th, 2010 at 5:29 pm
A CSS formatting rule consists of two parts—the selector and the declaration . The selector is a term that identifies the formatted element… defines which HTML elements you are going to be manipulating with CSS code,. The declaration block defines what the style properties are… what that style will end up looking like.
Molson
April 3rd, 2010 at 6:02 am
its the ram and the CPU that make the computer go faster. try getting some high performance RAM
hope this helps!!
Dinner
April 9th, 2010 at 2:56 pm
Make sure you have your CSS Styles window open (Window >> CSS Styles) then select all of the CSS rules (click the top one, hold shift and click the bottom one) then right click anywhere on the list and go to "Move CSS Rules…"
It will then ask you where to save it, and you have to give it a name. It should automatically be linked to the document.
tiggsy
April 30th, 2010 at 5:41 am
You need to add target="popUpWindow" in your form header.
Since your js says window.open(url,'popUpWindow' ,,,,
your target has to be "popUpWindow" not "popup"
I use this code on my garden site for glossary terms.
EnchantedGypsy
May 5th, 2010 at 3:32 am
sandboxes are the best way to keep your dog happy, without having it harm your backyard. a little training and he will know the..sandbox..{with a few good dog..bones buried in it} is the only place to dig.