I'm just learning javascript. I need one script for the following data. I'm having three headings.
heading 1
heading 2
heading 3
on clicking heading 1 it opens
subheading 1
subheading 2
on clicking subheading 1 it opens
subsubheading 1
subsubheading 2
My problem is when I open heading 1 it opens subheading 1 and 2, when I open heading 2, contents of heading 1 must disappear(switch contents) and only contents of heading 2 must appear. When I use style display: none, contents are moving on opening others.
If I want to hide a title / heading if a field below is not filled in, what would be the js for that?
I have an "Attachments" h2 heading and three following fields for the client to add up to three attachments. But if none are filled in I want the h2 heading to not display.
This is what I have so far:
This should take care of the three fields, but how do I tie in the heading too?
Currently when you click on the "Login" button then it opens and when you click it again while it is open it closes ands opens again.What I want is when you click the login button while it is open then it closes as toggleable button.I have posted the javascript to this page: http://jsbin.com/uhefoc/edit#javascript,html,liveSo there it is possible to make realtime updates to the script and see the result real timeI also posted the script here so not to break the rules:
$(document).ready(function() { $("#login-menu a.signin").click(function(event) { var link = $(this),
I need "No-Block PopUp Window" for my web site.. for example if users open my sites another sites show or opens for them.. even a full page site like full pages ads..and it be like One time per hour or more..I found some script like that but some of them being blocked by IE or other browsers..
i am editing a javascript game and im trying to get a heading (h1) to display the value of a variable in a javascript function however everything i have tried always causes an error.
I'm building a shopping website that within the products' page, there's an HTML select that allows the user to choose what product type he wants to view. beneath the select, there's a heading followed by a div or a table created at runtime showing the product name, image and a description.
My problem is in dynamically write the title. The designer provided me the prototype with a static heading in a span,once i try to automate it, the heading is created on a blank page not within the same page.
Here's my code so far:
I think the problem is in document.write and it's the way it works, but i need something to write the heading in the same place of the code.
I have a long table of information with a heading at the top. Is there a script to make the headings always stay at the top of my screen while the table information scrolls by.
I want to start javascript for fun, so I gave myself an assignment to use a for loop that will display "Hello world!" 6 times in the 6 different heading tags. The problem I'm having is that I don't know how to display it in the remaining 5 tags. I have it in the first one.
Here's my code: <html><head></head><body> <script type = "text/javascript"> var is = "<h1>Hello world!</h1>"; for (i= 0; i<= 5; i++){ document.write(is);} </script></body></html>
I need three tabs out of which only one is open at a time n when u open another tab, one out of the earlier closed one should open(preferably with mootools). And also the tab which is opened should come at the top of the page as well.
ive just got this script ive got set up and it works fine, but not what i expected.i want it so i have headings and when i click those headings sub headings show up and when i click on that heading again they dissapear however i also want it so that you can have multiple headings open at once .how would i be able to modify this code so that if i have say sub1 open and i click to open sub2 sub1 remains open
var persistmenu="yes" "yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" enter "sitewide" for menu to persist across site, "local" for this page only if (document.getElementById){ DynamicDrive.com change[code].....
I have a page with categories of images. When clicked, each image on the left opens a div with it's own gallery of thumbnails.
[URL]
Right now, to close a div, the category image has to be clicked a second time. How can I set it so that when one div opens, the other closes automatically? The client wants only one category displayed at a time.
I'm using slimbox 2, a lightbox that is jquery based. It works ok in Coda locally on my copmputer but when I upload to the web, the lightbox opens to the right of the screen (mostly off to the side of the screen). This has happened with a couple different lightbox scripts I've tried. I am not sure what the conflict is in my css that is causing this.
function gotoshow(){ if (!window.winslide||winslide.closed) winslide=window.open(slidelinks[whichlink]) else winslide.location=slidelinks[whichlink] winslide.focus() }
I need to change this function to DO NOT open "slidelinks" in new window, but in same window as the image witch uses this function.
i created one blog . In that i put other site links . When users clicked that link it opened in the same tab . i need html codings to open in another tab if users click that link .
The documentation for the Accordion component clearly states,
NOTE: If you want multiple sections open at once, don't use an accordion An accordion doesn't allow more than one content panel to be open at the same time, and it takes a lot of effort to do that.
However, why not having multiple accordion instances, each with a single <div>?
I am using the below code to assign the javascript function on select on radio button. This may vary based on radio button selection. For some radio button selection the button will be disabled.
This is the code i am using to activate the button or disable the button. For some causes i am getting "javaScript:functionA()" in the address bar instead of calling that java script method. So my new window is not showing me the correct result.
When my page opens the text (Credit Card Validation Information) that I want to call shows up on the page before the link is selected. I would like this text to display only if and when the link is selected, not when the page opens. Code:
I have a simple show hide script that when clicking on a H2 tag opens a DIV. When the user clicks again on the show hide related H2 it doesn't pull the content back in or hide it. I know there must be a simple way to edit this script so the h2 would show and hide elements by clicking on it.
From a web page, I am opening a window from my javascript function "openMyWindow()". After finishing work in that window i want to execute another javascript function on the web page "finishMyWindow()". My question is how can I call this function from my window? I tried using parent.finishMyWindow() but it did not work.
When i click on the link a panel should open, but when i click on the other link that panel should open but the first panel should get closed before the new one opens.