Mm_menu And Hiding Recently Made Visible Layers
Sep 26, 2007
I'm working with this code which sets an object to visible when clicked. Trouble is the previous object hasn't been set to hidden so they overlap each other.
How can I get this function to hide the previous object before showing the next ?
Code:
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='show')?'hidden':v; }
obj.visibility=v; }
View 5 Replies
ADVERTISEMENT
Apr 15, 2003
I have a question. If you have a HTML list that pops up as a menu under a graphic in a layer when you mouseover the graphics, how do you instruct that layer to vanish again when you mouseout from the menu?
I can do onMouseOver show the layer and onMouseOut hide the layer, but I'm stuck when it comes to applying that to a larger area (ie: multiple clickable items). I can think of ways of doing it, but they're a bit clunky and I'm assuming there's a good or 'proper' way of achieving this.
View 6 Replies
View Related
Nov 17, 2004
I need to find a way to show/hide layers with the help of clicking a check box. I want it to be the default layer, then when a check box is clicked, that layer shows up. I need it to be able to display multiple layers (overlapping) that are linked to which check box is checked or unchecked. Code:
View 22 Replies
View Related
Oct 18, 2010
I'm trying to show and hide layers with css and a javascript function. It works, but the only thing I can't figure out is how to make it display ONLY one of the layers on initial load. Below is the following code that appears in the html doc.
Code:
<script type="text/javascript">
//visible layers
function $_(IDS) { return document.getElementById(IDS); }
function setVisible( IDS ) {
[Code]....
I can't seem to just get the "BIO" layer to display by itself on the initial page load.
View 3 Replies
View Related
May 26, 2009
I have 3 types of columns and they are identified by their class (in the TD and TH)... they are1. Always - cells that always appear - includes a primary key2. Main - cells that are necessary to be shown, but can be toggled3. Advanced - cells that are superfluous but helpful for the viewer.I want the user to be able to toggle Main and Advanced as visible/invisible. I tried the below code, which works, but, but since there's so much data it will lock up the browser and even invokes this ff error: "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: jquery-1.3.2.min.js:19"My questions are basically, can this be done without freezing up the browser? (e.g. can I group columns together and hide each column, since I believe it's the sheer amount of cells that I am hiding?)Here is my code:here's my javascript (on top of jquery's inclusion)
Code:
<script type="text/javascript">
$(document).ready(function() {
[code]....
View 2 Replies
View Related
Aug 19, 2011
Why is the input type = radio on this page is not getting the value assigned to it after the user clicks on the related selection? Here is the page under development: dreamdates.com - TOTALLY FREE online dating service - You can see this by selecting a choice for "I am a: " Radio button selection. I have set up Javascript code, alert, which will tell you that that selection is "Undefined" even though you have selected male or female.
View 4 Replies
View Related
Nov 22, 2009
The URL is [url]
Two problems with a recently viewed items script. One is an undefined that's getting written with each iteration. How do I get rid of the string of 'undefined'?
The other is that the items write out in the reverse of the order I want them in. I suppose I could just make the containing <div> tags float: right; instead of float: left; and fix this, but it would look odd when only 1 or 2 items have been viewed. I'd like item 1 to display to the far left, then shift to the right as additional items are viewed. Recently viewed items show horizontally at the bottom of the page content, above the footer.
The JS for the recent items is:
Code:
The script embeded in each page to pass values to the above looks like:
Code:
View 6 Replies
View Related
Aug 9, 2011
I'm getting strange error "Object doesn't support this property or method" while accessing the application recently. The same code I am using since long time.
The below code is written in java class:
The error is appearing on the line:
How to resolve this error?
View 1 Replies
View Related
Jul 13, 2009
In the below code, the ajax-loader disappears before the html returned by .load is actually visible in the browser. How can I correct it?
[Code]...
View 1 Replies
View Related
Jun 23, 2010
I have the following code that don't work like i want it.
Code:
function hideDisplaySingleSuite(textstring) {
var myclass1 = new RegExp('\b'+textstring+'\b');
//Populate the array with all the page tags[code]....
For example.It show objects if I remove the if statement that checks if the class is visible.for example this shows a class and works.
Code:
function hideDisplaySingleSuite(textstring) {
var myclass1 = new RegExp('\b'+textstring+'\b');
//Populate the array with all the page tags[code]....
So my question is why don't this work on a class, it works on an "id"?
Code:
if (allPageTags[i].style.display ==''){
allPageTags[i].style.display = 'none';
}[code]....
I want to show the class if its not visible or hide it if it is visible.How can this be done?
View 4 Replies
View Related
Jan 30, 2010
I'm using the following css code which wrapped around a dynamically populated field;<span class="ui-widget-header platform ui-corner-all"></span>
When the span is empty I want to hide it, and I've used this jquery to do this.
However, the ui-widget-header class appears to be stopping it from hiding - if I remove this class it hides fine.
View 5 Replies
View Related
May 14, 2011
The attribbute "switch" is an attribute i made up. I've done this in other parts of my code and used jQuery with them and it worked fine.
That problem being. Why won't my "img[switch]" change opacity and switch attribute value?
Here is my code assigning the click behavior...in this function you'll see setSwitch(int)
View 6 Replies
View Related
Oct 20, 2010
I have a Javascript function that dynamically creates a box withocument.getElementById('lightbox').innerHTML. In the box will be among other things a div with id="div1" and visibility="hidden" and a form which, onSubmit, calls the function myFunction.Code:The function basically looks like
function myFunction() {
document.getElementById('div1').style.visibility = 'visible';
}
[code]....
View 3 Replies
View Related
Jun 29, 2009
Okay, I am in the process of making an Ajax library for jBeta, and have run into a snag. code..
NOTE - I have stripped everything not-necessary for this code out. If you want to have the rest for testing it can b downloaded from the jBeta project thread in the projects forum (everything is the same except for this Ajax stuff, which I am adding).
Now, as you can tell the two calls are the same. The first one returns fairly quickly, but the second one never returns, and I haven't got a clue as to why (it is late, so I may have missed something). What should be happening here, is that you can have 1 Ajax call going at a time (I know the limit is 2, this is just for dev purposes), when you get multiple calls all the subsequent ones should be added to a queue and then the library should get to them in order (seems to work, it calls the call() function 3 times). For some reason the later calls (after the first one) are never made (I am assuming that is the problem, they should return if they are successfully sent, one would think).
View 11 Replies
View Related
Jul 10, 2010
I have multiple IFrames on my site with different content inside each. I made a back button for each IFrame
Code:
'<a href="javascript:'+ WindowFrameID + '.history.back();"><div class="forwardbutton"> </div></a>'
It works well for a single frame but if I follow any link inside frame1 and click back button for frame2 then frame1 goes back.
View 2 Replies
View Related
Jul 23, 2005
I'm having a problem rewriting a window with a popup I made. I'm using
Debian Woody with Mozilla 1.0. I can make the popups, but I cannot rewrite
the original window with the new information gathered from the popup. Can
someone please make some suggestions. I've got most of my information from
an old copy of the Rhino book.
View 1 Replies
View Related
Apr 18, 2011
I'm having trouble with the z-order in a slideshow made with cycle. Basically, my slides are an unordered list. Each list item is a slide with a background image, some text and a link. The relevant snippets of code are shown below.I have two absolutely positioned elements. One that is a div that goes around the entire <ul> that kind of frames the slide show. A second one is the link inside each <li>.The problem is that the link inside the <li> isn't clickable, even though it displays correctly.I think I have the z-index set correctly for all elements. If I turn off the slide show, it is clickable, suggesting I have it correct. If I remove the outside "frame" <div>, it is also clickable. It is only when they are both present, and the slide show is running, that the link becomes dead.
I have a pager turned on, but that doesn't affect this situation. I left it in, because it represents another absolutely positioned element that does work within the "frame".Both the pager and the frame are positioned above the slide.So, it seems something is happening when the slide show runs that I don't understand and is conflicting with elements it doesn't know about.Here's the code
<script type="text/javascript">
$(document).ready(function() {
$('.slides').before('<div class="pager">').cycle({
[code]....
View 4 Replies
View Related
Sep 28, 2010
Is there any way with Firebug, or any other tool, to easily find which functions are being called by which page on load?I need to optimize a huge pile of JavaScript files for a large website.
View 2 Replies
View Related
Jan 20, 2011
Basically I'm making an order form that updates the Total Text Box at the bottom of the page depending upon which selection is made from the drop down box in the form,
View 3 Replies
View Related
Mar 9, 2010
create a java script that is similar to the flash content Our Picks This Week >See New Book Releases at http:[url]..... If so, does anyone have examples that I might could use/modify? Or possibly instruct me on how to go about creating it?
View 3 Replies
View Related
Jul 23, 2005
I have two drop/down menus that are dependant on each other. When I have
made a choice in both of these menus and press a button I get to a page
depending on the choice made. On this page there is two buttons "Accept" and
"Back".
When I press "Back" I would like to get back to the page with the two menus
and they should be set to the choice I made. Now the just reset when I press
the "Back" button.
Is it possible to save the options that I choose from the drop/down menus
when I get back to them by pressing "Back"??
View 3 Replies
View Related
Feb 1, 2011
I would like to write a jquery function that will work like this:
$(document).ready(function(){ifclick is made then do:
$("#wheel1").click(function(){ $(".wheels").show(500);});
leave the function
else:$("#wheel1").mouseover(function(){ $(".wheels").show(500);});
$("#wheel1").mouseout(function(){ $(".wheels").hide(500);});
View 1 Replies
View Related
Apr 29, 2009
I am working on a page that has a lot of hidden DIVs on it.I have it so if I mouse over the links on the left, the div and its contents appear. This all works but there are a lot of images in the DIVs and I don't want them to load until a DIV is made visible.How can I keep the browser from loading these images until the DIV housing them is made visible?right now, the page takes a long time to load because it is loading all the images in DIVS that have not been shown and might not get shown if a user does not select that content.
View 11 Replies
View Related
Dec 29, 2009
if you take a look at this site here [URL] you can see that it no longer scrolls or even displays content, but here [URL] it does. I'll bet there's a quick fix here, but not sure what it is.
View 11 Replies
View Related
Jul 27, 2011
I've got this JavaScript code that I'm using to play audio on my site made specifically for iPhones, iPods, and whatnot. However, my only problem is, that I can only pick one audio file to play from, no matter what. Can someone tell me what I'm doing wrong? I really need this specific code cause it allows me to play audio without going into the Media Player on the iPhone and iPod.
Here's what I have in the head section:
And the body:
And now to actually play the audio:
I can play audio fine, but I'm only limited to one audio file per page. Is there anyway around this??
View 2 Replies
View Related
Jun 2, 2011
i am looking to create a simple travel website where the user inputs details into a form or selects options from a drop down menu. When they submit their details they are taken to another webpage were simple adverts on the side of the webpage will relate to the options they selected from the drop down menus. For example: I select New York, and some dates. The advert on the next page will say 'Going to New York, stay at this hotel'
It will say the same if another city is selected but with the city name changed and the hotel name changed. On the second page i will ask the user to fill in personal details in a form, and again after they click submit, they are taken to another webpage and the advert will change, maybe including their name and some other details.
Is this possible and how would i go about it? The adverts only need to include some simple text for now. If the text can srcoll or move that would be a bonus. I have looked through many books and searched the web and cant find anything. I just want to use the input and selections made from the user to adapt the next webpage.
View 1 Replies
View Related