Based on the HaloScan comment fix, seen on Angel's blog, I present my Enetation comments fix.
I recommend you read haloscan fix for more details on how this works.
This will make the comment system work even if the user doens't have javascript or the enetation server is down.
Enter the following code...
<script type="text/javascript">
var nums = new Array();
function myCount(id){
if (nums[id]){
if (nums[id] == 1){
document.write(" (1)");
} else {
document.write("s (" + nums[id] + ")" );
}
} else {
document.write(" (0)");
}
}
</script>
...before this line (in the head of the html).
<script type="text/javascript" src="http://enetation.co.uk/user.php?user=UserName"></script>
And replace the comment code which should look like this...
<script>LinktoComments('<$BlogItemNumber$>')</script>
<noscript><a href="http://enetation.co.uk/comments.php?user=UserName&commentid=<$BlogItemNumber$>">Comment</a></noscript>
...with something like this.
<a href="http://enetation.co.uk/comments.php?user=UserName&commentid=<$BlogItemNumber$>" onclick="window.open(this.href,'','directories=0,height=450,width=420,location=0,resizable=1,scrollbars=1,toolbar=0');return false;">
Comment<script type="text/javascript">myCount('<$BlogItemNumber$>'); </script></a>
and replace UserName with your username
I recommend you read haloscan fix for more details on how this works.
This will make the comment system work even if the user doens't have javascript or the enetation server is down.
Enter the following code...
<script type="text/javascript">
var nums = new Array();
function myCount(id){
if (nums[id]){
if (nums[id] == 1){
document.write(" (1)");
} else {
document.write("s (" + nums[id] + ")" );
}
} else {
document.write(" (0)");
}
}
</script>
...before this line (in the head of the html).
<script type="text/javascript" src="http://enetation.co.uk/user.php?user=UserName"></script>
And replace the comment code which should look like this...
<script>LinktoComments('<$BlogItemNumber$>')</script>
<noscript><a href="http://enetation.co.uk/comments.php?user=UserName&commentid=<$BlogItemNumber$>">Comment</a></noscript>
...with something like this.
<a href="http://enetation.co.uk/comments.php?user=UserName&commentid=<$BlogItemNumber$>" onclick="window.open(this.href,'','directories=0,height=450,width=420,location=0,resizable=1,scrollbars=1,toolbar=0');return false;">
Comment<script type="text/javascript">myCount('<$BlogItemNumber$>'); </script></a>
and replace UserName with your username
One for the geeks and a game
Turn a laptop display into a 3D display
Scroll to the bottom; Figure 4 is a pretty good summation of the whole page.
Dyson Telescope Game. Use the sucking telescoping things to push and pull a ball to get it down the hole.
This game reminds me of Whizzballseen here on June 18th.
Turn a laptop display into a 3D display
Scroll to the bottom; Figure 4 is a pretty good summation of the whole page.
Dyson Telescope Game. Use the sucking telescoping things to push and pull a ball to get it down the hole.
This game reminds me of Whizzballseen here on June 18th.
Profession jokes
I found this site via the Physicists page,
"CAUTION! Do not look into laser with remaining good eye."
but who can resist a Lawyer...
"There are two kinds of lawyers, those who know the law and those who know the judge."
...or a Teacher joke?
"Teacher: Tim, you missed school yesterday, didn't you? . . . Tim: Not a bit!"
Each has a "You might be a [Job Titile] if...." section,
Physicists "you try to explain entropy to strangers at your table during casual dinner conversation."
and a " "[Job Title]s do it ..." section.
"Physicists do it at the speed of light."
I found this site via the Physicists page,
"CAUTION! Do not look into laser with remaining good eye."
but who can resist a Lawyer...
"There are two kinds of lawyers, those who know the law and those who know the judge."
...or a Teacher joke?
"Teacher: Tim, you missed school yesterday, didn't you? . . . Tim: Not a bit!"
Each has a "You might be a [Job Titile] if...." section,
Physicists "you try to explain entropy to strangers at your table during casual dinner conversation."
and a " "[Job Title]s do it ..." section.
"Physicists do it at the speed of light."