Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][HTML][JavaScript]witam jak wstawic animacje swf w strone php
zorby
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 23.09.2008

Ostrzeżenie: (0%)
-----


witam mam stronke o nazwie nagłowek wyglada tak:
  1. <?
  2. //$s_id = session_id();
  3. echo" <br />
  4. <center><table border=0 cellspacing='0' cellpadding='0'width=879
  5. background=images/logo.jpg width=879 height=130 border=0>
  6. <tr><td> </td><td align=right width=879><font color=white size=6 >
  7. </font>      </td></tr>
  8. </table>";
  9.  
  10. //require_once("include/podstrona.php");
  11. require_once("include/banery_top.php");
  12. require_once("rgoogle.php");
  13.  
  14.  
  15. echo"</center>";
  16. if($_SESSION["login_u"])
  17. {
  18.  
  19. $login_u=$_SESSION["login_u"];
  20. <center><table width=879 border=0 background=images/nagl.jpg width=5
  21. height=30 cellspacing='0' cellpadding='0'><tr><td class=naglowek10>
  22.   <a class=a22 href=index.php target=_top>Strona główna</a>
  23. | <a class=a22 href=>Witaj $login_u </a>
  24. | <a class=a22 href=profil.php target=_top><b>Mój profil</b> </a>
  25. </td>
  26. <td class=naglowek10 align=right>";
  27.  
  28. $pobieranie = mysql_query ("SELECT * FROM podstrony where gdzie='G'");
  29. while ($zapisz = mysql_fetch_array($pobieranie))
  30. {
  31. $id=$zapisz['id'];
  32. $link_inf=$zapisz['link'];
  33. $tresc_inf =$zapisz['tresc_strony'];
  34. echo "| <a class=a22 href=podstrona.php?id=$id target=_top>$link_inf
  35. </a>";
  36. }
  37. | <a class=a22 href=dodajogl.php target=_top>Dodaj ogłoszenie </a>
  38. | <a class=a22 href=kontakt.php target=_top>Kontakt </a>
  39. | <a class=a22 href=cennik.php target=_top>Cennik </a>
  40. | <a class=a22 href=regulamin.php target=_top>Regulamin </a>
  41. | <a class=a22 href=wyloguj.php target=_top>Wyloguj </a>
  42.  
  43.   
  44. </td></tr></table></center>";
  45. }
  46. else
  47. {
  48.  
  49. <center><table width=879 border=0 background=images/nagl.jpg width=5
  50. height=30 cellspacing='0' cellpadding='0'><tr><td class=naglowek10>
  51.   <a class=a22 href=index.php target=_top>Strona główna</a>
  52. </td>
  53. <td class=naglowek10 align=right>";
  54.  
  55. $pobieranie = mysql_query ("SELECT * FROM podstrony where gdzie='G'");
  56. while ($zapisz = mysql_fetch_array($pobieranie))
  57. {
  58. $id=$zapisz['id'];
  59. $link_inf=$zapisz['link'];
  60. $tresc_inf =$zapisz['tresc_strony'];
  61. echo "| <a class=a22 href=podstrona.php?id=$id target=_top>$link_inf
  62. </a>";
  63. }
  64.  
  65. | <a class=a22 href=dodajogl.php target=_top>Dodaj ogłoszenie </a>
  66. | <a class=a22 href=kontakt.php target=_top>Kontakt </a>
  67. | <a class=a22 href=cennik.php target=_top>Cennik </a>
  68. | <a class=a22 href=regulamin.php target=_top>Regulamin </a>
  69. | <a class=a22 href=rejestracja.php target=_top>Rejestracja </a>
  70. | <a class=a22 href=logowanie.php target=_top>Logowanie </a>|
  71.  
  72.   
  73.  
  74.  
  75. </td></tr></table></center>";}
  76. ?>

-------------------------------------------------------------------------------------------------------------------------------


póki co logo strony jest wstawione jako jpg w formie
"background=images/logo.jpg"

chciałbym wstawic animacje swf mam ja jako
  1. <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  2. WIDTH="879" HEIGHT="130" >
  3. <PARAM NAME="MOVIE" VALUE="top.swf">
  4. <PARAM NAME="PLAY" VALUE="true">
  5. <PARAM NAME="LOOP" VALUE="true">
  6. <PARAM NAME="QUALITY" VALUE="high">
  7. <EMBED SRC="top.swf" WIDTH="879" HEIGHT="130" PLAY="true" LOOP="true"
  8. WMODE="opaque" QUALITY="high"
  9. TYPE="application/x-shockwave-flash"
  10. </EMBED>


gdzie bym musiał wstawic ten kod ( i czy cały czy jakas jego czesc) zeby
zamiast loga logo.jpg wyswietlało mi sie logo.swf ( plik juz mam wgrany do
katalogu IMAGES


z góry dzieki za odpowiedz

Ten post edytował batman 23.09.2008, 20:19:17
Powód edycji: poprawiłem bbcode
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 5)
batman
post
Post #2





Grupa: Moderatorzy
Postów: 2 921
Pomógł: 269
Dołączył: 11.08.2005
Skąd: 127.0.0.1




Proszę poprawić bbcode.


edit
Poprawiłem bbcode. Używaj odpowiednich znaczników: do kodu php - znacznik php, do kodu html - znacznik html.
Go to the top of the page
+Quote Post
zorby
post
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 23.09.2008

Ostrzeżenie: (0%)
-----


ok poprawie się

Ten post edytował zorby 23.09.2008, 20:40:11
Go to the top of the page
+Quote Post
hateman
post
Post #4





Grupa: Zarejestrowani
Postów: 86
Pomógł: 18
Dołączył: 28.04.2008
Skąd: Poznań

Ostrzeżenie: (0%)
-----


No to wstaw ten kod zamiast tabelki co masz tło z logiem

i popraw SRC="top.swf" na SRC="IMAGES/logo.swf"

A najlepiej w wstawianiu flashy nadajaje sie javaScript "swfobject":
http://blog.deconcept.com/swfobject/#examples

tu możesz sobie ściągnąć skrypt i są przykłady jak używać
Go to the top of the page
+Quote Post
-Gość-
post
Post #5





Goście







udało mi sie (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) dzieki za pomoc
Go to the top of the page
+Quote Post
lukaszz
post
Post #6





Grupa: Zarejestrowani
Postów: 15
Pomógł: 0
Dołączył: 27.01.2006

Ostrzeżenie: (10%)
X----


Mój problem jest tego typu, że po wstawieniu top swf, robi się pod nim trochę wolnego miejsca jak bym dodał <br>

kod na stronie jaki był wcześniej:
Kod
<tr>
<td colspan="7" background="images/top.jpg" width="609" height="155" alt="" valign="top" style="font-family: tahoma; font-size: 11px; color: 6E6C6C; line-height: 14px">

<p align="right"><br>
<br>
<br>
</p>
</td>
</tr>


kod po umieszczeniu top flasha:
Kod
<tr>
<td colspan="7" valign="top">

<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="609" HEIGHT="155" >
<PARAM NAME="MOVIE" VALUE="images/autogielda.swf">
<PARAM NAME="PLAY" VALUE="true">
<PARAM NAME="LOOP" VALUE="true">
<PARAM NAME="QUALITY" VALUE="high">
<EMBED SRC="images/autogielda.swf" WIDTH="609" HEIGHT="155" PLAY="true" LOOP="true" WMODE="opaque" QUALITY="high"
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

</td>
</tr>


Po wstawieniu nowego kodu na stronę, pod topem widać wolną przestrzeń, screen w powiększeniu -> KLIK

Ten post edytował lukaszz 22.03.2009, 13:02:48
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.08.2025 - 21:27