AS1 / AS2 In the action of your flash button, you have to execute this code: getURL(“javascript:$.nyroModalManual({url:’YOUR URL’});”); AS3 In the action of your flash button, you have to execute this code: ExternalInterface.call(“$.nyroModalManual({url:’YOUR URL’})”); http://nyromodal.nyrodev.com/wiki/index.php/Open_a_modal_window_from_a_Flash_movie
Category Archives: JavaScript – Ajax
Javascript Open Flash Object
<script src=”/commons/js/flashobject.js” type=”text/javascript”></script> <script src=”/commons/js/FlashDetect.js” type=”text/javascript”></script> <script type=”text/javascript”>// <![CDATA[ // Globals // Major version of Flash required var requiredMajorVersion = 8; // Minor version of Flash required var requiredMinorVersion = 0; // Minor version of Flash required var requiredRevision = 0; function openVideoPopUp() { document.getElementById(“showflash”).style.display=””; var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); // Check to see …
Embed custom fonts
http://jonraasch.com/blog/embedding-custom-fonts
Disable right mouse click Script
<script language=JavaScript> <!– //Disable right mouse click Script //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive //For full source code, visit http://www.dynamicdrive.com var message=”©2010 Prosoxi.gr All rights reserved.”; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else …
Tinymce How can I disable Tag?
How can I disable <p> Tag? force_br_newlines : true, force_p_newlines : false, forced_root_block : “”,
Javascript SSL protocol Switch
switch (window.location.protocol) { case “http:”: include(‘http://www..js’); break; case “https:”: include(‘https://ssl..js’); break; default: include(‘http://www..js’); break; }