Replaces a specified string value with another string value.
REPLACE ( expression , pattern , replacement )
Example
SELECT REPLACE('sample','ple','');
GO
Result:sam
SELECT REPLACE('sample','ple','');
GO
Result:sam
Java > Height div to window height with scroll
<script type="text/javascript" language="javascript">
window.onload = function () { SizeDiv(); }
function getDocHeight() {
var D = document;
return Math.max(
Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
Math.max(D.body.clientHeight, D.documentElement.clientHeight)
);
}
function SizeDiv() {
document.getElementById('leftCol').style.height = getDocHeight()-175 + "px";
}
</script>
SELECT Cast(GetDate() AS date)
Results: 2012-08-18 |