Menu
Hi, I want to set a directory and an image name as a js variable and later call those vars as and html link. I am not doing this correctly, so I ask for help. Any advice is appreciated. Chuck
Here is a basic example.
<script type=”text/javascript” language=”javascript”>
var dirpath = ” [url]http://www.blah.com/images/
image1 = “de-01.jpg”;
</script>
<a href=”<script language=”javascript”>document.write(dirpath + image1);</script>”>image1</a>