Click to See Complete Forum and Search --> : Transparent self closing ad.
SMcClure34
04-30-2003, 08:13 AM
Is there any way to display a SWF ad on a website with a transparent background, so it is displayed ontop of the webpages content, without distoring, resizing or repositioning the text? And is there anyway to close or delete this SWF Object once it has finished playing? I'm sure I've seen it done on a few sites. Does it use zIndex?
SMcClure34
04-30-2003, 08:17 AM
Something like this. I've put a box around what the object would be. Sorry about the quality, and dont worry, it won't be linking to pants.co.uk
Shampie
04-30-2003, 12:11 PM
Ever tried using layers?
SMcClure34
04-30-2003, 02:09 PM
No no no! The final thing is not a SWF file, it is a SFW file displayed ontop of a HTML page? How do I do that?
JackTheTripper
04-30-2003, 02:25 PM
Um.... ya. With layers, like he said.
<div id="ad_layer" style= "position: absolute; left: 20px; top: 30px; width:300px; height:150px; z-index:2">
**insert SWF file here**
</div>
That will create a layer that floats over your page. It will be 300px wide by 150px high and the upper left corner will be 20 px from the left of your page and 30px from the top of your page. Adjust the size and location of the layer until your SWF file fit's in it nicely and is located where you want it.
PS. if you insert this near the top of your page just below the <body> tag it will load first. You might want to put it near the bottom of the page near the </body> tag.
Shampie
04-30-2003, 02:55 PM
to see how to use tranparancy and crap
check out my site (http://home.cogeco.ca/~swarden2/) , if you wanna see some more javascript d/l the file from first mirror..
SMcClure34
04-30-2003, 03:08 PM
Thanks a lot ;-) That worked. I've put it into use on my website at http://www.nettoon.co.uk . Click on 'SMCCLURE34' and it should load the webpage with it on. A little cute thing called 'Dickles'. THanks everyone ;-)
SMcClure34
04-30-2003, 03:12 PM
OK, maybe not, but it IS working, and it'll be up in about 15 hours from now :-S Sorry, I get paid tomorrow, and I'm not yet paying for my site, so its also very slow right now :-S
Shampie
04-30-2003, 03:14 PM
your welcome! p.s I think your site is starting to look nice!
oh yeah.. the link to newgrounds..
I thnk it is better to let it open in a new window..
because the site is bigger then the window shows..