List Info

Thread: pho flash




pho flash
user name
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 phpmysqlgooglegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribegooglegroups.com
For more options, visit this group at http://groups
.google.com/group/phpmysql
-~----------~----~----~----~------~----~------~--~---

pho flash
user name
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 phpmysqlgooglegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribegooglegroups.com
For more options, visit this group at http://groups
.google.com/group/phpmysql
-~----------~----~----~----~------~----~------~--~---

pho flash
user name
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 phpmysqlgooglegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribegooglegroups.com
For more options, visit this group at http://groups
.google.com/group/phpmysql
-~----------~----~----~----~------~----~------~--~---

pho flash
user name
2006-08-03 22:15:29
thanks for the support fix it, i did it like this

if (empty($mainkat)){ echo "
<;object classid=\&quot;clsid27CDB6E-AE6D-11cf-96B8-444553540000\"
 codebase=\" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0\"
&nbsp; id=\"gen\" width=\&quot;800\&quot; height=\&quot;150\&quot;>
&nbsp; <param name=\&quot;movie\&quot; value=\&quot; gen.swf\">
  <param name=\&quot;bgcolor\&quot; value=\&quot;#FFFFFF\">
  <param name=\&quot;quality\&quot; value=\&quot;high\&quot;>
&nbsp; <param name=\&quot;allowscriptaccess\&quot; value=\&quot;samedomain\"&gt;
  <embed type=\&quot;application/x-shockwave-flash\&quot;
 ;  pluginspage=\"http://www.macromedia.com/go/getflashplayer\"
&nbsp;  width=\&quot;800\&quot; height=\&quot;150\&quot;
   name=\&quot;gen\"; src=\";gen.swf\&quot;
   bgcolor=\&quot;#FFFFFF\" quality=\&quot;high\&quot;
 ;  swLiveConnect=\"true\" allowScriptAccess=\&quot;samedomain\"
  ></embed><;/object>;";

<form action=&quot;<?=$PHP_SELF?>;" method=&quot;post&quot;>
<td nowrap style=&quot;font-family:verdana; font-size:8pt" align=center>
<select onChange=&quot;window.location = this.options [this.selectedIndex].value&quot; style=&quot;background-color:#E9E6BA; border: 1px solid #28849B; font-family:verdana; font-size:8pt"&gt;
<?php
mysql_query("select">$dskat=mysql_query("select category from cat group by category&quot;);
while (mysql_fetch_array($dskat">$sokat=mysql_fetch_array($dskat)){
&nbsp;  echo "<option value='&quot;.$PHP_SELF."?kat=$sokat[maincategory]&user=$user'";;
 &nbsp; if ($mainkat==$sokat[maincategory]){ echo " selected&quot;; }
 &nbsp; echo ">".$sokat[maincategory].";</option>";
}
echo "<option value='&quot;.$PHP_SELF."'&quot;;
if (empty($mainkat)){ echo " selected&quot;; }
echo ">[Pais]</option>&quot;;
?>;
</select>
?>;
} else {
if ($kat==$kat){ echo "
<;object classid=\&quot;clsid27CDB6E-AE6D-11cf-96B8-444553540000\"
  codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0\&quot;
 ; id=\"name\" width=\&quot;800\&quot; height=\&quot;150\&quot;>
&nbsp; <param name=\&quot;movie\&quot; value=\&quot;$kat.swf\">
  <param name=\&quot;bgcolor\&quot; value=\&quot;#FFFFFF\">
  <param name=\&quot;quality\&quot; value=\&quot;high\&quot;>
&nbsp; <param name=\&quot;allowscriptaccess\&quot; value=\&quot;samedomain\"&gt;
  <embed type=\&quot;application/x-shockwave-flash\&quot;
 ;  pluginspage=\" http://www.macromedia.com/go/getflashplayer\"
&nbsp;  width=\&quot;800\&quot; height=\&quot;150\&quot;
 &nbsp; name=\&quot;name\&quot; src=\";$kat.swf\&quot;
 ;  bgcolor=\&quot;#FFFFFF\" quality=\&quot;high\&quot;
&nbsp;  swLiveConnect=\"true\" allowScriptAccess=\&quot;samedomain\"
  ></embed><;/object>;";
}

because the name of the swf it`s the same as the category
so i did a $kat==$kat and it worked

thanks

Cesar

&nbsp;
On 8/3/06, bobzimuta <gmail.com">ejmalonegmail.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==&quot;name&quot;) 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':
 &nbsp; $shockwave = 'categories.swf';
&nbsp;  break;
default:
 ;  $shockwave = 'basic.swf';
 &nbsp; break;
}




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "PHP & MySQL"; group.
To post to this group, send email to phpmysqlgooglegroups.com
To unsubscribe from this group, send email to phpmysql-unsubscribegooglegroups.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 )