Skip navigation

Tag Archives: Flash

In this section explains if you are making a website and you need a code for html to work with a pop-up html window with specific length and width.

CODE IN HTML

*this will be placed inside the html you are working on*
<script type=”text/javascript”>
//Insert this code inside the javascript
function popup(url) {
newwindow=window.open(url,’name’,’height=600,width=800′);
if (window.focus) {newwindow.focus()}
return false;

}
</script>

*Then this is the code for the link*
<a href=”samplepopup.html” onclick=”return popup(‘samplepopup.html’)”>This is the Pop-up</a>

In this section explains if you are making a website and you need a code for a flash button to work with a pop-up html window with specific length and width.

CODE IN FLASH

*this will be the code inside the flash button*
on (release) {
getURL (“javascript:openNewWindow(‘samplepopup.html’,’thewin’,’height=600,width=800,toolbar=no,scrollbars=no’);”);
}

*html code* *where the flash object is embeded*
<script language=”JavaScript”>
//Insert this code inside the javascript
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>

*inside html-body tag*

<EMBED src=”samplepopup.swf” quality=high bgcolor=#FFFFFF WIDTH=800 HEIGHT=500 swLiveConnect=true name=samplepopup.swf TYPE=”application/x-shockwave-flash” PLUGINSPAGE=”http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash”></EMBED&gt;

take note: the width and height of the object is up to you to decide on what will you be using.

Advertisements