How do you do....it? Thread, Changing Font size in java script in Technical; Hiya,
I have managed to get he following code so that our xibo screens auto update the date every morning, ...
-
10th January 2010, 01:20 PM #1 Changing Font size in java script
Hiya,
I have managed to get he following code so that our xibo screens auto update the date every morning, as we have students running them and they never get changed till around 9:30, the only problem is when it is displayed it is quite small, and i would prefere it to be larger, but i have never worked with java scripting and just wonders if somebody could let me know how to change it so that the output is larger
[CODE]
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
// Get today's current date.
var now = new Date();
// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thu rsday','Friday','Saturday');
// Array list of months.
var months = new Array('January','February','March','April','May',' June','July','August','September','October','Novem ber','December');
// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
// Calculate four digit year.
function fourdigits(number) {
return (number < 1000) ? number + 1900 : number;
}
// Join it all together
today = days[now.getDay()] + ", " +
months[now.getMonth()] + " " +
date + ", " +
(fourdigits(now.getYear())) ;
// Print out the data.
document.write(today);
// End -->
</script>
/CODE]
any help would be most appreciated
Toby
-
-
IDG Tech News
SHARE: 
Similar Threads
-
By ianniow in forum Web Development
Replies: 2
Last Post: 7th September 2010, 08:05 AM
-
By danrhodes in forum Office Software
Replies: 2
Last Post: 8th December 2008, 11:00 AM
-
By HPitkin in forum Network and Classroom Management
Replies: 2
Last Post: 1st December 2008, 02:52 PM
-
By Vipered in forum EduGeek Joomla 1.0 Package
Replies: 3
Last Post: 25th April 2008, 12:35 PM
-
By MyDejaVu in forum Comments and Suggestions
Replies: 5
Last Post: 7th September 2007, 10:00 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules