TinyPortal
Development => Block Codes => Topic started by: rumboogy on March 22, 2008, 03:30:48 AM
Yeah I know not many of you can use something like this...but is a new script. Just plug it into a script block (right or left).
Quote<table border="0" width="225" id="table1">
<tr>
<td><script language="JavaScript" type="text/javascript">
<!--script by Colin G. Hayes -->
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Begin
function dhage (form) {
var hy = form.humanyears.value;
if (hy >= 21){
dy = (hy - 21)/4 + 2;
} else {
dy = hy/10.5;
}
var hdy = 0;
if (hy >= 2){
hdy = 21 + ((hy - 2) * 4);
} else {
hdy = hy * 10.5;
}
form.dogyears.value = Math.round(dy *100)/100;
form.humandogyears.value = Math.round(hdy *100)/100;
}
// End -->
</script>
<script language="JavaScript" type="text/javascript">
<!--script by Colin G. Hayes -->
<!--
today=new Date();
y0=today.getFullYear();
// --->
</script>
<noscript>
<font size="1"><p class="nojs">You do not have JavaScript enabled.
Dogs Worldwide.com website requires the use of JavaScript, so please enable before continuing.</p>
</noscript> </font> <form>
<p align="left">
<td class="cut1" align="center"><font size="1">Your age (dogs age) in yrs:
<input size="2" name="humanyears" style="color: rgb(255, 0, 0);">
<input name="button" onclick="dhage(this.form)" value="Calculate" type="button">
****
<input name="reset" id="reset" value="Reset" type="reset"></font></p>
<p align="left"><font size="1">Your human age in dog yrs:
<input size="2" name="dogyears" style="color: rgb(255, 0, 0);">
Your dog age in human yrs:
<input size="2" name="humandogyears" style="color: rgb(255, 0, 0);"></font></p>
<p align="left"><font size="1">Note: It is a common belief that 1 human year is
equal to 7 dog years. That is not very accurate,
since dogs reach adulthood within the first couple
of years. The formula used above is from a canine
expert and is a bit more accurate. (as accurate as
one can judge these things). The formula is: 10.5
dog years per human year for the first 2 years,
then 4 dog years per human year for each year after.
</font>
</form>
<address align="left"><span style="font-style: normal"><font size="1">
</table>
Enjoy...for those of you that have dogs...or dog sites.
Here is a DEMO of the script on one of my sites: http://www.wallyjarratt.com/southernbeagles (http://www.wallyjarratt.com/southernbeagles)
Wally
OMG, my dog will be 21 in 2 months!! im going to throw him 1 heck of a party!!!! the works :2funny:
dang it i have no pix of him on my new pc :'(
but very good mod you found RumBoogy!!! ;)
Hey! Look what I found. Someone that can use this mod. Cool! Thanks.
RemedyDog Forums (http://remedydog.com)
Where dogs would go if they could talk