|
List Info
Thread: pho flash
|
|
| pho flash |

|
2006-08-03 02:51:43 |
Hi im currently working on a site that has some headers in
flash, the
problem i had it`s when people select a specific thing the
header
should change example if u click in categoris the header
should be
categories.swf and so on im currently doing this with an if
(empty($array)) to show a generic banner then i do a if
($array=="name") to show the corresponding
header but there are too
many, i need to optimize the code please help..
Cesar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "PHP & MySQL" group.
To post to this group, send email to phpmysql googlegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribe googlegroups.com
For more options, visit this group at http://groups
.google.com/group/phpmysql
-~----------~----~----~----~------~----~------~--~---
|
|
| pho flash |

|
2006-08-03 12:39:37 |
i do not seem to get it what you meant.
would you mind posting some codes here please.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "PHP & MySQL" group.
To post to this group, send email to phpmysql googlegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribe googlegroups.com
For more options, visit this group at http://groups
.google.com/group/phpmysql
-~----------~----~----~----~------~----~------~--~---
|
|
| pho flash |

|
2006-08-03 20:54:36 |
cesar_ramos_e wrote:
> Hi im currently working on a site that has some headers
in flash, the
> problem i had it`s when people select a specific thing
the header
> should change example if u click in categoris the
header should be
> categories.swf and so on im currently doing this with
an if
> (empty($array)) to show a generic banner then i do a if
> ($array=="name") to show the corresponding
header but there are too
> many, i need to optimize the code please help..
>
> Cesar
What is the conditional based on, the current file,
directory, etc?
If you want to change the header based on which directory
the user is
currently in, I'd do something like
switch( basename( dirname( $_SERVER[ 'SCRIPT_NAME' ) ) )
{
case 'categories':
$shockwave = 'categories.swf';
break;
default:
$shockwave = 'basic.swf';
break;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "PHP & MySQL" group.
To post to this group, send email to phpmysql googlegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribe googlegroups.com
For more options, visit this group at http://groups
.google.com/group/phpmysql
-~----------~----~----~----~------~----~------~--~---
|
|
| pho flash |

|
2006-08-03 22:15:29 |
|
thanks for the support fix it, i did it like this
because the name of the swf it`s the same as the category
so i did a $kat==$kat and it worked 
thanks
Cesar
On 8/3/06, bobzimuta <gmail.com">ejmalone gmail.com> wrote:
cesar_ramos_e wrote: > Hi im currently working on a site that has some headers in flash, the
> problem i had it`s when people select a specific thing the header > should change example if u click in categoris the header should be > categories.swf and so on im currently doing this with an if
> (empty($array)) to show a generic banner then i do a if > ($array=="name") to show the corresponding header but there are too > many, i need to optimize the code please help.. > > Cesar
What is the conditional based on, the current file, directory, etc? If you want to change the header based on which directory the user is currently in, I'd do something like switch( basename( dirname( $_SERVER[ 'SCRIPT_NAME' ) ) )
{ case 'categories': $shockwave = 'categories.swf'; break; default: $shockwave = 'basic.swf'; break; }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "PHP & MySQL" group. To post to this group, send email to phpmysql googlegroups.com To unsubscribe from this group, send email to phpmysql-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/phpmysql -~----------~----~----~----~------~----~------~--~---
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|