The W
Views: 99853425
Main | FAQ | Search: Y! / G | Color chart | Log in for more!
20.10.07 1312
The 7 - the-w.com Site Feedback - WrestleMania countdown Register and log in to post!
(262 newer) Next thread | Previous thread
User
Post (7 total)
Oliver
Scrapple
Level: 127

Posts: 1163/4943
EXP: 23325795
For next: 400836

Since: 20.6.02
From: #YEG

Since last post: 1 day
Last activity: 12 hours
AIM:  
ICQ:  
Y!:
#1 Posted on 11.3.05 1429.04
Reposted on: 11.3.12 1429.38
I'm liking the Wrestlemania countdown at the top of the screen. Is that done in PHP or Javascript? How easy would it be to create one for a website, but with a different date?
Promote this thread!
CRZ
Big Brother
Administrator
Level: 213

Posts: 5906/16293
EXP: 142543692
For next: 823215

Since: 9.12.01
From: ミネアポリス

Since last post: 21 hours
Last activity: 23 min.
AIM:  
ICQ:  
Y!:
#2 Posted on 11.3.05 1453.55
Reposted on: 11.3.12 1455.54
    Originally posted by SOK
    I'm liking the Wrestlemania countdown at the top of the screen. Is that done in PHP or Javascript?
"View Source"

(php)

This is the third time we've done it (because it's the third WrestleMania since we opened this board, probably).

    How easy would it be to create one for a website, but with a different date?
Use this code, but with a different date:

$secs=1112572800-ctime();
$wtag="WrestleMania 21 begins in ".number_format($secs)." seconds";

So...pretty easy (assuming you have php)?
Oliver
Scrapple
Level: 127

Posts: 1165/4943
EXP: 23325795
For next: 400836

Since: 20.6.02
From: #YEG

Since last post: 1 day
Last activity: 12 hours
AIM:  
ICQ:  
Y!:
#3 Posted on 12.3.05 2016.59
Reposted on: 12.3.12 2017.01
    Originally posted by CRZ
      Originally posted by SOK
      I'm liking the Wrestlemania countdown at the top of the screen. Is that done in PHP or Javascript?
    "View Source"

    (php)

    This is the third time we've done it (because it's the third WrestleMania since we opened this board, probably).

      How easy would it be to create one for a website, but with a different date?
    Use this code, but with a different date:

    $secs=1112572800-ctime();
    $wtag="WrestleMania 21 begins in ".number_format($secs)." seconds";

    So...pretty easy (assuming you have php)?
Two things: I'm not sure if my site HAS php - I'm assuming not, since it's on a free server.

Also, I didn't want to steal the code (by using the VIEW SOURCE function) without your permission. That's just wrong.

Thanks!
EddieBurkett
Boudin blanc
Level: 92

Posts: 1107/2315
EXP: 7614541
For next: 142426

Since: 3.1.02
From: GA in person, NJ in heart

Since last post: 2 days
Last activity: 3 hours
#4 Posted on 13.3.05 0106.07
Reposted on: 13.3.12 0106.49
    Originally posted by SOK
    Also, I didn't want to steal the code (by using the VIEW SOURCE function) without your permission. That's just wrong.


The neat thing about php is that you couldn't have done that even if you tried. The math is all done on the server before your browser even begins to render the page, so all you would see if you did view source would see would be the end result of the math, not the formula itself.
Mr. Boffo
Scrapple
Level: 114

Posts: 898/3844
EXP: 16151353
For next: 158264

Since: 24.3.02
From: Oshkosh, WI

Since last post: 448 days
Last activity: 409 days
#5 Posted on 13.3.05 2032.26
Reposted on: 13.3.12 2042.31
I believe you can easily do something like that in Javascript though. I haven't actually tried it out, but perhaps http://javascriptkit.com/javatutors/datedifference.shtml would help you out.
ekedolphin
Scrapple
Level: 132

Posts: 2362/5387
EXP: 27003483
For next: 128521

Since: 12.1.02
From: Indianapolis, IN; now residing in Suffolk, VA

Since last post: 124 days
Last activity: 33 days
#6 Posted on 20.3.05 0058.49
Reposted on: 20.3.12 0059.02
Is the logo change every day done automatically, or manually? Not that I've any interest in using a countdown myself, I'm simply curious.
CRZ
Big Brother
Administrator
Level: 213

Posts: 5938/16293
EXP: 142543692
For next: 823215

Since: 9.12.01
From: ミネアポリス

Since last post: 21 hours
Last activity: 23 min.
AIM:  
ICQ:  
Y!:
#7 Posted on 20.3.05 1515.12
Reposted on: 20.3.12 1522.00
    Originally posted by ekedolphin
    Is the logo change every day done automatically, or manually? Not that I've any interest in using a countdown myself, I'm simply curious.
It's been automatic, every day at midnight (CST) since January.
ALL ORIGINAL POSTS IN THIS THREAD ARE NOW AVAILABLE
Thread ahead: Tables
Next thread: Time zone stuff
Previous thread: Our PayPal donation button
(262 newer) Next thread | Previous thread
The 7 - the-w.com Site Feedback - WrestleMania countdownRegister and log in to post!

The W™ message board - 7 year recycle

ZimBoard
©2001-2014 Brothers Zim
This old hunk of junk rendered your page in 0.178 seconds.