I have a javascript code that upon successful execution renders a bunch of numbers, e.g:
on the other hand I have an image on my site and what i want is it's title attribute to contain the figures outputted by the javascript code e.g:
What I need is a way to capture the javascript output and save it into a variable that I can then use in the image's title attribute.
's??
- Code: Select all
<script type="text/javascript">
showDigits()
</script>
on the other hand I have an image on my site and what i want is it's title attribute to contain the figures outputted by the javascript code e.g:
- Code: Select all
<img src="<cms:show image />" alt='' title="<cms:show captured_code" />
What I need is a way to capture the javascript output and save it into a variable that I can then use in the image's title attribute.
's??