Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   High Bandwidth Dedicated Servers   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 06-02-2005, 04:12 AM   #1 (permalink)
Contributing Member
 
Join Date: 01-31-04
Location: Bloomsbury, London
Posts: 74
iTrader: 0 / 0%
Azam.biz is on the right pathAzam.biz is on the right pathAzam.biz is on the right path
Send a message via MSN to Azam.biz Send a message via Skype™ to Azam.biz
Question Count-up from a particular year + Javascript within Javascript? Help!

My question is in three parts:

(1) I've found various scripts which allow you to count-up from a particular date, but they display the result in seconds, hours, minutes, years etc. I'd like to show the result in just years and don't need a bloated script.

A couple of scripts that I've found are:

http://javascript.internet.com/clocks/days-old.html

http://www.javascriptkit.com/script/.../countup.shtml

(2) The reason I need a count-up feature is so that I can show how old a film festival is on my movie site (e.g. "the 52nd Sydney Film Festival"). Is there a way of incorporating the "nd", "th" etc. to the above results please?

(3) Finally, is there any way of incorporating the above script inside another script?

I'm currently using another javascript to link to a different page each month, with info. about the film festival taking place that month.

The script is this one:

Code:
<!------------------------------- FILM FESTIVALS -------------------------------------> <SCRIPT language=JavaScript> <!-- Begin var months=new Array(13); months[1]="The festival year kicks of with Sundance, or \"Cannes in the snow\" as some have come to describe it. If you can't make it to Utah, read out it at UKHotMovies.com here"; months[2]="Read about this February\'s Berlin Film Festival in our new film festivals section <A HREF=\"/film-festivals/berlin-film-festival\">here</A>."; months[3]="New! Find out more about this month\'s Amnesty International Film Festival (Amsterdam) <A HREF=\"/festival/Amnesty\">here</A>"; months[4]="Read about this month\'s Tribeca Film Festival in our new film festivals section <A HREF=\"/film-festivals/tribeca-film-festival\">here</A>."; months[5]="Read about this May\'s Cannes Film Festival in our new film festivals section <A HREF=\"/film-festivals/cannes-film-festival\">here</A>."; months[6]="Read about this June\'s Sydney Film Festival in our new film festivals section <A HREF=\"/film-festivals/sydney-film-festival\">here</A>."; months[7]="Cambridge Film Festival July"; months[8]="Edinburgh International Film Festival August"; months[9]="Venice Film Festival September"; months[10]="Edmonton International Film Festival October"; months[11]="Los Angeles Int’l Film Festival November"; months[12]="Cairo International Film Festival - December"; var time=new Date(); var lmonth=months[time.getMonth() + 1]; document.write(" " + lmonth + " "); // End --> </SCRIPT> <!------------------------------- FILM FESTIVALS ------------------------------------->
You can see it in action towards the bottom of this page.

What I'd basically like to do is that instead of it saying "read about the Edmonton Film Festival taking place this October", say "read about the 15th Edmonton Film Festival taking place this October".

Thanks a million. Spent a while trying to solve the conundrum myself, but my Javascript skills are limited.
__________________
Nadeem
Earn a residual income with your site - FREE to join
Established websites for sale - with prestigious domain names
Azam.biz is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 06-06-2005, 05:26 AM   #2 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Bump.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-06-2005, 06:40 AM   #3 (permalink)
v7n Mentor
 
DaveyBoy's Avatar
 
Join Date: 10-13-03
Location: England.
Posts: 6,183
iTrader: 0 / 0%
Latest Blog:
None

DaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest order
Quote:
Originally Posted by Jazzee
Bump.
Nah you're bump's gone now
DaveyBoy is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-06-2005, 06:47 AM   #4 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript Help mrjokers Coding Forum 2 12-01-2007 03:41 PM
Javascript help kiviniar Coding Forum 2 08-20-2006 02:14 AM
Javascript to PHP Sketch Coding Forum 15 05-15-2006 02:30 PM
Javascript Sketch Coding Forum 20 12-29-2005 08:09 PM
Javascript ehman SEO Forum 10 08-13-2004 01:26 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 11:52 AM.
© Copyright 2008 V7 Inc