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

    JavaScript img tag DOM question

    jemminger, thanks. You are most studly! This is the best solution (out of about a 100 variations) that I have tried. Thanks! Plex
  2. Pleximus

    JavaScript img tag DOM question

    rac2, thanks. I tried you eval method, but no luck. Netscape 6 and 7 don't seem to support any form of javascript shorthand within the src attribute of an img tag. I can't get ANYTHING written with Javascript successfully in the src attribute for NS 6/7. Thanks tho Plex
  3. Pleximus

    JavaScript img tag DOM question

    I am currently using the following code to call up images but the code works only in IE. Is there a way to code it so it works both in Netscape 6/7 and IE???? <img name=&quot;myImg&quot; src=&quot;javascript:document.myImg.src='assets/' + variable + '/imagename.gif'&quot;> Plex
  4. Pleximus

    Javascript in an img tag

    Ok, I got it... here it is and it works: <img name=&quot;myImg&quot; src=&quot;javascript:document.myImg.src='assets/' + variable + '/imagename.gif'&quot;> Thanks all! Plex
  5. Pleximus

    Javascript in an img tag

    stormbind, I am trying to avaid having to write the whole img tag with JS, hopefully i can simply insert the variable in some sort of short-hand JS manner... thnx
  6. Pleximus

    Javascript in an img tag

    mwolf00, thanks. The onLoad method actually works... however, in IE 5 on a pc the page continues to try and load something - the image source I think - indefinitely, like its caught in some kind of loop, strange.
  7. Pleximus

    Javascript in an img tag

    I need to insert a JavaScript variable into an img src attribute, something like: <img src=&quot;images/&quot; + JavaScript variable + &quot;/imagename.gif&quot;> Can this be done? Pleximus

Part and Inventory Search

Back
Top