wannabeeaweak
Sep 25 2004, 06:08 AM
| | here this script will display the date for your user/visitors input it in a html file in the head or body <script language="Javascript"> <!-- /* Today's date script Visit java-scripts.net or http://wsabstract.com for this script */
var dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
var monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
var now = new Date
document.write("Today is " + dayName[now.getDay()] + ", " + monName[now.getMonth()] + " "+now.getDate() +".")
//--> </script>
|
Reply
Bigyan
Oct 29 2004, 06:22 PM
Don't you people ever get tired of writin these scripts ?? I've written this script and seen this script atleast 20 times. Please stop writing these basic scripts
Reply
r3d
Oct 30 2004, 05:31 AM
actually with php, i don't know what's the use of js. i don't even bother to learn it. this basic script show me what js can do, even if this script is really basic
Reply
bbdesign
Nov 4 2004, 01:33 AM
Javascript will work on any browser that supports it because it is client-side. PHP only works on servers in which it is installed
Reply
Hercco
Nov 5 2004, 06:32 PM
QUOTE(bbdesign @ Nov 4 2004, 03:33 AM) Javascript will work on any browser that supports it because it is client-side. PHP only works on servers in which it is installed And which do you think is best? As a web designer, with which one you know that user is seeing a date? And R3d Javascript is really worth learning. It isn't the best technology to get a date or time to your website but you can do lot of stuff that are really useful for your visitors. A typical example is manipulating form data on client side. For example, it is extremely useful to be able to check/uncheck all checkboxes at once. My view is that Javascript shouldn't be used to replace server-side stuff but to do stuff that are useful (ie. not just flashy) but not possible or very clumsy with server-side program.
Reply
avalon
Nov 6 2004, 09:55 AM
The problem with JS is that it rely the user computer time, if the user computer date and time is not adjusted then the time showing will be inaccurate. For PHP it read the server time, no matter what date and time setting is made on the user computer the result will remain consistent and unaffected by the user computer setting. Most users will have no problem viewing becos PHP will return the time and date in plain text format whereas JS may have problem with users who choose to disable JS for security reasons and older browser that do not support JS. Hope the above explainations will help you to see what want you are choosing and what to expect.
Reply
lhunath
Nov 6 2004, 10:52 AM
QUOTE(Bigyan @ Oct 29 2004, 08:22 PM) Don't you people ever get tired of writin these scripts ?? I've written this script and seen this script atleast 20 times. Please stop writing these basic scripts Thank you  finally somebody who agrees with me. Even though I doubt he wrote it. I'm sure he copy pasted it from somewhere... *sigh*
Reply
Similar Topics
Keywords : date, site
- Advertisingknowhow
Best advertising site (1)
Site Language
Other languages permitted (9) Hi. I'm thinking of transferring my website to astahost, but I stumbled upon a problem. In your
TOS, it is stated that hosted websites must be in English. My website, which is Joomla based, is a
community site with two languages, Portuguese and English, with Portuguese being the default
language. So, I'd like to know if these rules are final or if a Portuguese website could be
accepted. I'm not expecting you to just open an exception because I asked you to, but it would
be cool if you could expose some conditions by which I could abide to get my wish. I'....
Need To Copy An Entire Site..
Help needed (10) I ran this electronic shop here in the City and I dont have internet connection so, it would be a
problem for me to check out some of the ICs and Parts that I need for conversion. I found this site:
www.datasheetcatalog.com and find it very usable. It contains a lot of part lists that I need but I
couldn't just download part by part since it would take me a couple of years to do it.. I have
already tried a couple of softwares like HTTrack Website - Did not download anything at all Site
Ripper - Hang up Is there a nice freeware for this.. It would help me much.. tha....
Free Fast Web Submission
everyone now can submit the site they want easly and also free (2) you can now submit your site easily to the google search engine... and all what you can do is go to
this web site: http://www.google.com/addurl/ and there's a lot of great website that does
that to all search engines hope you like it ....
Nice Models And Free Models, New Site!
Game Development (6) Hey there! We've just started a small 3d model site which would be cool for your game
development: http://www.3d4ya.com We have free real-time models like this: and
others: Developers always need model, so we try our best to make as many free model as
we can and hope they might help you! New products are available every week, we kindly invite you to
visit 3d4ya.com frequently to check them out! Sorry if you find it annoying. 3d4ya.com....
Help Me Host My Site On My Pc
(4) Hey! When I changed my ISP, we had to buy a router, because the broadband they gave us, only had
one port. And now, I don't know how to port forward.. I have a D-Link DIR-301. I've tried
to follow the instructions for WAMP(or Apache I think it was), on portforward.com.. but with no
success.. I still can't connect to the server. I am using the IP that I get on whatismyip.com..
any idea what I have to do? I have 3 computers connected with a cable, using Windows XP, and 2
laptops, using windows Vista, that's connecting to the router, wireless. My PC is r....
A Site I Put Together Over The Last 3 Days
(7) http://seriouslyfree.50webs.com Wht do you think of it? I know the Template is pretty basic as of
now, I was thinking about chnaging that after I further expanded the site.....
Free Site
(15) Try http://sites.google.com for free websites you can create your own site using simple controls
there. If you have tried then post your reviews....
Date Timezones.
(2) is there a better code to use so we can pot different time zones?....
Request Form Site Suspended
(4) the request form site is Suspended>.<....
Help On Calc Date Issues !
(4) Hi, all I need going to write a small function that calc some interval from day to day and to
display it base on their size. For example, if the value was 1 minute or over that it display as x
min. or if it hours then display it as x hours and so on. Let's say from a day range that has
been passed 600000 second, than I have to change it to some mins or hours or days and so on.... I
just get start with use the number of seconds and divide it with 60 and converted to mins, and go on
up to days. But don't know how to get the next steps on. Any suggest are appr....
Main Trap17 Site Is Down?
I can't access it at all. (0) I noticed no one came here to post that something was wrong, even if this forum is working fine. (If
it weren't, I wouldn't be posting here.) For some reason, I can't log in, and all the
user accounts were removed from the system, even if the front page works fine. (As well, my hosting
account was removed. I'm pretty sure I wasn't banned, because I didn't get any warning
from moderators.) Is this some sort of server upgrade or scheduled downtime, and when can I expect
service to be back on again? (I'm also posting this here because if I d....
Time Travel?
Site activity showing up from the past (4) Not really a hosting question, but I couldn't find anywhere better to stick this. So: The
Latest Activity list at the bottom of the screen is showing up links from the past. Specifically the
Last Topic column, actually, as the Last Post seems to be fine. If you're not getting the same
problem, here's a screenshot . Basically all of the links in Last Topic are from way back
(March-ish?). I'm also fairly sure the site clock is wrong. As I'm writing this, at the
bottom is "Time is now: 22nd June 2008 - 12:24 AM", despite being much earlier than that (w....
Site Down Again, Help Or Suggestions?
(6) I’m starting to get a complex because my site, ycoderscookbook.com is down again. I hate to SPAM
the forums like this but I have a support ticket submitted and have not head anything in three days.
From what I am seeing, the Gamma server is up but for some reason the DNS is not resolving to the
domain. Ycoderscokbook.com has been down since Friday. Perhaps one of the admins can look into
this for me /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> I
know that BuffloHELP was very nice after the server migration and pulled a few string....
My Site Got Hacked!
(10) Recently my web site got hacked. Actually my former hosting provider got hacked and now when I visit
my site it says that it is owned my some hackers. here is my site, www.fitnesspro.woeps.com My
site is actually a hosted wordpress blog. I spent many days making it and now everything has gone
wrong. I even set up an autoresponder. Is there any way that I can backup my site? I can access my
files from CPANEL and FTP. I did use backup from CPanel and downloaded my site and MYSQL databases.
But can I use the same backup to restore my whole site (through cpanel backup-r....
Does This Site Mean Anything To Us…i Don’t Know U Tell Me?
(4) Hello All; I would like to host my site, i have seen many hosting review sites.....i have notices
http://www.webhosting-rated.com giving indepth knowledge on hosting companies and hence it did not
take me long to decide.it is the best review site i have so far seen.i would welcome any suggestion
and help thanks Rick ....
Web Host Review Site
(1) Hello All, This site has some great hosting reviews,i just dont know what to say you got to see it
for yourself and decide http://www.webhosting-rated.com one thing is for certain ...it covers wide
range of hosting issues how would you rate this website? kimbly ....
Youtube Videos
add videos to my site (4) Hello and thanks for taking the time to read this and help me out. I was wonder if I could get help
with an issue I'm having. I want to add youtube featured videos to my site. I'm not sure
about what to input into my site to get the videos to load there. I want it to be like a slideshow
of the featured videos and I want it to be automated so that it is always changing if an new video
is added. Yes, I'm a noob at making sites so even if this maybe simple for others I'm not
sure what to do. I have seen a few places that have a few boxes and the videos....
How To Create Your Own Proxy Site (free And Easy)
(14) Tired of your school blocking every new proxy site you find? Here's an answer. Check out
http://www.proxybuilder.com . After you fill in the information you want for your proxy site, it
will give you the download link for your files. Then all you have to do is upload the files you
download to your web host and you've got your own proxy website. If you find a free hosting
site, you can make as many of these as you want! NOTE***If your site gets blocked, just make
another account with the free hosting service. BUT UNDER NO CIRCUMSTANCES SHOULD YOU KEEP ALL YOUR....
Skemb -- Site Preview
The personal family webpage... (5) Well now, I like that I am adding my post, but throughout life I have learned to try to take
judgment better! I was trained to try to get things perfect, and I am trying to not do that
anymore. I plan to try to have fun with this personal site, and not always have to do things to the
'T'. I notice that I am not as original as I thought I would be... and the uniqueness
isn't really coming out how I would like it. I think it is because it is a family oriented
site, and not one of my older SINGLE person site... So like, I am trying to put things from the fami....
What Is The Best Photo Sharing Site?
The best photo sharing site (20) I have a group at groups.yahoo.com. But i didn't enjoy YahooGroupsPhotoAlbum.Coz it's
resolution was 480 x360 and there was an storage limit. So i'm looking for anyother way to share
my photos with my friends. There are 40 friends in my group. It's impossible to send the
invitation to see my photos. So i'm looking for the best photo sharing site wich supports group
sharing. I tried flickr.com it was good. But you know 200 pix limit was not cool. My asking is, "Is
there anysite supports group sharing so that every member can upload and every member ca....
Please Hack My Site
(23) Sorry for the subject, as i will not give you my website link /tongue.gif"
style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> It is a service i hope to
see it soon, though it is so much dangerous but i hope to have it, as i'm a web developer, the
biggest problem to me always is to test the website i coded, test its security and how much is it
safe, don't tell me try it yourself by trying to hack it, i already know all the passwords
/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />, i need someone
or a s....
Add A Forum To Your Site
A guide to adding discussion forums to your site (23) QUOTE When you’re setting up a site using CSS, it’s a good idea to do a little planning ahead
and think how you’ll be using your styles, otherwise you could end up spending much more time later.
As a case in point – for a site I’ve recently built, a basic style sheet was put together, with
entries for matters like headlines, section headings, item headings and so on. When it came to forms
on the site that needed headings next to the data entry boxes, the logical choice was the item
headings style. It helped maintain a consistent look across the site, but it came bac....
Create A Site Without Cms But Just Dreamweaver?
(6) The Web site will enable staff to be able to maintain the Web site with DreamWeaver. The maintenance
of content must be separate from the maintenance of design so that individual offices responsible
for providing information would be capable of maintaining that information on the site. Please
give a detailed explain.....
Hack This Site
Yes. It's legal. (30) I have noticed that nobody has made their review of this site yet. It is maybe the name of this site
that confuses people, makes them think "is this legal?". The answer is yes. This site is one of the
few sites that deal with hacking subject without actually encouraging or, in some way, promoting
hacking. Actually, it isn't so bad to encourage hacking, it is bad to encourage cracking. This
is how wikipedia defines a hacker: QUOTE Hacker is a term used to describe different types of
computer experts. The media and the general populace typically use the term to me....
Finding Yahoo Account Creation Date
is there a legal way of doing so? (1) As the topic title says, is there a way to find the date someone created a yahoo account, without
crossing the hacking boundary?....
Www.modthesims2.com - Sims 2 Mods Site
I need to get it out of my system! (9) Okay, MTS2 is one of the BEST sites to get awesome downloads for The Sims 2. I love that site so
much! And they have this cool forum where you can request people to create downloads for you if you
aren't very good at creating downloads! And some people post pictures of themselves, that way
people can sim them! Some of the people that post their pictures are weird looking. Anyway, I just
want to know who has been to MTS2 and loves it!? This sounds like spam, but I just want to know who
loves that site?! /biggrin.gif' border='0' style='vertical-align:middle' ....
Flash Site Software
Help need for nice flash making software (14) Hello iam a newbie in flash ,And i want to make a Website Using flash, Can someone show me some easy
to understand flash making software,I have macromedia flash mx but i dont understand a word in
that..! its very complicated..! As i need an easy to use software..! /sad.gif' border='0'
style='vertical-align:middle' alt='sad.gif' /> ....
Good Places To Advertise Your Site
(20) a good place to advertise your site is off craigslist.com there are 1000 of people who visit that
site every day and to advertise on that site its free....
Using system date in java... How?
(5) How do u use system date in java? I only know how in jsp. In jsp, u need to do the code below to get
the sysdate String date = DateFormat.getInstance().format(new Date()); and you will be able to
get the system date which has the format 6/6/04 7:19 AM ______________________ iv tried to do this
in java import java.util.Date;public String getSysDate() { String date = "";
String date = DateFormat.getInstance().format(new Date()); return date; }
there's an error on the variable DateFormat., it cannot resolve symbol. does ....
Looking for date, site
|
*SIMILAR VIDEOS*
Searching Video's for date, site
|
advertisement
|
|