View Single Post
Old 09-28-2018, 01:41 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,061
Quote:
Originally Posted by 2MuchMark View Post

*Start Loop*
*Load Image URL*
*Javascript find character N and insert X after N*
<img src = "use new URL to display image">
*end Loop*
That is not a loop. That is a straight line. A loop repeats.

Now, what are you trying to accomplish, beyond what you have already said?

What triggers this to happen?

So, we have a page and when the page first comes up, there is an image.

On some trigger (unknown at this time) you want the image name to be edited on the fly to another image (image).

Am I on the right track?


edited in: This code: so that the code looks like

<img src = "<script>blahblah</script>">

Is not the way to implement anything. The only time that img tag is looked at would be at page load. aSince the script would be an invalid img ref it would just error out.

The code that was posted in response would have to be run at the end of page load or when something triggered it (as I describe above).


.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote