2009-04-11, 11:11 PM
I need a little help regarding Javascript.
I want something where you have three options:
(Type) (Color) (Text)
[-----] [-----] [-----]
The "[-----]" stands for a drop down box.
I've come up with something like this:
/example/[type]/[color]/[color]-[text].png
Any help? I know I have a lot wrong.
I want something where you have three options:
(Type) (Color) (Text)
[-----] [-----] [-----]
The "[-----]" stands for a drop down box.
I've come up with something like this:
<script type="text/javascript">
<!--
document.images.pictures.src ('http://www.example.com/example/' + crDemo.type + '/' + crDemo.color + '/' + crDemo.color + '-' + crDemo.text + '.png');
// -->
</script>
As the images are in the format:/example/[type]/[color]/[color]-[text].png
Any help? I know I have a lot wrong.