| Author |
Message |
Stevo
Private


Joined: Sep 02, 2003
Posts: 39
|
Posted:
Sat Sep 20, 2003 8:27 am |
  |
I'm trying to replace the clock in the header of my theme, ClanMTS. If you look at the top left of my site, you'll see what I mean. I want to use a flash clock so it doesn't interfere with the rest of my site. I found this line in the header.php of my theme if it helps:
| Code: |
| echo "<BODY BGCOLOR=#FFFFFF ONLOAD=\"preloadImages();\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><script language=\"javascript\" src=\"themes/ClanMtS/liveclock.js\"></script>\n"; |
The second thing I want to do is use the same clock in a block. Here is the code for that in the block:
| Code: |
</script>
<script language=\"JavaScript\">
function tS(){ x=new Date(); x.setTime(x.getTime()); return x; }
function lZ(x){ return (x>9)?x:'0'+x; }
function dT(){ window.status=''; if(fr==0){ fr=1; document.write('<font size=2 face=Arial><b><span id=\"tP\">'+eval(oT)+'</span></b></font>'); } tP.innerText=eval(oT); setTimeout('dT()',1000); }
var fr=0,oT=\"lZ(tS().getHours())+':'+lZ(tS().getMinutes())+':'+lZ(tS().getSeconds())+' '\";
</script> |
TIA |
_________________ The Official Stevo Website - Online Community |
|
    |
 |
Stevo
Private


Joined: Sep 02, 2003
Posts: 39
|
Posted:
Sun Sep 21, 2003 9:02 am |
  |
|
    |
 |
Namsul
Captain


Joined: Feb 13, 2003
Posts: 339
Location: Australia
|
Posted:
Sun Sep 21, 2003 4:36 pm |
  |
Below is the code from another flash digital clock in a block. Maybe adapt it for inclusion in the header (if thats what you meant)
| Code: |
<?php
/***************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/* */
/***************************************************************************/
/* block--digiclock.php by Norbert Lange - http://langehome.de 13. Januar 2003 */
/***************************************************************************/
if (eregi("block-digiclock.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content .= "<center><OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\"WIDTH=70 HEIGHT=22><PARAM NAME=movie VALUE=\"images/digiclock.swf\"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#ffffff><PARAM NAME=menu VALUE=false><EMBED src=\"digiclock.swf\" base=\".\" quality=high bgcolor=#CACACA WIDTH=70 HEIGHT=22 TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" menu=\"false\"></EMBED></OBJECT>\n";
?> |
|
|
|
     |
 |
Stevo
Private


Joined: Sep 02, 2003
Posts: 39
|
Posted:
Mon Sep 22, 2003 5:40 pm |
  |
That code worked, but the clock I'm using has a white background and it doesn't look right. Doesn anyone know of a flash clock with a transparent background or one with the same background as the General block? The clock in the header doesn't seem to mess up anything, so I'm going to keep that one there. |
_________________ The Official Stevo Website - Online Community |
|
    |
 |
Namsul
Captain


Joined: Feb 13, 2003
Posts: 339
Location: Australia
|
Posted:
Mon Sep 22, 2003 9:43 pm |
  |
chaNGE bgcolor=#CACACA TO bgcolor=#ffffff |
|
|
     |
 |
Stevo
Private


Joined: Sep 02, 2003
Posts: 39
|
Posted:
Thu Sep 25, 2003 6:35 pm |
  |
|
    |
 |
Namsul
Captain


Joined: Feb 13, 2003
Posts: 339
Location: Australia
|
Posted:
Thu Sep 25, 2003 6:53 pm |
  |
well mate without posting a link to see what is the problem I really can't help |
|
|
     |
 |
Stevo
Private


Joined: Sep 02, 2003
Posts: 39
|
Posted:
Thu Sep 25, 2003 8:18 pm |
  |
|
    |
 |
Namsul
Captain


Joined: Feb 13, 2003
Posts: 339
Location: Australia
|
Posted:
Thu Sep 25, 2003 8:23 pm |
  |
the problem isn't the background, it's going to be the black font color. you need a flash clock with a light font color viewable on a black background |
|
|
     |
 |
Namsul
Captain


Joined: Feb 13, 2003
Posts: 339
Location: Australia
|
Posted:
Fri Sep 26, 2003 4:30 pm |
  |
|
     |
 |
|
|