Controlling the Theme Header

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Controlling the Theme Header
DivotMaker
CZ Newbie
DivotMaker has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Sep 02, 2004
0.00 posts per day
Posts: 21
Points: 976
   
I'm using a flash animation in my header. I'm wondering if there's a way to keep it from loading each time a new page is opened up. It's gets kind of annoying watching the animation each time you read a different news article for example. I was thinking maybe I could use a jpg file if the user is logged in, but if the person is not logged in, then the flash file would load instead. Anyone know of an easy way to accomplish this? Thanks!

Edit: I found a work around. I'm having the header load the flash logo if the user is anonymous and the jpg logo if it's a registered user. Not the best solution, but one that works! In case anyone is interested, here is the code:

if ($username == "$anonymous") {

   echo "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=6,0,29,0\" width=\"780\" height=\"85\"> "
."<param name=\"movie\" value=\"themes/Karate/images/myfile.swf\"> "
."<param name=quality value=high> "
."<embed src=\"themes/Karate/images/myfile.swf\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/
index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\"
width=\"780\" height=\"85\"></embed>"
."</object>"
."</td>\n";

    } else {
echo "<a href=\"index.php\"><img src=\"themes/Karate/images/logo.gif\" align=\"left\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n";
    }



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum