It is currently Sat Dec 02, 2017 4:22 pm Advanced search
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<title>Beyond The Balance Webcast</title>
<style type="text/css">
.backimg{
z-index:0;
}
</style>
</head>
<body>
<canvas id="a" width="540" height="200"></canvas>
<script type="text/javascript">
var a_canvas = document.getElementById("a");
var a_context = a_canvas.getContext("2d");
var bg = new Image();
bg.src = "myPicture.jpg";
bg.style = "backimg";
bg.onload = function() {
a_context.drawImage(bg, 0, 0);
};
a_context.font = "bold 14px sans-serif";
a_context.fillStyle = "#DDDEE4";
a_context.fillText("MY TEXT", 370, 130);
</script>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Beyond The Balance Webcast</title>
<style type="text/css">
*
{
border: 0px;
margin: 0px;
padding: 0px;
}
#example1
{
background-color: #0f0;
height: 200px;
width: 500px;
z-index:0;
}
#example2
{
background-color: #00f;
height: 200px;
margin: 0px 0px 0px -500px;
width: 500px;
z-index:0;
}
</style>
<script type="text/javascript">
//<![CDATA[
function a_context()
{
alert('Edit the \'a_context\' function if you think you have to do something with JavaScript.');
/*
var a_canvas = document.getElementById('a');
var a_context = a_canvas.getContext('2d');
var bg = new Image();
bg.src = 'myPicture.jpg';
bg.style = 'backimg';
a_context.font = 'bold 14px sans-serif';
a_context.fillStyle = '#DDDEE4';
a_context.fillText('MY TEXT', 370, 130);
*/
}
window.onload = function()
{
//List individual function names here to executed onload.
a_context();
alert('example onload alert');
}
//]]>
</script>
</head>
<body>
<canvas id="example1"></canvas>
<canvas id="example2"></canvas>
</body>
</html>
<script type="text/javascript">
//<![CDATA[
/* Your JavaScript code goes here. */
//]]>
</script>
<head>
<script type="text/javascript">
//<![CDATA[
function demo()
{
if (window.addEventListener)
{
alert('standards compliant browser');
}
else if (document.body.attachEvent)
{
alert('proprietary property supported');
}
}
window.onload = function()
{
demo();
}
//]]>
</script>
</head>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8" />
<title>Beyond The Balance Webcast</title>
<style>
*
{
border: 0px;
margin: 0px;
padding: 0px;
}
#bg-main
{
background-image: url('BYBWebcast background.jpg');
background-color: #ff4200;
z-index:0;
}
#bar1
{
background-color: rgba(255,255,255,0.15);
height: 15px;
margin: 0px 0px 110px -544px;
width: 540px;
z-index:1;
}
</style>
<script type="text/javascript">
function loadFunc()
{
var bar1 = document.getElementById('bar1');
var context = bar1.getContext('2d');
context.translate(0, -200);
}
window.onload = function()
{
//List individual function names here to executed onload.
loadFunc();
}
</script>
</head>
<body>
<canvas id="bg-main" width="540" height="200"></canvas>
<canvas id="bar1"></canvas>
</body>
</html>
Users browsing this forum: No registered users and 0 guests