Quantcast

Maximum PC

It is currently Thu Apr 24, 2014 5:20 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Anyone know how i can get an HTML or flash countdown......
PostPosted: Thu May 19, 2005 6:50 pm 
Team Member
Team Member

Joined: Sun Nov 14, 2004 10:40 am
Posts: 4632
Location: de_southern_california
Into a signature?

i dont have enough room to do the same code as

http://zambini.spymac.com/countdown.htm
which is
Code:
<script language="JavaScript1.2">

/*
Dynamic countdown Script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS,
visit http://www.dynamicdrive.com
*/


function setcountdown(theyear,themonth,theday){
yr=theyear;mo=themonth;da=theday
}

//////////CONFIGURE THE COUNTDOWN SCRIPT HERE//////////////////

//STEP 1: Configure the countdown-to date, in the format year, month, day:
setcountdown(2005,6,21)

//STEP 2: Change the two text below to reflect the occasion, and message to display on that occasion, respectively
var occasion="Freakin Battlefield 2 Comes out!"
var message_on_occasion="Guess who is playing Battlefield 2 "

//STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countdown area
var countdownwidth='550px'
var countdownheight='20px'
var countdownbgcolor='white'
var opentags='<font face="Courior New"><small>'
var closetags='</small></font>'

//////////DO NOT EDIT PASS THIS LINE//////////////////

var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var crosscount=''

function start_countdown(){
if (document.layers)
document.countdownnsmain.visibility="show"
else if (document.all||document.getElementById)
crosscount=document.getElementById&&!document.all?document.getElementById("countdownie") : countdownie
countdown()
}

if (document.all||document.getElementById)
document.write('<span id="countdownie" style="width:'+countdownwidth+'; background-color:'+countdownbgcolor+'"></span>')

window.onload=start_countdown


function countdown(){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todayh=today.getHours()
var todaymin=today.getMinutes()
var todaysec=today.getSeconds()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
futurestring=montharray[mo-1]+" "+da+", "+yr
dd=Date.parse(futurestring)-Date.parse(todaystring)
dday=Math.floor(dd/(60*60*1000*24)*1)
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
//if on day of occasion
if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=1&&todayd==da){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+message_on_occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+message_on_occasion+closetags
return
}
//if passed day of occasion
else if (dday<=-1){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+"Occasion already passed! "+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+"Occasion already passed! "+closetags
return
}
//else, if not yet
else{
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags
}
setTimeout("countdown()",1000)
}
</script>



which is a good countdown.
Does anyone know if i can insert that countdown into my signature on a forum (with php nuke platinum) in a nice short html code, like
Code:
[web]http://zambini.spymac.net/countdown.htm[/web]


that works, but it appears like
Image

that, and it dont work cuz theres too much empty.
So what im asking is; can anyone tell me where to make a javascript countdown, or how to make the text appear after my sig without having all that extra space


Top
  Profile  
 
 Post subject:
PostPosted: Sat May 21, 2005 3:12 pm 
Team Member Top 100
Team Member Top 100

Joined: Fri Sep 17, 2004 5:35 pm
Posts: 1176
Just use flash and embed it.


Top
  Profile  
 
 Post subject:
PostPosted: Sat May 21, 2005 3:30 pm 
Team Member
Team Member

Joined: Sun Nov 14, 2004 10:40 am
Posts: 4632
Location: de_southern_california
how? thats what im askin


Top
  Profile  
 
 Post subject:
PostPosted: Sat May 21, 2005 10:56 pm 
Team Member Top 100
Team Member Top 100

Joined: Fri Sep 17, 2004 5:35 pm
Posts: 1176
Google "Flash Timer Tutorial"


Top
  Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 4:11 pm 
Team Member
Team Member

Joined: Sun Nov 14, 2004 10:40 am
Posts: 4632
Location: de_southern_california
omfg! i searched " Flash countdown" and "html countdown"


i want to cry now :'(

ty kybo :) ill post it when im done :mrgreen:

Using this tut


Check out the template im using. Do those numbers look like the font? i had to copy all the letters individually =/ took about 20 minutes but it works :D
Image


Top
  Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 6:07 pm 
Team Member
Team Member

Joined: Sun Nov 14, 2004 10:40 am
Posts: 4632
Location: de_southern_california
[post deleted due to many explicatives and p/o'd speech] [edit]if anyone read this post before i changed it, sorry about all that swearing. it was 87 degrees in the room, and i spent 2 and a half hours trying to do that thing, but it just didnt work. Im gonna try a new tutorial later this week (prolly monday) and post results[/edit]


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group