Jump to content


Submitter

SUPPORT TOPIC File Information

  • Submitted: Dec 18 2007 09:37 PM
  • Last Updated: Dec 18 2007 10:11 PM
  • File Size: 1.25K
  • Views: 2409
  • Downloads: 369

Previous Versions

  • 18 Dec 2007 Download ClockPM
  • 18 Dec 2007 Download ClockPM

Download ClockPM

* * * * * 1 Votes



ClockPM is a small snippet, that displays a clock from WorldTimeServer.com.

Click here to see an example


// Snippet name: ClockPM
// Snippet description: Shows a Clock from WorldTimeServer
// Author: Paul Moritz, December 2007

// Information about the clock at www.worldtimeserver.com

// Usage: [!ClockPM?country=AT&size=100&color=ff0000&city=Wien!]
/// Or: [!ClockPM!] to use default settings

//---------- Start of configuration variable assignments ----------//

// Country AT = Austria, US-NY = New York, ....
// this parameter defines the timezone
$country = isset($country) ? $country : AT;

// Size 100,150,175,200,250,300 points
// size of the clock image
$size = isset($size) ? $size : 100;

// color
$color = isset($color) ? $color : "467aa7";

// City - if provided the text is shown below the clock
$city = isset($city) ? $city : " ";


// initialize the data variable to be returned

$output="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\"><embed src=\"http://www.worldtimeserver.com/clocks/wtsc...ry."\" width=\"".$size."\" height=\"".$size."\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" /></td></tr><tr><td align=\"center\"><h2>".$city."</h2></td></tr></table>";

// return snippet results for display
return $output;






  • 248 Total Files
  • 19 Total Categories
  • 50 Total Authors
  • 131,652 Total Downloads
  • TripTracker Gallery Latest File
  • Dean Latest Submitter