J
José Joye
Hello,
I'm having problem to give to the src attribut of the <img> tag an jscript
function as value.
What is the correct syntax?
With my syntax the jscript function is executed. However, the function
return value is not assigned to the src attribut
Thanks,
José
My snippet:
========
<html>
<head>
<script>
<!--
function F_getImageName()
{
return "./images/about_up_on.gif"
}
//-->
</script>
</head>
<body>
<a href="../Newsletter.htm">
<img ID="NavButton2" name="NavButton2" height="24" width="100"
src="javascript:F_getImageName()"
<<<<<<---------------------- here !!!!
border="0" alt="Letter1">
</a>
</body>
</html>
I'm having problem to give to the src attribut of the <img> tag an jscript
function as value.
What is the correct syntax?
With my syntax the jscript function is executed. However, the function
return value is not assigned to the src attribut
Thanks,
José
My snippet:
========
<html>
<head>
<script>
<!--
function F_getImageName()
{
return "./images/about_up_on.gif"
}
//-->
</script>
</head>
<body>
<a href="../Newsletter.htm">
<img ID="NavButton2" name="NavButton2" height="24" width="100"
src="javascript:F_getImageName()"
<<<<<<---------------------- here !!!!
border="0" alt="Letter1">
</a>
</body>
</html>