PDA

View Full Version : Expandable Banner



youremin
July 2nd, 2009, 05:53 AM
Good morning!
I'm trying to make an "Expandable Banner".
The ad is supposed to act like this for example:
I have 200x200px with the mouse out and on the rollover it becomes 400x200 aligned on the right. Any idea on how to do this?

DanielApt
July 2nd, 2009, 08:02 AM
The most common way to do this, is to put the banner into a <div> tag (it's an html site I guess).

When there's a hover on this div, then use javascript to expand the div. The flash banner is the whole time 400x200, but the 200 pixels won't be seen, because the div is not showing that portion.

youremin
July 2nd, 2009, 09:48 AM
ok let's see what i have done and what i've found on the internet.
First of all:
The flash has the full size and the insertion has the full too...

It's inside a div already but still... can't do the resize for half the size! i'll just paste the code here.

<div style='overflow:hidden; float:right; text-align:right; width:300;'>
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="250">
<param name="movie" value="300_250.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="300_250.swf" width="600" height="250">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>

How may i fix? How may it work?

youremin
July 2nd, 2009, 01:05 PM
already solve in my way, now i'm having other problem. I've done a "layer ad". Something that appears in front of the page but i'm trying to solve the "close" button! I don't know why, i just can't call the javascript function!
first it gave me problems about the "allowScriptNetwork" or how the hell it is, sandbox error, but i already solved that now i'm trying to solve the problem to call the function! any idea?