mootools

Approximating a mootools' .slide('out') on an element prior to Fx.Slide instantiation

让人想犯罪 __ 提交于 2019-12-25 04:22:25
问题 It'd be simple to add var myFx = new Fx.Slide(element); to window.addEvent('domready'...) , but because I am loading "sub-pages" using AJAX, the mootools objects of these elements inside these pages need to be instantiated after have loaded fully. If I tried using domready, the element would not be found, simple because it doesn't exist yet. I've been working around this with setTimeout(function() { ... }, 500); , but this leaves a 500ms delay between page load and element effect creation. i

Only display days of specific month in datepicker

独自空忆成欢 提交于 2019-12-25 03:12:09
问题 I have a date picker and it is displaying a date. But the problem is each month is showing some days of previous month and also some days of next month which I don't want to be displayed. I want that each month should display days of that particular month. For example let's say Month JUNE , here some days of month MAY and also some days of month JULY are displayed, but i want that only days of JUNE should be displayed. How can I do it? I am trying but no result is coming. Here is the fiddle:

How to fix Mootools and jQuery conflict on Joomla aiContactSafe

北慕城南 提交于 2019-12-25 02:19:13
问题 Overview I have a Joomal 2.5 website with AiContactSafe contact form installed. Standard AiContactSafe works as a component which means, I cannot include a contact form into an article, it has be on its on taking the whole page on my website. AiContactSafe has a plugin called AiContactSafeForm which enables users to add a form into a page using a tag like {aicontactsafeform pf=3} . Number 3 is the id of the form. And what this does is, it enables users to add a form into an article. This

MooTools: Get child nodes

十年热恋 提交于 2019-12-25 02:08:31
问题 I have the ID of an element. I want to retrieve all child elements and all text nodes . Is there a way to do this in MooTools? For example, say I have this markup: <div id="foobar"> test <img /> </div> How can I use $('foobar') to select both text node "test" and element "img", like they're siblings? 回答1: You can use the get() function to get specific properties of an element that have been set in the Element.properties hash ('html','text' or 'tag' are set by default): alert($('foobar').get(

swf works within <embed> only - not working with bumpbox (lightbox alternative)

一笑奈何 提交于 2019-12-25 02:07:47
问题 I have this code http://www.bodom.eu/fsproblem There is one .swf within tag and when you click on full screen button, it WORKS. When you click on flash01 link, there is the same .swf within < a> tag (in lightbox style window), where it does NOT WORK. All I need is to make work the fullscreen button in the bumpbox window. Thank you very much. Bumpbox use mootools and flowplayer. 回答1: The issue you're having is actually coming from Mootools. Mootools has an Flash embed class called Swiff, which

javascript and dragging in firefox

不问归期 提交于 2019-12-24 23:23:29
问题 I am writing a script to scroll a div container with javascript. Unfortunately it is not working that well in firefox. In firefox the stop-icon appears next to the cursor once I start dragging the knob and then my script is not able to get the mouseup-event. Does anyone have an idea how to fix this? http://www.novuspix.de/scroll/ 回答1: Check that mousemove event attached to document or window and not to the .knob element. 回答2: For those looking for a fix to a stop icon blocking the mouseup

MooTools to jQuery with Canvas element

两盒软妹~` 提交于 2019-12-24 21:21:39
问题 I have found a JS Fiddle that provides a perfect solution for a project I am working on. Unfortunately the framework selected in the fiddle is MooTools. I am working in jQuery 1.9.1 and when I switch framework to jQuery the fiddle breaks. I have tried to change out a few of the things I thought might be causing the issue, but no luck. I'm hoping someone has enough familiarity with both frameworks that they could fork off a jQuery working version of this... http://jsfiddle.net/oskar/Aapn8/ I

Update text input field dynamically using two select menus with Javascript

风格不统一 提交于 2019-12-24 20:29:29
问题 I am trying to figure out how to dynamically update a text input field when a user changes the option in one or two HTML select menus. I have included my code below showing how it currently works. $('tickets').addEvent('change', function() { if($('tickets').value > 0) { var cells = $$('.ticket2'); cells.each(function(cell) { cell.setAttribute('style','display:none;');}); var cells = $$('.ticket3'); cells.each(function(cell) { cell.setAttribute('style','display:none;');}); var sumValue = '$' +

Searching a Jquery Cycle Pluggin for Mootools

旧时模样 提交于 2019-12-24 18:40:00
问题 im looking for something like this: http://www.malsup.com/jquery/cycle/basic.html but made in mootools, do you know about one? :) thxs. 回答1: Slideshow 2 @Not working in IE. I don't know I don't use IE but the Slideshow googlecode page states Slideshow is compatible and fully tested with Safari, Internet Explorer 6 and 7, Firefox (and its mozilla friends), Opera and Camino. Here a few others to test out floom noobSlide SmoothGallery iCarousel BarackSlideshow 来源: https://stackoverflow.com

Changing style of :hover selector in mootools

怎甘沉沦 提交于 2019-12-24 16:54:35
问题 I have tried google, but I can not definite answer. I am trying to edit the styles of #sidebar:hover from mootools. My css is as follows: #hoverzone:hover { background: #EEE; } Now, I am trying to edit the background color from mootools when the page loads, to signify javascript is enabled. I know I can do: $('hoverzone').addEvent('mouseenter', function(){ this.setStyle('background','000'); }); But I was wondering if there is a function I could call at the load of the page, that does this in