MooTools - Setup To Slide Whatever Content Is In The Div 'sub_content'
Mar 4, 2010
Bascially I have a main page with all the code setup to slide whatever content is in the div 'sub_content'. As below: [URL] Contained in the my "external pages" are different slide contents that I want inputting into the 'sub_content' div as below: [URL] If you click 'Test Link 2' you will see it fade out but it's then loading in the main page again? I think it is this line of code found in submenu.js where the problem lies? var myXHR = new Ajax( objLink.href + '&blnAjax=1', { method: 'get', evalScripts: true, autoCancel: true, onSuccess: showSubPage } ).request();
View 13 Replies
ADVERTISEMENT
Aug 29, 2009
Im a bit of a noob when it comes to mootoools, but have created a menu which hides itself and slides in from the left... I'd like to have it start hidden first though... can anyone tell me what i need to add, remove or edit?
[Code]...
View 1 Replies
View Related
Jun 9, 2009
I'm using Mootools 1.2.0 and I'm trying to create a mouseover slide menu. That means that there will be a slideIn effect on menu-item's mouseover event. I have created a menu and I have achieved the sliding effect. The problem is that when I mouseover quickly on menu items, the slide in effect of each item doesn't have enough time to complete. In the end, there are more than one slides opening at once, instead of one. Is there someway to force my script to end all slidein or slideout effects before starting a new one?
[Code]...
View 1 Replies
View Related
Dec 16, 2010
Is there a way to edit the following show hide set up to allow for initial div to be open. So for example instead of nothing coming up, #video1 would initially load and then when you click on li links it would load a new div in as coded replacing the initial video for example, if you clicked video 2 or 3 thumbnails?
HTML=
<ul id="brightCove">
<li onclick="javascript:doShowHide('video1');">
<a href="javascript://">video 1 thumbnail here</a>
</li>
<li onclick="javascript:doShowHide('video2');">
<a href="javascript://">video 2 thumbnail here</a>
</ul><div class=showhide" id="video1">
content for video 1 </div>
<div class="showhide" id="video2">
content for video 2 </div>
JS
$(document).ready(function() {
// Add ID of New Category in line below separated by Commas
$("#video1,#video2").hide();
});
doShowHide = function(idstr) {
$("div.showhide:visible").each(function () {
if (this.id != idstr) $(this).hide("fast");
});
$("div.showhide#"+idstr).show("fast");
}
View 1 Replies
View Related
Sep 22, 2009
I have just setup jeditable for a text area and this works fine however when I activate / click on the text area to bring up the editor, the content is filled with br tags (example below). How to convert the br tags into tags before it is displayed?
comment 001<br><br>
<br><br>
comment 002<br><br>
<br><br>
comment 003<br>
Comment 4
JQuery code
$(".editable_textarea").editable("update-comment.php", {
indicator : '<img src="/intranet/media/icons/indicator.gif">',
type : 'textarea',
submitdata: { _method: "put" },
select : true,
submit : 'OK',
width : 400,
rows : 3,
cancel : 'cancel',
cssclass : "editable",
id : 'comm_id',
name : 'comm_details'
});
View 1 Replies
View Related
Oct 17, 2009
On my website: [URL], I have a scrolling logo script that uses Mootools and a tabbed AJAX content script using jQuery. I can't get the two to play well, because as you can see, the tabbed content at the bottom is not working correctly. I've tried the jQuery.noConflict(); code and wrapping the jQuery in:
(function($) { /* some code that uses $ */ })(jQuery)
... But to no avail.
View 2 Replies
View Related
Jul 15, 2011
I am having trouble accessing both the Class and the current element. How can I have access to both the current element and the Class?
// Class stuff above
fuction1 : function () {
myelements.addEvent('click', this.function2);
[code]....
View 6 Replies
View Related
Oct 4, 2011
I'm look to create a kind on instruction manual where the user can slide through pages. Rather than using an image slider, which scroll's through the images (or content), I want to stack the pages on top of each other.1. Click NEXT and Page 1 slides into view.2. Click NEXT again, and Page 2 slides out on top of Page 13. Click PREV and page 2 slides back, out of viewI started a fiddle here, showing the slide of page 1. But I'll need a way to count the pages, and for the NEXT and PREV links to know which pages to slide.
View 3 Replies
View Related
Mar 22, 2010
I have a quick question for all you skilled developers -- I'm new to the forum, intermediate with JS/jQ.
How simple would it be to implement a subtle and quick slide-in of the page content using jQuery (only that once for the home page onload).
For a reference check out this site example. I wanted to do something nice like this WITHOUT FLASH =)
View 4 Replies
View Related
Oct 16, 2009
I have hidden div, that i want to show by sliding it in from topborder.The problem is that i don't know how to make it "slide in" instead of"wipe in".I want it all to move with it's content instead of showing more andmore of it.
View 1 Replies
View Related
Jan 13, 2012
Im looking for something that would allow a user to click on a button / link that would then reveal hidden content by sliding the whole of the main site content / container down.
I found this which slides the page content to the left or right [URL]
But need something vertical, almost as if the whole site was a big vertical accordian.
Or like on twitter / facebook phone app when refreshing for new tweets etc.
View 2 Replies
View Related
Feb 9, 2011
I'm using Lightbox picture displayer [URL].. and a content slide show UI [URL].. on the same pagesimultaneously. Although when I connect to the javascript files in my html page one of the effects won't work. Whichever javascript file I include last doesn't seem to work.
In the scenario below my content slide show effects won't work because they are listed first. It seems that whatever is listed last overrides everything else. I've also listed the error I get when running the page.
[Code]...
View 2 Replies
View Related
Feb 2, 2011
I'm having a little trouble with 2 differentJS scripts. I have a drop down slide menu and a parralex slide gallery. Both work on separate pages and puton the same page they still work however the submenu of the slide down menu does not. if I remove the style sheet that belongs to the gallery
Then the munu works, however (obviously) the page layout goes wrong. if i remove<h1 class="title">Alex Holland Perspective</h1> the menu works however page layout goes wrong andI loose my header
Here is the code.
View 4 Replies
View Related
May 30, 2010
I think right now jQuery slideDown() will show the content bit by bit (line by line) of that DIV, showing top content first, and then little by little, the content below it...
Is there a way to actually slide the *content* down as well? In order words, showing the bottom of the DIV, and then it will move down, a little by little, and then show more of the content above it.
View 1 Replies
View Related
Oct 19, 2011
I'm making a form with some fields. Once the form is submitted it updates the page with a new div containing the data entered without refreshing. Im using jquery form plugin. What I'd like to achieve is the new div(.record) to .slideDown. I guess I need to somehow specify the exact div by giving it an id or number. I'm not sure and why im here.
At the moment when i submit all of the divs(.record) are hidden with .hide, then they all slide down with .slide. Best i can understand is to hide the last div then slide down. But again.. I don't know how to specify to only slide down the last div added and not the current .record divs on the page.
[Code]...
View 3 Replies
View Related
Jun 17, 2011
I'm trying to manipulate the functions of Codaslider for a layout. What I need is the ability to use an image for slide dynamic slide navigation. I've solved the issue for dynamic hashing, however I'm stuck at modifying the HTML. I've tried a few things but I figure this is the easiest way...
[Code]....
View 9 Replies
View Related
Jul 1, 2010
I'm using jQuery cycle plugin right now, and I want to add a new slide based on the newly created image and I want to replace this slide later if the user has updated the image. I read the document of jQuery cycle, and I found it's using onBefore callback to do the job, but it's not on the fly, how could I do it on the fly?
View 2 Replies
View Related
Dec 13, 2011
How to insert and remove slide in jquery cycle before the first slide.
View 3 Replies
View Related
Jul 10, 2007
I've seen websites that had large flash ads that covered content on pages that, after they had run, resized or disappeared.
We would like to use the technology behind that (presumably JavaScript) to show and hide an intro flash on a home page. We would like to have a "close" link on the flash also.
I have searched Google and here but haven't found any good resources and many of the sites I have seen using the technology are no longer using them. I just need a little assistance on the JavaScript part of the puzzle.
We want the flash to start over the copy on the page and then roll out softly when it's done playing, revealing the content below. Code:
View 1 Replies
View Related
Mar 24, 2010
I am very new to using jquery (and any javascript at all really) and I am having a dillema. I am trying to have several expandable sections of my webpage but I only want one to be opened at a time so I want to use slideUp and slideDown rather than slideToggle.
I want to use the same button to open and close the section. How do I do this? Here is my current jquery code, as of right now when I click expandButton1 the itemContent1 section closes and then reopens immediately:
[Code]...
View 2 Replies
View Related
Apr 30, 2009
It's for a navigation on my website. I want to have the sub-categories sliding down, if you click on a parent-category. I made it and there's no problem. But I want the sub-categories to slide away with a second click on the parent-category and I don't know how to do this.
to give you an example of my code:
the html:
<ul>
<li><a href="#">Home</a></li>
<li class="menuparent"><a class="menuparent2" href="#">Info</a>
[Code].....
View 8 Replies
View Related
Nov 9, 2009
I'm trying to get a mootools plugin to work with a slide in/slide out javascript using multiple divs. Here's the page: [url] The mootools code (Noobslide) slides a main image on the right when you click thumbnails on the left, which are wrapped in a thumb mask using CSS. The first row of thumbnails works perfectly, but when it's passed on to the next div the mask isn't passed on and the effect breaks down.
Here's the html:
The javascript:
The CSS:
View 1 Replies
View Related
Aug 24, 2010
Im a starting graphic designer, 21 yrs of age and just rolling into this webdesign industry. Ive come a long way, do have some knowledge.. but when it comes to complicated things like JS I often visit knowledgeable forums like these.
I hope I can contribute into making this community richer.
Now, Ive implemented this slide out menu succesfully before, only now it seems that ive mistaken somewhere. The menu just pops out instead of sliding out like it should.
Code:
<script type="text/javascript">
$(document).ready(function(){
var docked = 0;
$("#dock li ul").height($(window).height());
[Code]....
And if you want to see a working example of how it should be look here.
View 4 Replies
View Related
Jun 26, 2010
Trying to learn the basics... Here is a script for three toggle buttons that each when clicked open their corresponding divs. Fine. Now how does one go about automatically closing an open div when clicking on a new 'toggler' that opens it's div? I see other posts about this very question, but I'm just not grasping the logic.
jQuery(document).ready(function($) {
$("#toggle1").click(function () {
$("#toggle1div").toggle("drop", {direction:"right"}, 500);
});
$("#toggle2").click(function () {
View 3 Replies
View Related
Dec 28, 2000
Whats the code to setup pop up windows? I've got a page that I want to say Happy Birthday but I want it to popup different windows with messages; sort of like those popup ads.
View 1 Replies
View Related
Sep 1, 2009
I am trying to set up a web site for an art gallery.That is for new talents so I have no budget.I am not a web designer and I am facing some barriers.My problem is, I guess, about going around with the DOM node tree. My page looks like this:[code]How it works:In first place, after page has been loaded,I am using frame 4 to run a HTML form. After submit,iframe 3.1 is populated with thumbnails according to the query.When a thumbnail is clicked,I succeeded in bringing the corresponding text, talking about the artwork, on iframe 5.1 to do so, I change the html source in iframe 5.1.I am using for that: [code] The idea was about doing the same with the frame 4 that is for a larger picture of the artwork.But first I need to get rid of the form once it was submitted (bring a new HTML with a dummy transparent gif to be swapped with the desired picture).But how can I bring a new html in frame 4? After the form is submitted the 'action' moves to iframe 3.1.I tried changing the html source using getElementById but I could not find a way to get to the right object.Two src attibutes must be changed with code written in iframe 3.1. (where the thumbnails are clicked). But How can I address and change the HTML src code in FRAME 4 ? How can I address and change the src image in the new code loaded in FRAME 4 ?I have both attributes in variables but don't know how to get to the target elements
View 2 Replies
View Related