You are so awesome. I'll play with this a bit and will probably have to ask you for an opinion or two as I go along if you don't mind.
Right now all my image names and captions are being output in the html using php variables since they are coming from a database but I'm sure I can easily(?)...
So if I could ask you one more question then.
I had tried putting together a string to show up in that <span id="slideback"></span> using document.getElementById("backbutton").innerHTML = slideback;
It went something like this (although this is a bit rough)
var slideback=' ';
function...
Yeah, I know, I had that in earlier for testing to make sure the function worked. I should have commented out
document.getElementById("backbutton").innerHTML = slideback;
It's really the document.write that I need to work so I can use it to define which image to show in the new onclick I...
Ah, gotcha. I had tried something similar before, but with no results. I just put
var slideback='test text';
function setSlidetext(picnum)
{...
as you suggested ('test text' so we can see the output). But how come when a thumbnail is clicked the value is still 'test text'? I feel so...
Darn, I thought I had it after your input. I moved the document.write(slideback) down to the end of the page to test it out. It has to be after the onlick that sets it,, is that right? But shoot, still undefined. If you look at the URL again, you can see it at the bottom of the page just after...
Sure, here is the html. Hope this helps. Sorry if I'm not to clear.
Two of the thumbnails:
<a onclick="changeImages('mainphoto', '/travel/images/photos/dominicanrepublic20061001/01room.jpg','mainphotoport', '/travel/images/spacer.gif');showText('caption','Room included fresh flowers, jet tub...
Hi,
I have searched the previous threads, tried everything I can, but to no avail. I am really a PHP programmer and am trying to get some javascript going. Hopefully you can help me!
I have a successful onclick image swap going for a photo album. Click on the thumbnail to show the image in the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.