I've made a content managment system that uses icons to represent page
layouts. To choose a different layout, the user clicks on a radio button
associated with each layout icon. On click of one of the radio buttons, the
form submits and a new layout is chosen.
I would prefer if people can click on the icons themselves , rather than
using the radio buttons.The border or background associated with the
selected icon can highlight conditionally, based on a DB lookup. The
highlighting will indicate the selection.
I know how I could do this "by hand", associating each image with code that
would initate an insert to a database.
I would prefer it if I just bolt the image onto the existing structures in
HTML that manage radio buttons, and sub an image for the
button.
I seem to recall there is a way to do sub an image for the button. Can
anyone show me the syntax?
Right now my code looks something like this:
img name="Layout2" src="images/Layout2.gif" width="100" height="125"
border="4" alt="">
<br>
<input <%If (rsArticle.Fields.Item("Lay_LayoutID").Value) = "2" Then
Response.Write("CHECKED") : Response.Write("")%> type="radio" name="Layouts"
value="2" onclick="this.form.submit();">
Thanks,
-KF