Caskbill
<font color="blue">DVC-Operations<br>DVC-Planning<
- Joined
- Nov 19, 2000
- Messages
- 7,189
<I><B>From Mr. J. Cricket from other post:</b></i>
Thanks:
(1) Agreed, and here it is. As you're aware, I didn't just want to do it without getting your OK. Let me know once you've seen this.
(2)Agreed. That makes sense also. I'll take that on a case by case basis if asked. Of course, if someone is not able to read JavaScript, then I'd say they're just out of luck as it could be too probable to make a mistake in the code if they didn't know what a line of code actually meant.
(3)Absolutely fair enough. If by chance it caused a problem, I would also want it pulled. It should be OK though. I even kept the random generator in the code for the safety feature.
(4)I agree also. I'll send him a message to refer to this post. He can display the source code if he wants to see it. I kept his name in there as the original author, and added my name to the modifications.
Per your remark I never thought you were picking on me. You have a board to protect, and you don't know everybody's programming capabilities. In your original post about 'get your countdown timers here', you clearly state not to make changes in the code. This is understandable, and that's why I definitely wanted your OK before doing anything. It would be wrong of me to simply do this and not say anything.
Had you said NO, I would have been disappointed, but would have understood. Thanks for your understanding on this.
Bill
Here is the code for my signature as I would like to use it. As you can see, I tried to keep it simple and clean looking.
<img height="100" src="http://www.wdwinfo.com/sites/caskbill/usflag.gif" border="0" alt="U.S. Flag"><font face="Comic Sans MS, Arial" color="blueviolet" size="4"><b>Caskbill </b></font>
<Script language='Javascript'>var rndNum = Math.floor(Math.random() * 10000);eval("var CDTDate" + rndNum + " = 'June 7, 2002 9:59:59 AM EDT';");eval("var CDT2Date" + rndNum + " = 'December 30, 2002 4:00:00 PM EST';");document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");document.writeln('<font size=2 color=red>Our last stay at OKW was....       </font>');document.writeln('<font size=2 color=blue>and our next stay will be at BCV in only:</font><br>');document.writeln("<input type=text value='' size=40 name='WrittenByJamesMVenglarikII'>");document.writeln("<input type=text value='' size=40 name='ModifiedByBillNeth'>");document.writeln("</form>");if (theFunction) theFunction += "var d = new Date();";else var theFunction = "var d = new Date();";theFunction += "var c = new Date('" + eval("CDTDate" + rndNum) + "');";theFunction += "var c2 = new Date('" + eval("CDT2Date" + rndNum) + "');";theFunction += "var tzo = (d.getTimezoneOffset() - c.getTimezoneOffset()) * 60;";theFunction += "var tzo2 = (c2.getTimezoneOffset() - d.getTimezoneOffset()) * 60;";theFunction += "var diff = ((d - c)/1000) + tzo;";theFunction += "var diff2 = ((c2 - d)/1000) + tzo2;";theFunction += "var days = Math.floor(diff / 86400);";theFunction += "var days2 = Math.floor(diff2 / 86400);";theFunction += "var rem = diff - (days * 86400);";theFunction += "var rem2 = diff2 - (days2 * 86400);";theFunction += "var hours = Math.floor(rem / 3600);";theFunction += "var hours2 = Math.floor(rem2 / 3600);";theFunction += "rem = rem - (hours * 3600);";theFunction += "rem2 = rem2 - (hours2 * 3600);";theFunction += "var minutes = Math.floor(rem / 60);";theFunction += "var minutes2 = Math.floor(rem2 / 60);";theFunction += "rem = rem - (minutes * 60);";theFunction += "rem2 = rem2 - (minutes2 * 60);";theFunction += "var seconds = Math.floor(rem);";theFunction += "var seconds2 = Math.floor(rem2);";theFunction += "if ((days < 0) | (hours < 0) | (minutes < 0) | (seconds < 0)) ";theFunction += "var out = 'Now living easy at BCV';";theFunction += "else ";theFunction += "var out = ' ' + days + ' days ' + hours + ' hrs, ' + minutes + ' mins, ' + seconds + ' secs. ago.';";theFunction += "if ((days2 < 0) | (hours2 < 0) | (minutes2 < 0) | (seconds2 < 0)) ";theFunction += "var out2 = 'Now living easy at OKW';";theFunction += "else ";theFunction += "var out2 = ' ' + days2 + ' days ' + hours2 + ' hrs, ' + minutes2 + ' mins, ' + seconds2 + ' secs. ';";theFunction += "document.forms.CDTform" + rndNum + ".elements.WrittenByJamesMVenglarikII.value = out;";theFunction += "document.forms.CDTform" + rndNum + ".elements.ModifiedByBillNeth.value = out2;";setInterval(theFunction, 1000);</Script>
Real current signature follows below......
Go ahead and do it as long as you meet 4 conditions:
1) Post the code here first outside of your signature and get the "OK" from one of us before you put it in your signature.
2) You are responsible for the mass of people that ask about it after you show it off (yes, it will happen ) They will have to follow the same rules as you did to put it into their signatures too. This means that they need to understand the changes and not just how to "cut" and "paste" them.
3) Know that we will not support it now, or in the future. If it causes a problem, we will pull it without warning or explanation.
4) Notify Jim that you are doing it (if he hasn't seen this already). That's just polite.
This really goes to any custom coding, and not just you, so don't think we are picking on you or anything. We talked about it and it would be unfair to disallow you the custom code when the fact is the regular countdowns wouldn't be there if we disallowed coding to begin with (which we did do for a while).
Good Luck!
Thanks:
(1) Agreed, and here it is. As you're aware, I didn't just want to do it without getting your OK. Let me know once you've seen this.
(2)Agreed. That makes sense also. I'll take that on a case by case basis if asked. Of course, if someone is not able to read JavaScript, then I'd say they're just out of luck as it could be too probable to make a mistake in the code if they didn't know what a line of code actually meant.
(3)Absolutely fair enough. If by chance it caused a problem, I would also want it pulled. It should be OK though. I even kept the random generator in the code for the safety feature.
(4)I agree also. I'll send him a message to refer to this post. He can display the source code if he wants to see it. I kept his name in there as the original author, and added my name to the modifications.
Per your remark I never thought you were picking on me. You have a board to protect, and you don't know everybody's programming capabilities. In your original post about 'get your countdown timers here', you clearly state not to make changes in the code. This is understandable, and that's why I definitely wanted your OK before doing anything. It would be wrong of me to simply do this and not say anything.
Had you said NO, I would have been disappointed, but would have understood. Thanks for your understanding on this.
Bill
Here is the code for my signature as I would like to use it. As you can see, I tried to keep it simple and clean looking.
<img height="100" src="http://www.wdwinfo.com/sites/caskbill/usflag.gif" border="0" alt="U.S. Flag"><font face="Comic Sans MS, Arial" color="blueviolet" size="4"><b>Caskbill </b></font>
<Script language='Javascript'>var rndNum = Math.floor(Math.random() * 10000);eval("var CDTDate" + rndNum + " = 'June 7, 2002 9:59:59 AM EDT';");eval("var CDT2Date" + rndNum + " = 'December 30, 2002 4:00:00 PM EST';");document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");document.writeln('<font size=2 color=red>Our last stay at OKW was....       </font>');document.writeln('<font size=2 color=blue>and our next stay will be at BCV in only:</font><br>');document.writeln("<input type=text value='' size=40 name='WrittenByJamesMVenglarikII'>");document.writeln("<input type=text value='' size=40 name='ModifiedByBillNeth'>");document.writeln("</form>");if (theFunction) theFunction += "var d = new Date();";else var theFunction = "var d = new Date();";theFunction += "var c = new Date('" + eval("CDTDate" + rndNum) + "');";theFunction += "var c2 = new Date('" + eval("CDT2Date" + rndNum) + "');";theFunction += "var tzo = (d.getTimezoneOffset() - c.getTimezoneOffset()) * 60;";theFunction += "var tzo2 = (c2.getTimezoneOffset() - d.getTimezoneOffset()) * 60;";theFunction += "var diff = ((d - c)/1000) + tzo;";theFunction += "var diff2 = ((c2 - d)/1000) + tzo2;";theFunction += "var days = Math.floor(diff / 86400);";theFunction += "var days2 = Math.floor(diff2 / 86400);";theFunction += "var rem = diff - (days * 86400);";theFunction += "var rem2 = diff2 - (days2 * 86400);";theFunction += "var hours = Math.floor(rem / 3600);";theFunction += "var hours2 = Math.floor(rem2 / 3600);";theFunction += "rem = rem - (hours * 3600);";theFunction += "rem2 = rem2 - (hours2 * 3600);";theFunction += "var minutes = Math.floor(rem / 60);";theFunction += "var minutes2 = Math.floor(rem2 / 60);";theFunction += "rem = rem - (minutes * 60);";theFunction += "rem2 = rem2 - (minutes2 * 60);";theFunction += "var seconds = Math.floor(rem);";theFunction += "var seconds2 = Math.floor(rem2);";theFunction += "if ((days < 0) | (hours < 0) | (minutes < 0) | (seconds < 0)) ";theFunction += "var out = 'Now living easy at BCV';";theFunction += "else ";theFunction += "var out = ' ' + days + ' days ' + hours + ' hrs, ' + minutes + ' mins, ' + seconds + ' secs. ago.';";theFunction += "if ((days2 < 0) | (hours2 < 0) | (minutes2 < 0) | (seconds2 < 0)) ";theFunction += "var out2 = 'Now living easy at OKW';";theFunction += "else ";theFunction += "var out2 = ' ' + days2 + ' days ' + hours2 + ' hrs, ' + minutes2 + ' mins, ' + seconds2 + ' secs. ';";theFunction += "document.forms.CDTform" + rndNum + ".elements.WrittenByJamesMVenglarikII.value = out;";theFunction += "document.forms.CDTform" + rndNum + ".elements.ModifiedByBillNeth.value = out2;";setInterval(theFunction, 1000);</Script>
Real current signature follows below......