I have been trying for several days now to append a text caption to a displayed image using Javascript, but with no real success. Perhaps JS is not the best way. Has anyone a suggestion as to the best way to tackle this.
I want to replace the image captions with text ones to help speed up the site. It is my home site here [URL].
A modification of the existing code seems obvious, but I have been unable to do this.
I'm setting up a web page and think jQuery will be able to sort this out for me.
I have an unordered list (5 items so far, but a few more may need to be added). On clicking on any of the items I need three things to happen on the page:
1. place a picture into a div 2. place a caption into another div 3. place a title into a third div
Clicking on a second item needs to hide these and show that item's related three bits.
So, is jQuery/javascript my best tool, how I can achieve it?
The code is working 100%, but the only problem is with the function calling statement. It is working on the first img (picture) i want it to be called on the second picture.
<!DOCTYPE html PUBLIC "-w3cDTD xhtml 1.0 strict EN" <html xmlns=http:www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns = http:www.w3.org/1999/xhtml">
I've been working on photo gallery that can be seen here: [URL] I would like the title to change according to the picture selected. This works when you click on the thumbnail images. However, it current does not work with the drop-down menu, "back" and "next" buttons, or the automatic slide-show.
i looking for a way to stretch picture in background and put some divs over that picture with links and text. what i find so far don't work in all browsers any one know something like this?
I am trying to get a line of text that a user types into a textfield to appear somewhere else on the screen. AT teh moment when the user presses submit it refreshes the page and does write the text line to the screen but it is a brand new page and I lose all my content.
I have a database that contains a filename and an associated caption. Switching the photos works OK, but I want the caption above the photo to change as well. I'm getting the correct data back so that's not the issue.[code]...
I cannot work out why this doesn't work. $(document).ready( function(){ // Actual jQuery goodness that moves the captions // Set the default value for the caption $('.boxcaption').live('click', function(){ console.log(this); }); }); When I run the following and click on a .boxcaption element. It returns the this value 15 times, once for each .boxcaption that is on the page. I only want to return one value, which is the one I have clicked on.
I'm looking for a lightbox that allows me to have 3 lines of captions. Line one would be the art title, line two would be art dimensions, and line three would be media used. Would someone point me in the right direction? I have a lightbox that supports multiple lines, but doesn't allow for line breaks in the caption.
Im not sure if this is a php problem or javascript, but since the actual photo gallery is run by javascript I'll post it here, sorry if its not though.
Everything works fine but when I click on another image to change the main image the caption wont change with it.
<script type="text/javascript"> // Gallery script. // With image cross fade effect for those browsers that support it. // Script copyright (C) 2004-08 [url]www.cryer.co.uk[/url].
point me in the right direction as to where I can find a javascript modal window image viewer that allows html in the caption area? It seems like I've been searching forever and can't find anything that natively supports it.If one doesn't exist, then maybe point me in the direction of adapting one? My js knowledge is a little limited.
Text inside the button is displayed in two lines.However when I try to change text after click event, it shows <br /> tag instead of inserting line break- Here is java script that I am using-
function resetBtnText(idx,txt){ //txt has a vale of - "Clear <br/>Nos" document.getElementById("sel"+idx).innnerHTML =txt;[code]........
I am using the jquerry cycle to create a rotation banner with a caption/title within a CMS everything is working properly. the problem is that on the next step i need to make the caption color change according to the captionis there a way to control that? this is my code so far
I am having a query on javascript dialog box which gets thrown on "onbeforeunload" event. i.e "leave page .. " or "stay on current page" is it possible to change the caption of these buttons using client side scripting?
Here is a script I found which works well for randomly selecting a static image when loading/refreshing a page, and allows captions for the images. I need this to also have the images link to other pages. I lack the javascript ability to do so.
Code:
<!DOCTYPE -don't forget to use one of these! <head> <title></title>
I have a script which I grabbed from here: [URL] It does partially what I want but I need more functionality, specifically,
1) add caption text below each image in the form of "1 of 5, 2 of 5, etc." 2) make the current image clickable to go to respective URL of my choice
I have a rough mockup here: [URL] My question is, does anyone know of a script that already does all this? It needs to play friendly with all major browsers. I'm not a JS programmer, but can dabble with small changes if shown what's needed to modify this script.
I'm using the original lightbox script, took the code exactly as it was given but it doesn't look like the demo: [URL] What do I need to do to put a background behind things like the caption and to give it a bigger boarder? Example here: [URL]
New to javascript/jquery, been trying to create a rotator which displays a large image with caption and uses next/previous button and thumbnails for control. Everything works fine but when the rotator gets to the last item i'd like it to go back to the first, and when the previous button is clicked at the first item I'd like it to go to the last.
$(document).ready(function() { //set to zero var x = 0;