You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 105 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Replace Java clock with Flash [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Stevo
Private
Private


Joined: Sep 02, 2003
Posts: 39


PostPosted: Sat Sep 20, 2003 8:27 am Reply with quoteBack to top

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
Find all posts by StevoView user's profileSend private messageSend e-mail
Stevo
Private
Private


Joined: Sep 02, 2003
Posts: 39


PostPosted: Sun Sep 21, 2003 9:02 am Reply with quoteBack to top

Any help? I just need the code that you are supposed to use when putting Flash in PHP-Nuke. It's version 6.8.

_________________
The Official Stevo Website - Online Community
Find all posts by StevoView user's profileSend private messageSend e-mail
Namsul
Captain
Captain


Joined: Feb 13, 2003
Posts: 339

Location: Australia

PostPosted: Sun Sep 21, 2003 4:36 pm Reply with quoteBack to top

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";

                           
?>
Find all posts by NamsulView user's profileSend private messageSend e-mailVisit poster's website
Stevo
Private
Private


Joined: Sep 02, 2003
Posts: 39


PostPosted: Mon Sep 22, 2003 5:40 pm Reply with quoteBack to top

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
Find all posts by StevoView user's profileSend private messageSend e-mail
Namsul
Captain
Captain


Joined: Feb 13, 2003
Posts: 339

Location: Australia

PostPosted: Mon Sep 22, 2003 9:43 pm Reply with quoteBack to top

chaNGE bgcolor=#CACACA TO bgcolor=#ffffff
Find all posts by NamsulView user's profileSend private messageSend e-mailVisit poster's website
Stevo
Private
Private


Joined: Sep 02, 2003
Posts: 39


PostPosted: Thu Sep 25, 2003 6:35 pm Reply with quoteBack to top

Namsul wrote:
chaNGE bgcolor=#CACACA TO bgcolor=#ffffff
It's already set to that.

_________________
The Official Stevo Website - Online Community
Find all posts by StevoView user's profileSend private messageSend e-mail
Namsul
Captain
Captain


Joined: Feb 13, 2003
Posts: 339

Location: Australia

PostPosted: Thu Sep 25, 2003 6:53 pm Reply with quoteBack to top

well mate without posting a link to see what is the problem I really can't help
Find all posts by NamsulView user's profileSend private messageSend e-mailVisit poster's website
Stevo
Private
Private


Joined: Sep 02, 2003
Posts: 39


PostPosted: Thu Sep 25, 2003 8:18 pm Reply with quoteBack to top

Namsul wrote:
well mate without posting a link to see what is the problem I really can't help
It's in my sig. The block is on the lower right side.

_________________
The Official Stevo Website - Online Community
Find all posts by StevoView user's profileSend private messageSend e-mail
Namsul
Captain
Captain


Joined: Feb 13, 2003
Posts: 339

Location: Australia

PostPosted: Thu Sep 25, 2003 8:23 pm Reply with quoteBack to top

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
Find all posts by NamsulView user's profileSend private messageSend e-mailVisit poster's website
Namsul
Captain
Captain


Joined: Feb 13, 2003
Posts: 339

Location: Australia

PostPosted: Fri Sep 26, 2003 4:30 pm Reply with quoteBack to top

here is one serious kickass clock for black backgrounds - http://www.nukecops.com/article-730--0-0.html
Find all posts by NamsulView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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 vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.043 Seconds - 89 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::