These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:08 pm Advanced search

Scale function in safari

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

Scale function in safari

Postby veniamin » Fri Aug 13, 2010 9:15 am

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
</body>
<script>
var placeHolder = $("<div id='plHld' onclick='scale();' style='width:300px;height:100px;border-style:dashed;position:absolute;'></div>");
//placeHolder.append(marketViewer);
//placeHolder.append(topPerformers);
//placeHolder.append(newsBlock);
//placeHolder.append(publicationsBlock);

function scale() {
placeHolder.css("webkitTransform" ," scale(0.05,0.1)");
//placeHolder.css("top" ," 0px");
//placeHolder.css("left" ," 8px");
//alert(placeHolder.position().left);
//alert(placeHolder.offset().left);

//document.getElementById("plHld").style.webkitTransform = 'scale(0.05,0.1)';
}
//scale();
$("body").append(placeHolder);

</script>
</html>
veniamin
<h6>
 
Posts: 1
Joined: Fri Aug 13, 2010 9:10 am

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests