...

View Full Version : How insert hyaline or transparently banner in to webpage ?



public
01-16-2009, 07:07 PM
Hello,

Please, see the web site screenshot below:
http://i40.tinypic.com/dh64oy.jpg

The banner remains in bottom page when I mouse scroling down and disappears after a few seconds. How I can do this?

A little help please.

gnomeontherun
01-16-2009, 11:26 PM
http://tagsoup.com/cookbook/css/fixed/bottom/

That a banner example, which isn't Flash.

To make flash stage transparent, then you just have to add the wmode parameter in the embed code. Look at my signature for a post on embedding Flash properly for details.

public
01-17-2009, 08:18 AM
Thanks for your intervention. However, I don't understand what to do!

I downloaded file swfobject, which is actually a folder and I loaded the FTP site, in a directory like www / swfobject /
Then, the index file I wrote the following code:
<head>
<title>SWFObject Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject/swfobject.js"></script>

<script type="text/javascript">

var flashvars = { // These are variables which are passed to the Flash document - they have to be already defined in the SWF
buttonText: "Press Me Please",
imageURL: "tehnium-azi.gif" // Don't put anything after the last ", if you add more variables use a comma to separate entries but leave the last entry without one, same applies to the params and attributes
};
var params = { // Parameters for display
menu: "false",
wmode: "transparent" // a common request to make the
};
var attributes = {
id: "newID",
name: "newID"
};
// 1 - Name of file to load, 2 - ID of DIV to replace with SWF, 3 - width, 4 - height, 5 - Minimum Flash version, 6 - Express Install (if not using then place false), 7-9 - sends the arrays
swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0","expressInstall.swf", flashvars, params, attributes);

</script>

</head>
<body>
<div id="myContent">
<p>Alternative content</p>
</div>
</body>

Why not work? A little help please.

gnomeontherun
01-17-2009, 10:41 AM
Maybe a link to this page? Do you have a swf file named that in the folder of this html page? Make sure the files are correctly uploaded as well.

public
01-18-2009, 09:29 AM
I created a file with the name myContent.swf and I loaded in FTP www / myContent.swf
Then I wrote the code from post 2 above in the index file, even under footer. It displays only "Alternative content".
However, not working?

I would like to know if I wrote well in the post code of 2 above the following line or path GIF image?
imageURL: "tehnium-azi.gif"

gnomeontherun
01-18-2009, 10:00 AM
Well it just sounds like SWFObject isn't being loaded, have you checked for JS errors?

Your imageURL is fine IF the image is in the same folder as this file. A like would be better if you could show me?

public
01-18-2009, 02:55 PM
Well it just sounds like SWFObject isn't being loaded, have you checked for JS errors?
jeremywilken, sorry, but not understand on what site you see to forgot that conclusion ? To do so, I have rewritten code above and I try a test web sub domain named: ipb.tehnium-azi.ro
The code below I copied after that <% BOARD FOOTER %>

<head>
<title>SWFObject Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="ipb/jscripts/swfobject/swfobject.js"></script>

<script type="text/javascript">

var flashvars = { // These are variables which are passed to the Flash document - they have to be already defined in the SWF
buttonText: "Press Me Please",
imageURL: "http://www.tehnium-azi.ro/tehnium-azi.gif" // Don't put anything after the last ", if you add more variables use a comma to separate entries but leave the last entry without one, same applies to the params and attributes
};
var params = { // Parameters for display
menu: "false",
wmode: "transparent" // a common request to make the
};
var attributes = {
id: "newID",
name: "newID"
};
// 1 - Name of file to load, 2 - ID of DIV to replace with SWF, 3 - width, 4 - height, 5 - Minimum Flash version, 6 - Express Install (if not using then place false), 7-9 - sends the arrays
swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0","expressInstall.swf", flashvars, params, attributes);

</script>

</head>
<body>
<div id="myContent">
<p>Alternative content</p>
</div>
</body>
After that, I copied the file myContent.swf in path: www/ipb

I don't understand this question:
A like would be better if you could show me?

gnomeontherun
01-18-2009, 04:20 PM
Sorry I meant 'link', which proves that you have a lot of errors with the way you've embedded your Javascript links.

Your scripts should all be in the HEAD of the document, its good practice and you've just got a lot of errors. You also cannot have two <head> tags, so fix your HTML file and it should work.

http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fipb.tehnium-azi.ro%2F

See this link for some help, but you also have a million JS files on this site, are they needed? Can you reduce that, because you might also have just TOO MUCH going on, but I know for a fact that your SWFObject file is not getting loaded because of all of these errors.

And I meant that you need to look at your browser for Javascript errors. It should tell you if there are problems, in IE there is a little icon in the bottom left and in Firefox there is something under Tools called Error Console.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum