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="javas cript">
var dirpath = " http://www.blah.com/images/",
image1 = "de-01.jpg";
</script>
<a href="<script language="javas cript">document .write(dirpath +
image1);</script>">image1 </a>
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="javas cript">
var dirpath = " http://www.blah.com/images/",
image1 = "de-01.jpg";
</script>
<a href="<script language="javas cript">document .write(dirpath +
image1);</script>">image1 </a>
Comment