[ Index ] |
|
Code source de LifeType 1.2.4 |
1 function init() { 2 tinyMCEPopup.resizeToInnerSize(); 3 } 4 5 function isValidUrl( url ) 6 { 7 var regexp = /(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/ 8 return regexp.test(url); 9 } 10 11 function insertAudioCode() 12 { 13 // get and check the URL 14 urlField = document.forms[0].url; 15 url = urlField.value; 16 if( url == "" || !isValidUrl( url )) { 17 window.alert( tinyMCE.getLang('lang_insertvideo_badurl', 0) ); 18 return( false ); 19 } 20 21 css="ltFlashPlayer"; 22 width=320; 23 height=20; 24 25 insertFlash( url, css, width, height ); 26 } 27 28 function insertFlash( file, css, width, height ) { 29 30 var html = ''; 31 32 html += '' 33 + '<img src="' + (tinyMCE.getParam("theme_href") + "/images/spacer.gif") + '" mce_src="' + (tinyMCE.getParam("theme_href") + "/images/spacer.gif") + '" ' 34 + 'width="' + width + '" height="' + height + '" ' 35 + 'border="0" alt="' + file + '" title="' + file + '" class="'+css+'" />'; 36 37 tinyMCEPopup.execCommand("mceInsertContent", true, html); 38 tinyMCE.selectedInstance.repaint(); 39 40 tinyMCEPopup.close(); 41 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |