Turn Every Other Layer To Hidden
Apr 22, 2002
I have this bit of javascript:Code:
function toggleVisible(divname) {
divstyle = getDivStyle(divname);
if (divstyle.visibility == 'visible' || divstyle.visibility == 'show') {
divstyle.visibility = 'hidden'
} else {
fixPosition(divname);
divstyle.visibility = 'visible'
}}
The problem is I need this function to turn all other visible layers to hidden.... Does someone know how to refer to all layers in a document and turn their visibility to hidden? I can then call that function from the above...
View 5 Replies
ADVERTISEMENT
Mar 1, 2010
I want the hidden layer to open when the visitor clicks and stay open until they click the close x. I can get the hidden layer to show onMouseover, but not onclick.
Code:
<script type="text/javascript"> // Copyright 2006-2007 javascript-array.com var timeout= 500; var closetimer= 0; var ddmenuitem= 0; // open hidden layer function mopen(id) { // get new layer and show it ddmenuitem = document.getElementById(id);
[Code]....
I find script that does something similar and adapt it to do what I need it to do. Usually, I can work it out on my own - but I have been working on this for several days now.
View 2 Replies
View Related
Mar 27, 2010
The left hand layers make one right hand layer visible via onMouseOverIf one of the list boxes is clicked the drop-down list appears as per "select" function.it stays visible until any part of the window is clicked again. This makes clicking a bit more laborious when changing to the next listbox.BUT if the layer is switched (by hovering over a different onMouseOver position) the visible drop-down list remains visible until the window is clicked again.I can't see any attribute/parameter that will hide this list in JavaScript.I can set the selectedindex when the list is clicked eg
Code:
function sfm_goto(loc,obj5){ //v3.0
var obj10 = findObj(obj5);
[code]...
View 2 Replies
View Related
Apr 4, 2002
Layer writing in Netscape. This is pretty straightforward >> However I'm trying to write to a <div> layer within a <div> layer.
My div:
Code:
<div id="blah">
<div id="aight">
</div>
</div>
I'm trying to write to "aight"
How should my code look?
View 3 Replies
View Related
Jan 30, 2009
I have created a floating layer using Javascript that remains always on top of page on scrolling.Issue is,at some point while scrolling,the layer flickers continuously.
The html page is as follows:
Many common software systems, JavaScript has a history of security problems. Many of these problems could allow a person with malevolent intent to steal sensitive information from a visitor. The number and type of such holes in security vary among browsers and operating system versions. Most JavaScript security holes have been caught and fixed, but new ones are being discovered all the time. For a list of current security holes check out your browser's and operating system's Web pages. As a Web site author, it is your responsibility to keep up-to-date on the current status of known security holes in the applications you create.
Signing Scripts. In Chapter 11, I explained that JavaScript does not provide the ability to directly access files on the client computer. This can be a very large hurdle to overcome if you're trying to upload a file to a server from the client computer. Fortunately, file uploading is one of many functional enhancements that signed scripts provide. Signed scripts are specially packaged scripts that have been verified and signed to be correct and non-threatening. These scripts have additional rights on the client computer that allow a programmer to do many things that he wouldn't otherwise be able to.
With the introduction of Netscape 4.0, a new security model was put in place that would allow digitally signed scripts to bypass some of the restrictions that had previously been placed on them. A signed script can request expanded privileges from the visitor and, with the visitor's permission, gain access to restricted data. A signed script requests these additional permissions through LiveConnect, which allows your JavaScript code to communicate with the Java Capabilities API. The security model allows JavaScript to access certain classes in Java in order to extend its functionality while still maintaining tight security for the client.
A digital signature is a fingerprint of the original programmer, and it allows the security model of the browser to detect where (or from whom) it originated. A script signer can be a person or an organization. By signing a script, you acknowledge yourself as the author and accept responsibility for the program's actions. A signed script contains a cryptographic checksum, which is just a special value that ensures the signed script has not been changed. When a digital signature is detected, you are assured that the code has not been tampered with since the programmer signed it.
Once you finish writing a script, you can use the Netscape Signing Tool to digitally sign it. Signing a script does the following:
Unambiguously assigns ownership of the script to a person or organization.
Allows an HTML page to use multiple signed scripts.
Places the signed script into a Java Archive (JAR) file.
Places the source of the script in the JAR file.
Once a user confirms the origin of the script and is assured that it has not been tampered with since its signing, he or she can then decide whether to grant the privileges requested by the script based on the validated identity of the certificate owner and validated integrity of the script.
JAVASCRIPT FILE IS AS FOLLOWS:
AND CSS FILE IS AS FOLLOWS:
At some point while scrolling,the div 'movable' flickers continuously,while at some other point,it is perfectly stable.
View 11 Replies
View Related
Jan 9, 2010
I am trying to get a simple set of Javascript tabs to work properly. I have just two tabs and I want to set up the script to have the second tab automatically hidden prior to reading the javascript code because right now it shows the contents of both tabs when the page is loading and then the second tab disappears after all the script has loaded.
I have the jquery script linked to on the page and here is the way my script looks to run the tabs:
Code:
I want to add something like style="visibility:hidden;" to the DIV that isn't shown on page load and have it added and removed as necessary when users click on the tabs. So basically I would like the generated code to look like this:
Code:
View 4 Replies
View Related
Sep 20, 2005
Specifically, assume I have a div tag of absolute dimensions. I need
to figure out, first, whether or not the text inside the div tag is
partially hidden by the overflow setting, and if so, what the hidden
text is.
Is this even possible? Obviously, the rendering engine in the browser
"knows" this information, but is it accessible through Javascript?
View 2 Replies
View Related
Jan 24, 2005
I am trying to dynamically display a select menu when a checkbox is selected. I have successfully go the select menu to come up when the box is checked but the problem is that you can't uncheck the box to get it to go away. Can you tell me how to do this or even better show me a better way? Code:
View 2 Replies
View Related
Jul 8, 2011
I have a web page that has javascript running an html5 page where as the embedded movie plays, the captions play below the movie. What I'd like to do is to have a button that turns the captions' visibility on and off, but I can't seem to get it to work. Probably easier to just show you the web page so you can see the files and view source: [URL] Click the test.html file and hit the play button for the movies to see the captions. I think it might have something to do with the captions being within the media div, but I'm not sure how to address the caption id other than the way I have.
View 3 Replies
View Related
Aug 2, 2005
Setting: chruch multimedia computer and projection system, with 2 display
monitors. The projector is connected to monitor #2.
Is there some way using JavaScript I can display a ".jpg" picture on display
#2? I know how to send the <form> tag to turn on/off the projector, but
don't know how to put up a picture. I don't want any browser artifacts to
show. Just the picture.
View 3 Replies
View Related
May 31, 2009
How do you turn 'this' into a jQuery object so that you can invoke jQuery methods on it?
For example I have this code currently:
But I would like to use jQuery's addClass and removeClass function. So Ive tried things like:
Which doesnt work I assume because this is not yet a jQuery wrapped-object
And:
Which doesnt work because I guess its like calling document.getElementById('this')
View 1 Replies
View Related
Oct 1, 2011
I have this javaascript which validates fields on a form, and if one of the fields are empty or 0 it will turn that field red, but it does it individually and i want it to turn all fields that are in error in red at the same time
[Code]...
Im new to javascript so this could be a simple change for someone with more knowledge then my self. the webpage is built with ASP.Net
View 8 Replies
View Related
Oct 7, 2011
I have scripting that currently disables a C.O.D. option in a dropdown and disables a coupon code input box depending on login pulled from a cookie. I would like to use/modify this script to also disable a "free shipping" option depending on login with a condition of the cart subtotal (if ss_subtotal <= 199...). I have all of the variables but cannot figure out the syntax to implement the modification. Here is the current script that disables the C.O.D. option and coupon box:
<script type="text/javascript">
var LexiConn = {
regCustomer: false,
reg_cookie: /.*ss_reg_.*/,
[Code]....
If the source code is needed i can post a shortened version of it.
View 3 Replies
View Related
Aug 8, 2011
I'm using parseInt to try to turn the innerHTML of a div into a number. Pretty straight-forward and it works for every one except the string 08 and 09. works for 01-07, works for 10 and higher, just not 08 and 09. This is in Chrome and Firefox. In IE it works. Here's some code to illustrate the issue.
var items = ['04', '05', '06', '07', '08', '09', '10', '11'];
for(var i in items){
document.write(parseInt(items[i]) + '<br>');
}
where you should see 8 and 9 it just comes back as 0 (except in IE 9).
View 2 Replies
View Related
Sep 5, 2011
plugin of JQuery that provides the effect for Page Turn from Right Corner ?It should look like curling; but not like books with two page at a time. Only one page will be shown at a time. Per page turn will show a new section and reverse will show the previous section. And the number of sections will be set a page load.
View 2 Replies
View Related
Sep 15, 2003
Does anyone know of a way to turn off headers and footers in IE using javascript, so when someone goes to print a page they wont get the url and other stuff on the print-out?
I know it can be done using through the browser menu. But I wanted to make it automatic so the user doesn't have to. Done a search on google and can't seem to find anything to help. Can it even be done?
View 6 Replies
View Related
Jun 17, 2010
I have a javascript gallery code that I have downloaded for free. it is a big pic with small buttons under it
you can press one of the small buttons and the pic will chancecan I make it auto slide?
Im new to javascript so I kinda understand everything and its logic, but this is one step ahead of me I guess
View 2 Replies
View Related
Jun 16, 2011
i am in the middle of creating a members area system which has went well up to now. I need to create a button that will turn alerts on and off for example when the user clicks the button it will show turn on and vice versa however each time they select the button i want it to update the database with its current state so the admin knows who is currently accepting alerts.
View 4 Replies
View Related
Jul 23, 2005
How do you turn an iframe scrollbar off, from within javascript, after
the iframe has been loaded? In my example, the page with the iframe
on it is initially set to scrolling=yes, however, I want to be able to
set the scrollbar=no, through javascript.
View 2 Replies
View Related
Jul 23, 2005
I was wondering if there is some other way to turn autocomplete off besides using "autocomplete=off", using a meta tag or something similar. It would be great if there is some way to turn it off at a page level....
View 2 Replies
View Related
May 6, 2007
javascript:(function(){var k,x,t,i,j,p; for(k=0;x=document.links[k];k+
+){t=x.href.replace(/[%]3A/ig,':').replace(/[%]2f/
ig,'/');i=t.lastIndexOf('http');if(i>0){ t=t.substring(i);
j=t.indexOf('&'); if(j>0)t=t.substring(0,j); p=/https?://[^
s]*[^.,;'%22>s)]]/.exec(unescape(t)); if(p) x.href=p[0]; } else if
(x.onmouseover&&x.onmouseout){x.onmouseover(); if (window.status &&
window.status.indexOf('://')!=-1)x.href=window.status;
x.onmouseout(); } x. x. }})();
View 1 Replies
View Related
Aug 25, 2011
I am using vs2010 and when I hit ctr + F5 it launches which ever broswer I select to browse with and tells it not to use the cached version of that web page. But regardless if its chrome, firefox,IE, opera or safari,they all seem tohit a wall and stop recognizing my changes code tweaks. How do I resolve this frustration! It is very trouble some when testing .json file changes and css changes.
View 3 Replies
View Related
Oct 10, 2011
I am trying to turn off a hover state when my accordion is open. Any help will be great.I tried:
$("#list li:hover .bottom").removeClass(".hover ");
This doe not remove the hover. I also tired .bottom.
View 1 Replies
View Related
Apr 29, 2011
I know how to edit the CSS, and minute parts of the JavaScript code (for example; speed of the drop). The problem is, I had a massive amount of help making the Javascript side of the menu, and do not know how to edit it...
I want the rules to still apply, where only one can be expanded at a time (one of the first drops, and then only one of the sub-drops). I noticed in the code, I can edit it so there can be more than one drop, but that would mean, the whole menu could be expanded :(
Also, I want my sub-drops. to have different span colour than the main drop. but trhe links and such, (everything else about it) can be the same....
My live demo is here! (http://mrjamesmusic.com/tornhq/Index.html)
View 1 Replies
View Related
Jul 12, 2011
Im creating a portfolio site for myself that my have gotten a little too ambitious but I'd still like to make this work.
My main site loads a video demo reel using the new <video> tag and to make it look cooler has an "ambilight" television effect around it. For usability and for users that find it annoying or distracting I want a toggle to turn the effect off.
I have my checkbox created as well as all the effects working for it.
Here is a piece of the main code as well as a link to the ambilight.js file
<label name="ambilightToggle">
<input type="checkbox" name="toggle"/>
<div class="toggle-switch">
<div class="handle"></div>
[Code]....
If the click function works I should be able to have it check the checkboxes state and have it persist.
View 1 Replies
View Related
Aug 28, 2011
I'm looking for a script (JS or any) that can turn/flip a flat image into a perspective. For example, a user uploads their photo and the script will add perspective to the image.
View 6 Replies
View Related