aTekTipsUser
Programmer
Is it possible to set the src (in the img tag) = to a function or even a variable.
Instead of setting <img src = "\imgLocation.jpg"> is it possible to set it = to a function or variable.
I tried setting up a javascript function getPath, and in the img tag setting the src = "getPath();".
I want to set up a global folder path, then concatenate the file name. This way, it would ease the task of changing folder locations. Thanks!
Instead of setting <img src = "\imgLocation.jpg"> is it possible to set it = to a function or variable.
I tried setting up a javascript function getPath, and in the img tag setting the src = "getPath();".
I want to set up a global folder path, then concatenate the file name. This way, it would ease the task of changing folder locations. Thanks!