you have two buttons, each of them links to different pages and is represented by an image (a button of course). When one button is clicked i want it to become active (so as to call this different image of the same button active i.e. with another color) and the other to swicht to its image inactive. Here is this simple script i managed to put together:
this.location.href = "telefoni.html";
document.images['internet'].src ="a_files/FirstNonActiveButton.jpg" ;
document.images['telefoni'].src = "a_files/SecondActiveButon.jpg";
Now, what happens is that the change of images that represent the buttons takes place only before the page it links to is loaded. Afterwards it seems like the page is reset. The buttons are in the header module called from every page in my site. I cannot understand how to make it possible that the document.images['internet'].src ="a_files/FirstNonActiveButton.jpg" ; happens in the page called.
i have two pages titled: abc.html and program.html. in "abc.html", i have an image and a submit button. the image is a link that when clicked takes us to "program.html" page in program.html, i have a form with select tag and some options. i have a function (say choose()) that displays the results as a new window.
now i want this choose() function to be executed only when the user clicks on the submit button in the page abc.html. how should i proceed? the sequence of program execution is as:
1) the user is first displayed with the page, abc.html having an image and a submit button 2) he clicks on the image present in this page and is taken to the page "program.html" 3) in program.html page, he has a form with select tag 4) the user just chooses his option and then clicks on a back button and returns to abc.html 5) here he clicks on the submit button and a window that displays the options he has selected is to be displayed.
i have these 2 pages[URL]ideally my page will look something like moon.html w the menu at top...the prob is that the navigational arrows do not work and it is the header div preventing their functioningthe page ass.html has working navigational arrows but it is using the greyscale images to change the big image, how do i put the img id(what java is using to change images) on the colored version of image
How would I go about creating the coding for a submit button that links to another page? And I would I go about creating the coding for the reset button that resets the page? I go about creating a code to do so, but it never works. Here is the coding I have for the submit button:
I have a page where I am using JQuery to load text into a DIV when you click on a button. Each button loads different text into an existing DIV. I need to be able to give people a link to the page that will preload certain text when they get there.
For instance, there is default text in the DIV when you go to mypage.html, however if you click on 'button_1' it loads different text. I want to be able to have a link that will automaticall have 'button_1' text loaded if i give them a link like mypage.html#button_1 (or something along those lines) How do I do that?
I have a DIV overlay that I want to show as open only on certain pages but not on others (it is on all pages). The button that is related to the DIV must also display as on when the DIV overlay is open and in the off state when it is closed. This must happen on page load. E.g. DIV open, button on. DIV closed, button off. I have the click show and activation working so all I need is it to display as open and on, on certain pages and then on others closed and off.
I'm working on a simple website in which I'm required to use two types of forms input on a webpage. I have decided to make a simple quiz which will be designed.Is this possible in a simple way? Sounds quite straight-forward.Is it possible to design a radio button which, depending on the choice, the related-text will appear underneath on the same page? So if they select 'A' then paragraph 'A' will show, if they select 'C' then paragraph 'C' will appear (with the rest hiding)..
I am trying to write a script that uses the IF statement to see wether or not a user clicked the back button to come to a page, and then if it's true to not let the page load and kick them back X number of pages (say 4) This is what I have so far: