I would like to create an ad like the one that is currently on yahoo.com
After it loads it gives you the option to click to expand.
Simply using transparent flash does not work because you cannot click through in firefox.
I have also been able to resize the div with javascript when various actions are called within flash. That works but the ad has to be positioned absolute so so it can expand without making the other html content wrap when it’s expanded.
Any ideas on how to create an ad like the one on yahoo right now for dodge. Any positioning techniques I could use that would allow me to float the ad in a already positioned ad slot.
here is some of the resize code in html
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1”>
<script type=“text/javascript” src=“flash_resize.js”></script>
<script type=“text/javascript”>
function setFlashWidth(divid, newW) {
document.getElementById(divid).style.width = newW+“px”;
}
</script>
</head>
<body bgcolor="#000000">
<div id=“flashid” style=“overflow:hidden; height:250px; width:730px; position:absolute; z-index:100; text-align: right;”>
<script type=“text/javascript” language=“JavaScript”>
e = canResizeFlash();
document.write(’<object data=“flashResize_730x250.swf” width=“730” height=“250” type=“application/x-shockwave-flash”>’);
document.write(’<param name=“movie” value=“flashResize_730x250.swf” />’);
document.write(’<param name=“FlashVars” value=“allowResize=’+e+’” />’);
document.write(‘Flash Movie With Resizing Content’);
document.write(’<param name=“wmode” value=“transparent” />’);
document.write(’</object>’);
</script>
<noscript>Javascript must be enabled to view Flash movie</noscript>
</div>
example call from the flash file
expand.onRelease = function():Void
{
stretch.gotoAndPlay(2);
getURL(“javascript:setFlashWidth(‘flashid’, 730)”);
};