View Full Version : Dynamic change on clock

Dimi Cost
03-20-2011, 07:28 PM
Hello, I would like to learn if there is way to solve my problem as I want to change every part dynamic the format on this clock :http://www.dynamicdrive.com/dynamicindex6/localtime.htm
with different ways:

28th March 2010
28 March 2010
28th Mar 2010
28 Mar 2010
28th March 10
28 March 10
28th Mar 10
28 Mar 10
28th March
28 March
28th Mar
28 Mar

5:28:12 am
5:28 am

03-20-2011, 07:47 PM
Can you explain more? A single clock can only display the time in one way. Why do you need all of those ways? Do you want to make this an option for the user?

I have also moved this post to the right section. Is is about Javascript, but it's specifically about a Dynamic Drive Script.

Also, if you need help with a specific page you are making, please link us to it. If this is a general question about the script we may be able to help without that.

Dimi Cost
03-20-2011, 09:15 PM
Hello,as I can see the example is a global clock that the display change with short or long ,the best from all.I need for my problem a complex global clock.The user must change every part he want and combining all of them day,date,time in a textbox from dropdown lists.Do you believe it is possible;

<body onload=" ">
<form action=" " method ="post">
<fieldset class="field">
<legend><strong> </strong></legend>
<input type="text" name="global" id="globalclock"></input>
<fieldset class="field">
<legend><strong><em>Select the city</em></strong></legend>
<select name="city" onClick="">
<option value="0">Adelaide</option>
<option value="1">Anchorage</option>
<option value="2">Athens</option>
<option value="3">Baker Island</option>
<option value="4">Buenes Aires</option>
<option value="5">Caracas</option>
<option value="6">Chihuahua</option>
<option value="7">Denver</option>
<option value="8">Dhaka</option>
<option value="9">Dubai</option>
<option value="10">Gander</option>
<option value="11">Grytviken</option>
<option value="12">Honolulu</option>
<option value="13">Iles Marquises</option>
<option value="14">Kabul</option>
<option value="15">Karachi</option>
<option value="16">Katmandu</option>
<option value="17">Kingston, Norfolk Island</option>
<option value="18">London</option>
<option value="19">Lord Howe Island</option>
<option value="20">Magadan</option>
<option value="21">Manila</option>
<option value="22" selected="selected">Moscow</option>
<option value="23">Mumbai</option>
<option value="24">New York</option>
<option value="25">Paris</option>
<option value="26">Ponta Delgada</option>
<option value="27">Rangoon</option>
<option value="28">Rawaki</option>
<option value="29">Sambas</option>
<option value="30">Samoa</option>
<option value="31">Starbuck Island</option>
<option value="32">Sydney</option>
<option value="33">Tehran</option>
<option value="34">Tokyo</option>
<option value="35">Vancouver</option>
<option value="36">Wellington</option>
<fieldset class="field">
<legend><strong><em>Select the date</em></strong></legend>
<select name="Date" id="Date" onClick="">
<option value="a">28th March 2010</option>
<option value="b">28 March 2010</option>
<option value="c">28th Mar 2010</option>
<option value="d">28 Mar 2010</option>
<option value="e">28/03/2010</option>
<option value="f">28th March 10</option>
<option value="g">28 March 10</option>
<option value="h">28th Mar 10</option>
<option value="i">28 Mar 10</option>
<option value="j">28/03/10</option>
<option value="k">28th March</option>
<option value="l">28 March</option>
<option value="m">28th Mar</option>
<option value="o">28 Mar</option>
<option value="p">28/03</option>
<fieldset class="field">
<legend><strong><em>Select the day</em></strong></legend>
<select name="day" id="day" onClick="">
<option value="f">Sunday</option>
<option value="s">Sun</option>
<fieldset class="field">
<legend><strong><em>Select the time</em></strong></legend>
<select name="time" id="time" onClick="">
<option value="a">5:28:12 am</option>
<option value="b">5:28 am</option>
<option value="c">5:28:12</option>
<option value="d">17:28:12</option>
<option value="e">17:28</option>
<option value="f">5:28</option>
<fieldset class="field">
<input type="submit" onClick="submit" />