Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. lpetri

    function not changing global var???

    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(?)...
  2. lpetri

    function not changing global var???

    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='&nbsp;'; function...
  3. lpetri

    function not changing global var???

    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...
  4. lpetri

    function not changing global var???

    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...
  5. lpetri

    function not changing global var???

    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...
  6. lpetri

    function not changing global var???

    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...
  7. lpetri

    function not changing global var???

    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...

Part and Inventory Search

Back
Top