1 post
  • Has been part of the Envato Community for over 5 years
  • Has collected 100+ items on Envato Market
  • Sells items exclusively 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…

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by