California - Southern California S2000 Owners Southern California S2000 Owners

HTML coders, i need a little help

Thread Tools
 
Old Apr 15, 2010 | 05:06 PM
  #1  
gilby1kanobie's Avatar
Thread Starter
Registered User
 
Joined: Feb 2009
Posts: 2,143
Likes: 0
From: Huntington Beach
Default HTML coders, i need a little help

i got bored and i wanted to use a java script for my sig.
is it possible?


any how this is what i want to use,,, if anyone knows how to do it, can you tell me step by step on how to code it on my sig. ? thanks again...


its
SFW btw


<html>
<head>
<p style="margin-top: 0; margin-bottom: 0; margin-left:6px; margin-right:2px" align="center">
</p>
<div align="center">
<table border="2" width="419" id="table8" cellspacing="3" cellpadding="3" bgcolor="#C0C0C0" style="border-collapse: collapse">
<tr>
<td align="center">
<p style="margin-top: 0; margin-bottom: 0">
<font size="2" face="Arial">
<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(2012,12,21)
//STEP 2: Change the two text below to reflect the occasion, and message to display on that occasion, respectively
var occasion="Better get the Mods to you S2000 before we die (DOOMSDAY DECEMBER, 12 2012)<font face=Verdana color=#D70000 size=2></font>"
var message_on_occasion="Please carry on!"
//STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countdown area
var countdownwidth='400px'
var countdownheight='20px'
var countdownbgcolor='C0C0C0'
var opentags='<font face="Verdana">'
var closetags='</font>
'
//////////DO NOT EDIT PASS THIS LINE//////////////////
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","A ug","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.d ocument.write(opentags+message_on_occasion+closeta gs)
document.countdownnsmain.document.countdownnssub.d ocument.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.d ocument.write(opentags+"Occasion already passed! "+closetags)
document.countdownnsmain.document.countdownnssub.d ocument.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.d ocument.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags)
document.countdownnsmain.document.countdownnssub.d ocument.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>
</font>
</td>
</body>

</html>
Old Apr 15, 2010 | 05:07 PM
  #2  
gilby1kanobie's Avatar
Thread Starter
Registered User
 
Joined: Feb 2009
Posts: 2,143
Likes: 0
From: Huntington Beach
Default

thanks for viewing
Old Apr 15, 2010 | 05:14 PM
  #3  
Bewbies's Avatar
Registered User
 
Joined: Jan 2010
Posts: 925
Likes: 0
From: ★☆TOPDOWN☆★ OC, Cali
Default

I don't see how you are going to run that in a sig on here. On your own website I can help you I have java countdown timers on my site but I am pretty sure they don't allow java code for security reasons.


Example: http://www.brazen-gaming.com/home.php


that's my site if you look on the left I have three countdown timers for daily events on my server.
Old Apr 15, 2010 | 09:31 PM
  #4  
furiosA4's Avatar
Registered User
 
Joined: Feb 2010
Posts: 15
Likes: 0
Default

alert("no js allowed =(");
Old Apr 16, 2010 | 07:33 AM
  #5  
sk8ter4life's Avatar
Registered User
 
Joined: Nov 2006
Posts: 239
Likes: 0
From: alhambraaa 626
Default

what exactly are you trying to post? yeah, no java stuff on forums..not that i know of. just insert a gif.
Old Apr 16, 2010 | 08:21 AM
  #6  
gilby1kanobie's Avatar
Thread Starter
Registered User
 
Joined: Feb 2009
Posts: 2,143
Likes: 0
From: Huntington Beach
Default

coo,,,

im trying to put a 2012 countdown... as my sig, but thanks for the help anyhow, Peace
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
s2000Turkey
S2000 Under The Hood
0
Mar 13, 2008 11:48 AM




All times are GMT -8. The time now is 01:53 PM.