caterpillarsg
12-22-2002, 10:18 AM
Can anyone show an example of the content in a .js file?
|
Click to See Complete Forum and Search --> : Java Script caterpillarsg 12-22-2002, 10:18 AM Can anyone show an example of the content in a .js file? pyro 12-22-2002, 10:26 AM This would be your date script in an external .js file. var monthNames = new Array( "Jan.","Feb.","March","April","May","June","July","August","Sept.","Oct.","Nov.","Dec."); var now = new Date(); document.write(monthNames[now.getMonth()] + " " + now.getDate() + ", " + 2000); If you name it date.js you call it from your page like this <script language="javascript" src="date.js"></script> caterpillarsg 12-22-2002, 11:42 AM Thanx alot! u are really helpful! aepstar 12-22-2002, 12:54 PM we certainly are! pyro 12-22-2002, 02:09 PM Originally posted by aepstar we certainly are! What did you do to help in this thread? Or what is helpful about your post in the back to past page (http://forums.webdeveloper.com/showthread.php?threadid=1317&goto=newpost) thread where you said this to Charles, who does know... Originally posted by lavalamp About 12% of the time it won't do a thing. To avoid an embarrassing link to nowhere use: how the phuq do u know? ur kinda phreak who sits and counts every time links as ded or wot? webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |