Use Of Variables with IMG SCR using vbscript

Had started to work on a script but soon realised that it wasn't going to be as simple as I thought. Naively, I was expecting it to be a matter of simply identifying the jpg files from a folder and passing them via a variable for display. What I didn't realise was that the variable "strPathway" is not considered a variable by IMG SRC. Checking out the net I realise that the answer probably lies in using innerHTML but I can't figure out how to make that work. I came across a number of solutions in Javascript but that was of no use to me as it has to be VBScript. However, for all I know, which isn't much, it perhaps can't be done using vbscript! Can anyone shed some light on this for me? How do I pass the info held by the variable "strPathway" to IMG SRC.

Attached is the bare bones of my script. I didn't take it any further as I was trying to resolve my problem. I would be grateful for any suggestions offerred.

Thank you
 

Attachments

  • ViewThumbs.vbs
    856 bytes · Views: 1

My Computer

Back
Top