1 post
  • Has been part of the Envato Community for over 5 years
  • Has collected 100+ items on Envato Market
  • Located in Spain
litur says

I need the solucion for created a popup with dreamweaver to show a swf like a image

3 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 1+ items on Envato Market
simon_777 says

hello

1. in the the header.php of your theme in wordpress or in your page

< head >

< script type=”text/javascript” src=”<?php echo bloginfo( ‘template_url’ ); ?>/js/PopUpWin.js” ></ script > </ head >

2. creation a folder “js” with a file “PopUpWin.js” in your wordpress theme or in your site:

inside:

function PopUp(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0 if(window.screen)if(isCenter)if( isCenter==”true” ){ var myLeft = (screen.width-myWidth)/2; var myTop = (screen.height-myHeight)/2; features+=(features!=’’ )?’,’:’’; features+=’,left=’myLeft’,top=’+myTop; } window.open(theURL,winName,features+((features!=’’ )?’,’:’’ )‘width=’+myWidth’,height=’+myHeight); }

3. creation a swf call button.fla with flash

in actionscript

on(release){ getURL(“javascript: PopUp (‘http://www.yoursite.com/button.swf’,’popup’,’scrollbars=no’,’200’,’50’,’true’ ) ” ); // open popup }

4. go and play your button.swf anywhere in your wordpress site or static page

3 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 1+ items on Envato Market
simon_777 says

script type=”text/javascript” src=”<?php echo bloginfo( ‘template_url’ ); ?>/js/PopUpWin.js”

BEFOR head

3 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 1+ items on Envato Market
simon_777 says

in the step 3.

in actionscript

on(release){ getURL(“javascript: PopUp (‘http://www.yoursite.com/yourflashswf.swf’,’popup’,’scrollbars=no’,’200’,’50’,’true’ ) ” ); // open popup }

change the name the address and dimension of your animation

sorry…

by
by
by
by
by
by