Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html javasctipt and swf

Status
Not open for further replies.

999000333

Programmer
Nov 20, 2006
39
Hello can anyone help me to find why my banner1.swf doesn't appear when I run this html file?
Any help will be appreciated.
Paola.

<html>

<head>
<DIV CLASS="jsbrand" ID="jsbrand"
STYLE="position:absolute;top:1;visibility:hide;" zIndex="1000" ALIGN="right">
<A HREF=" TARGET="_top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="width="550" height="400" id="banner1">
<param name=movie value="banner1.swf">
<param name=quality value=high>
<param name=bgcolor value=#FFFFFF>
<embed src="banner1.swf" quality=high name="banner1" align="" type="application/x-shockwave-flash" pluginspage=" </embed>
</object>
</A>
</DIV>
<script language="Javascript1.2">
<!--

//code .....for watermark
 
i havent tested it but it could be because you have the container DIV's visibility set to hide ?
:)
 
in fact your CSS syntax is all wrong
it should be
visibility: hidden; z-index: 1000
or to show the div:
visibility: visible

 
Hello BluesmanUK first of all thank you for your help,
I tried the changes you suggested but still my program do not work... Basically what I'm trying to do is to have a banner in swf on the right site of my home page this banner is placed vertically and when a user scroll down the page the banner remains always visible to the user.
The code I initially found was for images and text but I needed to change in order to use a swf instead.

<DIV CLASS="jsbrand" ID="jsbrand"
style="position:absolute;top:1px;z-index:1000;
float:right;">
<A HREF=" TARGET="_top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="width="550" height="400" id="banner1">
<param name=movie value="banner1.swf">
<param name=quality value=high>
<param name=bgcolor value=#FFFFFF>
<embed src="banner1.swf" quality=high name="banner1" align="" type="application/x-shockwave-flash" pluginspage=" </embed>
</object>
</A>
</DIV>
As you can see I changed the style part, I also made sure that the flash version is the one of the banner1 this is Flash 8. The banner1.swf is in the same forder of prova1.html, so the source shoul be ok too.....
Dont' know what to doooo. Do you think I should show the javascript code or that is irrelevant ...

Thanks
Paola
 
Hello BluesmanUK

I finally figure it out.... yes your change where the right one. My problem was also the postion inside html that was wrong.....the div....code was inside the head..any way I put the codes inside the body and the effect worked....But another problem came up ..
The swf is of poor quality basically is all black and white(instead of colorfull) and I see only parts of the origianl swf......Do you have any suggestion?

Thank you
Paola
 
hello, sorry i didnt spot that your div was inside the head of your html :)

Does your flash banner look okay when you view the swf by itself?

can post a link to show whats going on?
 
Hello BluesmanUK
I figured this one too, this line was the problem since it was giving a kind of white background to my swf.
<param name=bgcolor value=#FFFFFF>

In any case I would like to thank you again for your help, after all it was you suggestion that was really the solution to my problem.
I' m really impressed by the help this forum give to people all over the world with generous people ready to help and share their knowledge.

Paola.
ITALY.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top