Yeah thats gonna take some javascript. Anytime you want something in a webpage to "change" it will take something other than static html, which is very limited.
Since you just finished that Missing Manual book, WOW btw! lol
You should look into the built in snippets panel in DW where you can find lots of javascript code snippets.
thanks Teedoff, i'll check into the snippets and start boning up on javascript.
i did find "showimage()" in javascript, but will have to chase it down and study the sintax.
i think i'm close, but something is wrong.
can you just call up the div "cpqcRange" by name and slap a new img.src in there???????
cheers,
Paul
today's weather in Kalispell, MT, USA
cold, brrrrr, not much snow, but it's coming soon
it was about 18degF this morning
So when you click on something, you want to add a new image to a div?
Add jQuery to your page and try this:
Code:
<script type='text/javascript'>
$(document).ready(function ()
{
$('#TRIGGER').click(function () //change TRIGGER to the ID of the link. Or you can make below this a function and call it with onclick
{
$('#cpqcRange').append("<img src='/path/to/image.jpg'>");
});
});
</script>
Easy as that. That will append the text to the end of the div that has the ID is cpqcRange.
If you want to change the src of an image already there:
Code:
$('#image').attr('src','/path/to/image.jpg');
__________________
For programming information, visit irnsystems.com
Also check out Points2Survey and earn items.
Last edited by mvmacd; 12-09-2011 at 04:23 PM..
Reason: code fix