<!DOCTYPE html>
<html>
<head>
<link href='//www.rjmprogramming.com.au/PHP/emboss_h1.css' rel='stylesheet' type='text/css'>
<title>Recent Posts from Blog - RJM Programming - May, 2015</title>
<!--style>
.ancestors * {
display: inline;
border: 2px solid lightgrey;
color: lightgrey;
padding: 5px;
margin: 15px;
}
</style-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
var mf=null;
var cols=['lime','maroon','blue','purple','navy','teal','fuchsia','olive',];
var nums=['one','two','three','four','five','six','seven','eight'];
var hrefs=['','','','','','','',''];
var titls=['','','','','','','',''];
var zerocontents="";
var lasthref='';
var cnt=0;

function iloaded() {
var i, j, bits, myhs, myts, things, wascolis='', ahref='';
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//document.getElementById('myh4').innerHTML="loaded";
mf=document.getElementById('izero');
//if (mf != null) document.getElementById('myh4').innerHTML="found";
var y = mf.contentDocument;
//if (y != null) document.getElementById('myh4').innerHTML="found again";
zerocontents=y.body.innerHTML;
if (zerocontents.length == 0) zerocontents=$("#izero").get(0).contentWindow.document.body.innerHTML;
//document.getElementById('myh4').innerHTML=zerocontents.length;
myhs=zerocontents.split('href=');
myts=zerocontents.split('title="');
colis="green";
if (myhs.length < nums.length) {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
docss(colis);
} else {
var ok=prompt("Ready to go? ", "Y");
cnt=cnt + 1;
if (ok != null) {
if ((ok + ' ').toUpperCase().substring(0,1) == "N" || cnt >= 2) location.href='http://www.rjmprogramming.com.au/ITblog/';
} else {
location.href='http://www.rjmprogramming.com.au/';
}
}
} else {
//alert(myhs.length + " " + myts.length);
for (i=1; i<=nums.length; i++) {
things=myhs[i].split(' ');
hrefs[i - 1]=things[0].replace("'","").replace("'","").replace('"','').replace('"','');
//alert(hrefs[i - 1]);
}
for (i=1; i<=nums.length; i++) {
things=myts[eval(i * 2)].split('"');
titls[i - 1]=things[0];
}
}
docss("green");
}
}

function predocss(colis) {
var i, j, bits, myhs, myts, things, wascolis='', ahref='';
if (typeof(colis) == "undefined") colis="";
if (zerocontents == "") {
zerocontents=$("#izero").get(0).contentWindow.document.body.innerHTML;
myhs=zerocontents.split('href=');
myts=zerocontents.split('title="');
if (myhs.length < nums.length) {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
docss(colis);
} else {
var ok=prompt("Ready to go? ", "Y");
cnt=cnt + 1;
if (ok != null) {
if ((ok + ' ').toUpperCase().substring(0,1) == "N" || cnt >= 2) location.href='http://www.rjmprogramming.com.au/ITblog/';
} else {
location.href='http://www.rjmprogramming.com.au/';
}
}
}
if (myhs.length >= nums.length) {
//alert(myhs.length + " " + myts.length);
for (i=1; i<=nums.length; i++) {
things=myhs[i].split(' ');
hrefs[i - 1]=things[0].replace("'","").replace("'","").replace('"','').replace('"','');
//alert(hrefs[i - 1]);
}
for (i=1; i<=nums.length; i++) {
things=myts[eval(i * 2)].split('"');
titls[i - 1]=things[0];
}
docss(colis);
} else {
zerocontents="";
setTimeout(predocss(colis), 2000);
}
}
}

function docss(colis) {
var i, bits, myhs, things, wascolis='', ahref='';
if (typeof(colis) == "undefined") colis="";
if (colis == "") {
colis="lightgreen";
} else {
bits=colis.split("/");
colis=bits[bits.length - 1];
wascolis=colis;
for (i=0; i<nums.length; i++) {
//if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
// document.getElementById('myh4').innerHTML=i;
//}
colis=colis.replace(nums[i] + ".jpg", cols[i]);
if (colis != wascolis && wascolis.replace(' ','').replace(' ','') != '') {
//alert(hrefs[0] + ' $("a").html("<a target=_blank title=' + "'" + colis.replace("green", "green, so it must be Belgium!") + "' href='" + hrefs[i] + "'>" + colis.replace("green", "green, so it must be Belgium!") + '</a>');
ahref='<a target=_blank title=' + "'" + titls[i] + "' href='" + "#" + "'>" + titls[i] + '</a>';
//alert(ahref);
$("a").attr('onclick','').unbind('click');
eval('$("a").click(function(evt){ window.open("' + hrefs[i] + '","' + titls[i] + '"); evt.stopImmediatePropagation(); evt.stopPropagation(); evt.preventDefault(); })');
$("p").text("");
eval('$("a").html("' + ahref + '")');
eval('$("a").css({"color": "' + colis + '"})');
wascolis=' ';
if (lasthref == hrefs[i]) wascolis=' ';
lasthref=hrefs[i];
}
}
}
eval('$("img").parentsUntil("div").css({"color": "' + colis + '", "border": "2px solid ' + colis + '"})');
if (wascolis == '') eval('$("p").text("I am ' + colis.replace("green", "green, so it must be Belgium!") + '")');
if (wascolis == '') eval('$("a").text("I am ' + colis.replace("green", "green, so it must be Belgium!") + '")');
if (wascolis == ' ') {
$("a").click();
}
}

function gettitle(ocolis) {
var colis=ocolis.src;
var i, bits, myhs, things, wascolis='', ahref='';
if (ocolis.title == '') {
if (typeof(colis) == "undefined") colis="";
if (colis == "") {
colis="lightgreen";
} else {
bits=colis.split("/");
colis=bits[bits.length - 1];
wascolis=colis;
for (i=0; i<nums.length; i++) {
colis=colis.replace(nums[i] + ".jpg", cols[i]);
if (colis != wascolis && wascolis.replace(' ','').replace(' ','') != '') {
ocolis.title=titls[i];
wascolis=' ';
}
}
}
}
}


$(document).ready(function(){
$("span").parentsUntil("div").css({"color": "red", "border": "2px solid red"});
// $("img").parentsUntil("div").css({"color": "lightgreen", "border": "2px solid lightgreen"});
$("p").parentsUntil("div").css({"color": "lightblue", "border": "2px solid lightblue"});
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//nums=['one','two'];
//setTimeout(predocss("green"), 3000); //docss("green");
cnt=cnt;
} else {
setTimeout(predocss("green"), 1000); //docss("green");
}
});
</script>
</head>

<body align='center' style='background-color: #f0f0f0;'>
<h1 align='center' onclick="window.open('http://www.rjmprogramming.com.au/ITblog/','_blank');">Recent Posts from Blog</h1>
<h4 id='myh4' align='center'>RJM Programming - May, 2015</h4>
<div align='center'>
<table style="width:600px;background-color:white;" align='center'><tbody align='center'>
<tr><td><p>Please click on tutorial image of interest </p><a target=_blank title='' href='#'></a></td><td><img onmouseover='gettitle(this);' title='' onclick="docss(this.src);" src="one.jpg" style="height:150px;width:200px;" /></td><td><img onmouseover='gettitle(this);' title='' onclick="docss(this.src);" src="two.jpg" style="height:150px;width:200px;" /></td></tr>
<tr><td><img onmouseover='gettitle(this);' title='' onclick="docss(this.src);" src="three.jpg" style="height:150px;width:200px;" /></td><td><img onmouseover='gettitle(this);' title='' onclick="docss(this.src);" src="four.jpg" style="height:150px;width:200px;" /></td><td><img onmouseover='gettitle(this);' title='' onclick="docss(this.src);" src="five.jpg" style="height:150px;width:200px;" /></td></tr>
<tr><td><img onmouseover='gettitle(this);' title='' onclick="docss(this.src);" src="six.jpg" style="height:150px;width:200px;" /></td><td><img onmouseover='gettitle(this);' title='' onclick="docss(this.src);" src="seven.jpg" style="height:150px;width:200px;" /></td><td><img onmouseover='gettitle(this);' title='' onclick="docss(this.src);" src="eight.jpg" style="height:150px;width:200px;" /></td></tr>
</tbody</table>
</div>
<iframe style='display:none;' id='izero' src='zero.html' title='zero' onload='iloaded();'></iframe>
</body>

</html>