1
HFC-arab
Flash Header & Css
  • 2009/1/21 15:20

  • HFC-arab

  • Just popping in

  • Posts: 30

  • Since: 2009/1/19


i ve tried to change something around the Css file , but failed to do it , i will try to explain it as much as i can , maybe someone can help me with this

in the Style Css there is this line for header image

}
.headerImg {

background-image: url(images/banner.jpg);
width: 805px;
}


now i tried to change the (images/banner.jpg) to (images/banner.swf) and included the .swf file on place , but nothing shown .

then i tried to do it on Theme.html , on DW insert > flash , and then i inserted the flash in place , it shows up pretty good on my PC , but on the Web it doesnt load .!

im not really experienced with much web stuff , so maybe someone can tell me what am i doing wrong ?

2
deka87
Re: Flash Header & Css
  • 2009/1/21 16:22

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


if im not mistaken there are some rules supposed to be applied when inserting a flash animation in your theme..html. try faq cos im sure there is something to do with it there.
Mind anchors

3
ghia
Re: Flash Header & Css
  • 2009/1/21 17:45

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Is your flash file OK and does it show when you surf to the .swf URL?

4
HFC-arab
Re: Flash Header & Css
  • 2009/1/21 19:09

  • HFC-arab

  • Just popping in

  • Posts: 30

  • Since: 2009/1/19


Yes flash file works well , i ve checked the Swf u put .
to make myself more clear , thats the part of the header im concerned with . i will put Theme , and related Css

<!-- START HEADER-->
<
table width="100%" height="400"  border="0" align="center" cellpadding="0" cellspacing="0" dir=rtl id="header">   <tr>     
<
td id="logo"><table dir=rtl width="100%"  border="0" cellspacing="0" cellpadding="0">
<
tr>
<
td><img src="<{$xoops_imageurl}>images/logo.gif" alt=""  />
</
td>
       </
tr>       
<
tr>         
<
td id="slogan"><{$xoops_slogan}></td>       
</
tr>     
</
table></td>     
<
td class="headerImg">&nbsp;</td>   
</
tr
</
table>


and the Css concerned with Class="headerImg" where i want to put the flash instead of image .

} .headerImg {      
background-imageurl(images/banner.jpg);
width805px; }

5
HFC-arab
Re: Flash Header & Css
  • 2009/1/21 19:10

  • HFC-arab

  • Just popping in

  • Posts: 30

  • Since: 2009/1/19


Quote:

deka87 wrote:
if im not mistaken there are some rules supposed to be applied when inserting a flash animation in your theme..html. try faq cos im sure there is something to do with it there.


i found something related with Embed code , concerning with a flash logo , if that what you mean , please check my previous post , do u think i should replace it with the Class="headerImg"

6
ghia
Re: Flash Header & Css
  • 2009/1/22 1:17

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
Yes flash file works well , i ve checked the Swf u put .
I know my link works, but is the link to your swf file working?

7
dbman
Re: Flash Header & Css
  • 2009/1/22 1:48

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


You can't use an swf file as a background-image, at least not using HTML or CSS, the browser doesn't render shockwave files. The flash plug-in is required by your site visitors and you'll need to use object and embed tags. Here is a link to the object and embed tag syntax required to make it work:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_4150

8
HFC-arab
Re: Flash Header & Css
  • 2009/1/23 16:31

  • HFC-arab

  • Just popping in

  • Posts: 30

  • Since: 2009/1/19


Quote:

dbman wrote:
You can't use an swf file as a background-image, at least not using HTML or CSS, the browser doesn't render shockwave files. The flash plug-in is required by your site visitors and you'll need to use object and embed tags. Here is a link to the object and embed tag syntax required to make it work:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_4150


Quote:

ghia wrote:
Quote:
Yes flash file works well , i ve checked the Swf u put .
I know my link works, but is the link to your swf file working?



now i could bring the shockwave applet alive on the webpage , but still its not showing , you can check the URL here

http://alexawyweb.byethost12.com/yarab/

and that is the .SWF file , that already work u can access it on the root folder here

http://alexawyweb.byethost12.com/yarab/themes/blue_shine2/5.swf

9
dbman
Re: Flash Header & Css
  • 2009/1/23 20:36

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


I get a 403 error when I try to access the swf file directly. Looking at your page source and assuming the file 5.swf is in your theme directory, you may need to add:

<{$xoops_imageurl}>5.swf


where necessary in the embed src and object param.

10
HFC-arab
Re: Flash Header & Css
  • 2009/1/24 1:21

  • HFC-arab

  • Just popping in

  • Posts: 30

  • Since: 2009/1/19


Quote:

dbman wrote:
I get a 403 error when I try to access the swf file directly. Looking at your page source and assuming the file 5.swf is in your theme directory, you may need to add:

<{$xoops_imageurl}>5.swf


where necessary in the embed src and object param.


Indeed !!
works as i want .. FINALLY .
your help was much appreciated guys

Login

Who's Online

147 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 147


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits