View Single Post
  #11  
Old 12-29-2005, 08:11 AM
Capers is offline Capers
Registered User

Join Date: Oct 2003
Posts: 158

As katana said the php code is there so that the file can function as a phpnuke block.

But you can still use the clock, it is merely a flash file. Just get the flash file (upload it to site), which should have been provided with the script (blackw_clock.swf) and embed it in your webpage, using the following code

PHP Code:
<OBJECT classid=\"clsid27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\"
 WIDTH=\"150\" HEIGHT=\"150\" id=\"relogio\" ALIGN=\"\">
  <PARAM NAME=\"movie\" VALUE=\"blackw_clock.swf\">
  <PARAM NAME=\"quality\" VALUE=\"high\">
  <PARAM NAME=\"bgcolor\" VALUE=\"#000000\">
  <PARAM NAME=\"wmode\" VALUE=\"transparent\">
  <PARAM NAME=\"menu\" VALUE=\"false\">
  <EMBED src=\"blackw_clock.swf\" quality=\"high\" bgcolor=\"#000000\"  WIDTH=\"150\"
   HEIGHT=\"150\" wmode=\"transparent\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\"
   PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" menu=\"false\">
  </EMBED></OBJECT> 
(which is all html code)

Set the correct path to the swf file on these lines
PHP Code:
<PARAM NAME=\"movie\" VALUE=\"blackw_clock.swf\"> 
PHP Code:
<EMBED src=\"blackw_clock.swf\" 
Change the background color of the clock on these lines
PHP Code:
   <PARAM NAME=\"bgcolor\" VALUE=\"#000000\"> 
PHP Code:
 <EMBED src=\"blackw_clock.swf\" quality=\"high\" bgcolor=\"#000000\" 
Changing the parameters in both references will increase the likelihood of compatability in most browsers.

etc.
__________________
Reply With Quote