# Swap Image on "onClick" and restore image on "onMouseUp"

**URL:** <https://forum.kirupa.com/t/swap-image-on-onclick-and-restore-image-on-onmouseup/206161>\
**Category:** web dev\
**Created:** [November 6, 2006, 12:10am UTC](https://forum.kirupa.com/t/swap-image-on-onclick-and-restore-image-on-onmouseup/206161 "2006-11-06T00:10:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [November 6, 2006, 12:10am UTC](https://forum.kirupa.com/t/swap-image-on-onclick-and-restore-image-on-onmouseup/206161/1 "2006-11-06T00:10:22Z")

</div>

Hey all,

i have one image and when its selected i want to have it so that it will swap image with the same image but just with a border around it. Also i’m trying to have it so that only 2 out of the 4 can get selected at a time…i’m using dreamweaver any ideas on how??

Cheers ![](http://www.pixel2life.com/forums/style_emoticons/default/smile.gif)
