simple question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fr0gg
Forum Newbie
Posts: 2
Joined: Fri May 03, 2002 8:08 am

simple question

Post by fr0gg »

say i have a flash banner. i want it at the top of my page. every time a person clicks a new link i want it NOT to reload the flash, but keep it there.
Also I want it to where my users that log into the page to have it show as an image file after they log in so that it doesnt play anymore. how would this be done?
User avatar
pHaZed
Forum Commoner
Posts: 28
Joined: Wed May 01, 2002 2:44 am
Location: Sydney -AU

try this

Post by pHaZed »

That would be hard... Because every time they click a link the html to load the flash will be re-sent to the browser, There is a way i can think of but.
include the main content of ur site... since the flash will be at the top.
like this

Code: Select all

<flash stuff></flashstuff>
<table>
<tr>
<td>LEFT NAVIGATION TABLE</td>
<td> <?PHP include("$file.php"); ?> </td>
<td> RIGHT NAV </td>
</tr>
</table>
Were the include code is the main content section of your site design.
this code is only needed on index file
now links look like this

Code: Select all

index.php?file=name
where name is the filename of the file u want to show in the middle content.

As for once they have logged in just use a new top.
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post by enygma »

then I would come along and do:

index.php?file=/etc/passwd

In other words, don't do that ;)
-enygma
fr0gg
Forum Newbie
Posts: 2
Joined: Fri May 03, 2002 8:08 am

Post by fr0gg »

i was thinking of just creating it as an iframe but i was trying to find shortcuts as always.... ill try this when i get home from work. thanks for the input.
User avatar
hex
Forum Commoner
Posts: 92
Joined: Sat Apr 20, 2002 3:20 am
Location: UK

Post by hex »

iframes are IE only...
Post Reply