Андрей Posted July 23, 2013 Share Posted July 23, 2013 с CSS разобрался ну как вставить Флеш 1 Link to comment Share on other sites More sharing options...
kongondo Posted July 23, 2013 Share Posted July 23, 2013 Spam? ..apologies to OP if it ain't This is how Google translates the above... with CSS understood well how to insert a Flash site at all wanted to do at MODX not completed PW decided to change my mind but do not quite understand what's what's website need to insert a flash on the main page without the other hxttp://xxxxxxxxxxxxx/ FLASH hxttp://xxxxxxxxxxxxxx 1 Link to comment Share on other sites More sharing options...
Андрей Posted July 23, 2013 Author Share Posted July 23, 2013 did not become to do site MODX Link to comment Share on other sites More sharing options...
kongondo Posted July 24, 2013 Share Posted July 24, 2013 I am having difficulty following you. Do you want to create a site in which some pages will have flash content and others not? Yes, you can do that in PW. PW does not generate your mark-up though. You would have to code your flash scripts which you can add to the template file for those pages that need the flash content. I haven't coded flash for many years so don't even know how I would go about that . See this thread for ideas. Are you new to PW? If you are, have you read the docs? They are super helpful 3 Link to comment Share on other sites More sharing options...
diogo Posted July 24, 2013 Share Posted July 24, 2013 This conversation is being very entertaining so far. Please keep on edit: kongondo, you are my hero! 3 Link to comment Share on other sites More sharing options...
kongondo Posted July 24, 2013 Share Posted July 24, 2013 Hehe. Am trying to help Andrew here....Andrew, you are for real, no? Link to comment Share on other sites More sharing options...
k07n Posted July 25, 2013 Share Posted July 25, 2013 Russian is my native language. I understand each word in first message, but hardly understand the whole message. So Like from WillyC has made my day =) 3 Link to comment Share on other sites More sharing options...
k07n Posted July 25, 2013 Share Posted July 25, 2013 back to the topic: According to this http://video.about.com/animation/How-to-Embed-Your-SWF-in-a-Web-Page.htm you need to insert to your template file this code: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="225" id="FlashID" title="I'm Title"> <param name="movie" value="myflash.swf"> <param name="quality" value="high"> <param name="wmode" value="opaque"> <param name="swfversion" value="7.0.70.0"> <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --> <param name="expressinstall" value="Scripts/expressInstall.swf"> <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="kawaii3_.swf" width="300" height="225"> <!--<![endif]--> <param name="quality" value="high"> <param name="wmode" value="opaque"> <param name="swfversion" value="7.0.70.0"> <param name="expressinstall" value="Scripts/expressInstall.swf"> <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> <div> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> </div> <!--[if !IE]>--> </object> <!--<![endif]--> </object> You need to change param values of course. You can look here for more info: https://www.google.ru/search?q=embedding+flash+in+html&oq=embedding+flash+in+html&aqs=chrome.0.69i57j0l3.1279j0&sourceid=chrome&ie=UTF-8 1 Link to comment Share on other sites More sharing options...
Андрей Posted July 25, 2013 Author Share Posted July 25, 2013 Папка содержит swfobject в ней expressinstall.swf , и сам скрипт swfobject.js на MODX было достаточно вот этого кода <script type="text/javascript"> var flashvars = {}; var params = {}; params.play = "true"; params.menu = "false"; params.scale = "showall"; params.wmode = "transparent"; params.allowfullscreen = "true"; params.allowscriptaccess = "always"; params.allownetworking = "all"; swfobject.embedSWF('/*******/flash.swf', 'piecemaker', '750', '180', '10', null, flashvars, params, null); </script> В PW не работает пути менял не получается/*******/ Link to comment Share on other sites More sharing options...
kongondo Posted July 25, 2013 Share Posted July 25, 2013 OK, my Russian is getting better and better From this site: http://blog.deconcept.com/swfobject/#expressinstall To use ExpressInstall, you must first upload the expressinstall.swf to your web server. Then, use the useExpressInstall method to specify the path to your expressinstall.swf. If no path is specified, SWFObject will look in the same folder as the current HTML page. You could place expressInstall.swf and the swfobject.js in your site/assets/ folder. You can then include them in your template file using PW API....You can then paste your JavaScript code above inside the template file. PW template files will accept HTML, CSS, JS, PHP..etc....Try this and let us know... Other refs: https://github.com/swfobject/swfobject https://code.google.com/p/swfobject/ - how to use documentation Link to comment Share on other sites More sharing options...
Андрей Posted July 25, 2013 Author Share Posted July 25, 2013 <script type="text/javascript"> var flashvars = {}; var params = {}; params.play = "true"; params.menu = "false"; params.scale = "showall"; params.wmode = "transparent"; params.allowfullscreen = "true"; params.allowscriptaccess = "always"; params.allownetworking = "all"; swfobject.embedSWF('flash.swf', 'piecemaker', '750', '180', '10', null, flashvars, params, null); </script> Вот этот код из HTML шаблона http://elemisdesign.com/demos/delphic/index-4.html , работает без написания сложного </object> на MODX работает Link to comment Share on other sites More sharing options...
kongondo Posted July 25, 2013 Share Posted July 25, 2013 Andrew, Place that code in your template file and I can promise you it will run... . It is just JavaScript; nothing special about it. If I have the time I will prepare a demo with your code and demonstrate this. What k07n wrote above was just an example about including flash in your site. 1 Link to comment Share on other sites More sharing options...
kongondo Posted July 25, 2013 Share Posted July 25, 2013 Andrew, Here's your demo for using SWFObject in ProcessWire. I reckon you owe me at least one free Russian lesson Hehe Here's the JavaScript code; the whole 3 or so lines of it <script type="text/javascript" src="<?php echo $config->urls->templates?>js/swfobject.js"></script> <script type="text/javascript"> swfobject.embedSWF("<?php echo $config->urls->templates?>swf/locomotive_poc.swf", "myContent", "900", "720", "9.0.0"); </script> And the HTML.... <div id="myContent" class="myflash" > <p>Alternative content if Flash doesn't work </p> </div> These code is placed in your ProcessWire template file. There is hardly any PHP in it. Of course, you can add your SWFObject parameters as you wish...Next you create a PW page and make it use that template file. I placed my swfobject.js file in /site/templates/js/ and the .swf in /site/templates/swf/ (I created the swf folder). That's all there is to it So, what do you say? ProcessWire rocks, right? 3 Link to comment Share on other sites More sharing options...
Андрей Posted July 25, 2013 Author Share Posted July 25, 2013 СПАСИБО !!! ДОБРЫМ ЛЮДЯМ ЗА ВНИМАНИЕ Link to comment Share on other sites More sharing options...
kongondo Posted July 25, 2013 Share Posted July 25, 2013 СПАСИБО !!! ДОБРЫМ ЛЮДЯМ ЗА ВНИМАНИЕ I'll take that as a yes . Пожалуйста! 4 Link to comment Share on other sites More sharing options...
Андрей Posted July 25, 2013 Author Share Posted July 25, 2013 Все работает Спасибо!!! 1 Link to comment Share on other sites More sharing options...
k07n Posted July 26, 2013 Share Posted July 26, 2013 kongondo, you rock! =) ps: Андрюха, пиши в следующий раз хотя бы через переводчик яндекса/гугла. Это, все-таки, англоязычное сообщество и корявки наши разбирать не каждому под силу, а люди реально помогают. Добро пожаловать на форум. 2 Link to comment Share on other sites More sharing options...
Андрей Posted August 6, 2013 Author Share Posted August 6, 2013 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now