The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
A countdown clock??
Guys I made this countdown clock for my football baord. The problem I am having is just making it show up on the football baord. It keeps showing up on all of my forums.
Any idea on what I have to do where I make it only show up in my football forum? Also, would I put this in the forum display or the phpinclude? I just want this on one forum, which is my football forum. See I can do this with an image. I just add this in the phpinclude_start.. if ($forumid == 8) { } then I put this $name inside the forum display. I can get this stuff to work with an image. The problem with my countdown clock is that its a script and not an image. I know this can be done, I am just not sure what I have to add in my countdown script? Thanks for any help! Here is my info... http://www.baylorfans.com/countdown/.../countdown.htm Code:
<HTML> <!--This file created 10:15 PM 4/26/2005 by Claris Home Page version 3.0--> <HEAD> <TITLE>countdown</TITLE> <META NAME=GENERATOR CONTENT="Claris Home Page 3.0"> <X-CLARIS-WINDOW TOP=0 BOTTOM=601 LEFT=0 RIGHT=1268> <X-CLARIS-TAGVIEW MODE=minimal> </HEAD> <BODY BGCOLOR="#FFFFFF" onload="javascript:countdown();"> <P ALIGN=right><SCRIPT LANGUAGE=""><!-- hide script //change your event date event here. var eventdate = new Date("September 3, 2005 18:00:00 CST"); function toSt(n) {s="" if(n<10) s+="0" return s+n.toString(); } function countdown() {cl=document.clock; d=new Date(); count=Math.floor((eventdate.getTime()-d.getTime())/1000); if(count<=0) {cl.days.value ="0"; cl.hours.value="0"; cl.mins.value="00"; cl.secs.value="00"; alert("Sic' Em Bears!"); // Message which appears when time is out return; } cl.secs.value=toSt(count%60); count=Math.floor(count/60); cl.mins.value=toSt(count%60); count=Math.floor(count/60); cl.hours.value=toSt(count%24); count=Math.floor(count/24); cl.days.value=count; setTimeout("countdown()",500); } // end script --></SCRIPT> <FORM ACTION="" METHOD=POST name=clock> <CENTER><TABLE BORDER=0 BGCOLOR="#000000" CELLSPACING=5 CELLPADDING=0 WIDTH=444 HEIGHT=100> <TR> <TD ALIGN=center WIDTH="31%" HEIGHT=19 BGCOLOR="#006600"> <P><FONT SIZE="-1" COLOR="#FFCC00"><B>Days</B></FONT></P> </TD> <TD ALIGN=center WIDTH="23%" HEIGHT=19 BGCOLOR="#006600"> <P><FONT SIZE="-1" COLOR="#FFCC00"><B>Hours</B></FONT></P> </TD> <TD ALIGN=center WIDTH=56 HEIGHT=19 BGCOLOR="#006600"> <P><FONT SIZE="-1" COLOR="#FFCC00"><B>Mins</B></FONT></P> </TD> <TD ALIGN=center WIDTH=44 HEIGHT=19 BGCOLOR="#006600"> <P><FONT SIZE="-1" COLOR="#FFCC00"><B>Secs</B></FONT></P> </TD> </TR> <TR> <TD ALIGN=center WIDTH="31%" HEIGHT=15> <P><INPUT TYPE=text NAME=days VALUE="" SIZE=4></P> </TD> <TD ALIGN=center WIDTH="23%" HEIGHT=15> <P><INPUT TYPE=text NAME=hours VALUE="" SIZE=2></P> </TD> <TD ALIGN=center WIDTH=56 HEIGHT=15> <P><INPUT TYPE=text NAME=mins VALUE="" SIZE=2></P> </TD> <TD ALIGN=center WIDTH=44 HEIGHT=15> <P><INPUT TYPE=text NAME=secs VALUE="" SIZE=2></P> </TD> </TR> <TR> <TD COLSPAN=4 HEIGHT=49 BGCOLOR="#FFFFFF"> <CENTER><FONT SIZE="-1" COLOR="#FFCC00"><B><IMG SRC="http://www.baylorfans.com/countdown/football/smu.gif" X-CLARIS-USEIMAGEWIDTH X-CLARIS-USEIMAGEHEIGHT ALIGN=bottom></B></FONT><FONT COLOR="#FF0000"><B>SMU </B></FONT><FONT COLOR="#000000"><B>vs</B></FONT><FONT COLOR="#FF0000"><B> </B></FONT><FONT COLOR="#006600"><B>Baylor</B></FONT><FONT SIZE="-1" COLOR="#006600"><B><IMG SRC="http://www.baylorfans.com/countdown/football/baylor.gif" X-CLARIS-USEIMAGEWIDTH X-CLARIS-USEIMAGEHEIGHT ALIGN=bottom></B></FONT> <P><FONT FACE="Arial Baltic" COLOR="#006600"><B>COUNTDOWN TO KICKOFF</B></FONT></P></CENTER> </TD> </TR> </TABLE> </CENTER> </FORM></P> </BODY> </HTML> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|