I'm building a web page with pictures I've taken with my digital camera. I
have succeded making a javacript that, when clicking on a thumbnail, it
changes the main image.
Now, I would like to put an explanation (and date and some EXIF-info) to
each photo so some text is shown next to the main photo when loaded.
I don't know how to change the text without reloading the whole page, and I
don't want that.
based on selection of radio button, i want to change the text box to enable and disable. And additionally, how to set if i enter a value in textbox1 then calculating something and display the result in textbox2 that to on key up.. not on form submitting.
I'm a real newbie with Javascript, but I'm having fun. I just bought the book, "Simply Javascript" (have only just cracked it so far). I'm reasonably familiar with PHP (I use a lot of it to do simple things). I'm a Web desinger and do custom CSS Websites (I'm fairly new to that too couple of years or more working with CSS and I've never done a table based layout.
[Code]...
But when the button is clicked, nothing will call the showCaption() function again, and I can't figure out how to call that function as the images advance. I have tried a lot of things with a lot of weird results, one being the tne next caption will display in a blank browser window, without the Webpage! I'm not sure why that happens, but I have a clue.
Is there an easier way to do what I want to do? I only want to show a few lines of text that will describe each image. Seems simple enough to me, but I'm just too new to make it work.
I am not very familiar with AJax, and for simplicity sake, I am trying a simple code. When I click the text box it should change the text and display "hello there", but it did not change. Is there something wrong with the code? I know this can be done with out using AJAX, but I want to test AJAX.page1.php
PHP Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
I am trying to learn SVG and I have alot of the basics including javascript manipulation. But I am really stuck on trying to manipulate the actual text itself.
I am trying to change the text "OMG" to say something else when you hover over it. For example: It says OMG, I want to hover over the text and have it change to WTF. Like you could do with innerHTML. anybody have any experience with SVG
Is there code to just underline linked text to a certain color (red) but doesn't change the text color (it was white & when hovered over, it still stays white with a red underline)?
I want to make the date at the top right darker blue. But when I do that, all the light blue text next to the pictures also changes.
How can I control the color of the result of document.write output without changing the forground color of the entire page? Note my document write includes variables, so I was hesitant to imbed an html command in the document.write.
I want to change a image on a table and also change text on another part of the table on mouse over. Is there a way of doing this. I can change the image but cant seem to work out how to change text.
I am looking into web creation and have started making a site just to see how the coding of websites work and how the files link to each other. So, what I am trying to do is when the page loads it prompts "What is your name?" with a default value of "John". Then, when the user hits 'okay' it displays 'Hello John!' or whatever the name is. However, the variable is not being added to the <p> text. Here are the three files (.htm, .css, .js):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>JavaScript Test One</title>
[code]....
document.write(name) shows that 'John' is, in fact, saved in the var 'name', but for some reason it is not being displayed in the paragraph text. I tried deleting all of the style code from the 'helloText' paragraph, but that still did not display the variable.
I need to change all the links on my site that say "more information" to something else. Unfortunately I don't have access to change the component that places these links in the first place, so I need to use Javascript at runtime to go through, find each instance of a link with the above string and change it. Is there a good cross-browser way of achieving this? Is HTMLAnchorElement a good place to start?
Using JavaScript, can I tag a block of text and then change the text appearing in that block?
I'm doing a type of calculator and I'd like to display the resulting number in a <td> (or div or whatever works) on the page. I'd like to avoid using a text form field for the output.
I am very new to Jquery, being more of a designer than a programmer. I have a div class called "child-pages", that calls up some text in <h2> tags, which says "Children Pages". I am wanting to use a simple Jquery script to change "Children Pages" to "Sub-pages". How do I go about implementing a script that will make this change?
function greet() { var hour = (new Date()).getHours(); var when = (hour > 17) ? "evening" : ( (hour > 11) ? "afternoon" : "morning" ); document.write('<img src="' + when + '.png" alt="Good ' + when + '"> ');}
This script puts up a png which gives a greeting depending on the time of day. I want instead to put the greeting as text. It's a bit ostentacious as it is.. Site is here. [URL]
I'm trying to change the contents of DIV2 when I click on DIV1. The following code doesn't work for some reason. I'm using Windows 7 (64-bit), and testing on Firefox 3.6.8 and IE8.
I have written this drop-down box so that it will change a picture, i would also like it to change text, or the description of the picture when changed. What I have so far is this: Code:
I have a code which is a optional field. But I want to make it mandatory when checkbox will be clicked. When checkbox is unclicked, The text box becomes optional field. Here is the code.
[Code]..
when check box is clicked it will display a red * after the cellphone text field.
I am trying to change a piece of text using onmouseover. I have tried a few things so far and nothing has really worked. I get get a new piece of text to appear but bastardizing someone elses code, but can't figure out how to hide the other one....
I sort of have the following but don't know if this is close to the best way of doing it really...
Basically I want to have a piece of text, lets say TEXT1, that changes from blue to red, and to TEXT2 while the mouse is over it.
I know nothing really about Java so have had a look around but got no futher....
i have made accordion and it works but i want the hyperlink changes also. if clicked on "show" it changes to "hide" and again clicked it changes to "show" here is my code: Jquery hide text show text Show box Content goes here. i put the hyperlink online:Test Jquery
I would like an event to fire every time text changes inside <input type="text" /> element. Meaning a user types in a letter, and the even fires immediately. Is .change the wrong thing? Because it seems to fire every time the focus is lost, or gained and the text has been changed. Is there anything that can run as soon as any letter is added/removed from input text?