Chris Matchett

A blog to remind me how to fix stuff and other tech thoughts…

Archive for March 2007

VMware in a school using C2K

without comments

VMware seems to install ok on the C2K system used by schools in Northern Ireland.

I decided to start up a linux club for any interested students in the school I work. There were a few takers so I installed VMware on a few boxes and a Ubuntu virtual machine to get around the fact we can’t even run ‘live-cds’ on the school system.

Despite being a Redhat/Fedora person Ubuntu does seem attractive in that it is very easy to install…

Written by Chris

March 14, 2007 at 7:13 pm

Posted in C2K, Fedora, Linux, School, VMware

Gmail web clip navigation code

without comments

I am a bit of a cut and paste coder but I couldn’t come across any javascript examples to mimic the style used by Gmail to move scroll forwards/backwards through their rss feeds.

So I had to write some code myself…

<html>
<head>
<script type=”text/javascript”>
i = 0;
var mycars = new Array()
mycars[0] = “1.Saab”
mycars[1] = “2.Volvo”
mycars[2] = “3.BMW”
mycars[3] = “4.Fiat”

function move_forward() {
if(i < mycars.length-1)
{
i++;
  document.getElementById(‘foo’).innerHTML = mycars[i];
}

}
function move_back() {
if(i > 0)
{
i–;
  document.getElementById(‘foo’).innerHTML = mycars[i];
}
}
</script>
</head>

<body>

<p><a href=”javascript:move_back()” mce_href=”javascript:move_back()”><<</a> <a href=”javascript:move_forward()” mce_href=”javascript:move_forward()”>>></a></p>
<script type=”text/javascript”>
document.write(“<div id=’foo’>”+mycars[i]+”</div>”)
</script>

</body>
</html>

Written by Chris

March 3, 2007 at 8:03 pm