|
|
||||||||
Get flash movie dimensions (width and height) before insertingThis is a discussion on Get flash movie dimensions (width and height) before inserting within the WYSIWYG Editors forums for Mambo. |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Mambo Noob
Join Date: Nov 2007
Posts: 8
|
Get flash movie dimensions (width and height) before inserting. (It does not work for remote files!)
1) Download the latest stable getid3-1.7.7.zip, unpack and put the second getid3 folder only into your /UserFiles/ folder. (This util is not a small one, but it can analyze a lot of file types. You may delete unnecessary modules, but check dependencies.txt before do it.) 2) Create a new file named measure.php with this content (edit the first line) and put it into your /mambots/editors/mostlyce/jscripts/tiny_mce/plugins/flash/ folder. PHP Code:
Put this into head section: Code:
<script language="javascript" type="text/javascript">
function getDimensions()
{
var myfile = document.forms[0].file.value;
if (myfile)
window.open('measure.php?url=' + myfile,'','width=200,height=200,left=200,top=200,scrollbars=no,menubars=no,resizable=no,statusbar=no');
}
</script>
Code:
<a href="javascript:void(0)" onclick="javascript:getDimensions();">Get dimensions</a> |
|
|
|
|
|
#2 |
|
Mambo Noob
Join Date: Dec 2008
Posts: 1
|
Re: Get flash movie dimensions (width and height) before inserting
PHP Code:
|
|
|
|
|
|
#3 |
|
Mambo Noob
Join Date: Jul 2009
Posts: 1
|
Re: Get flash movie dimensions (width and height) before inserting
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
| New To Site? | Need Help? |