balexandre
2009-09-25 09:22:34
A:
You need to accept gears in order to see the menu. Sorry, I have the image cropped but I don;t see where to upload it on website.
2009-09-25 09:33:01
you hosted in a free image hosting site, when you click in the image icon (in the StackOverflow editor) you see the link for it. I'm using JING and hosting in my own FTP (http://www.jingproject.com)
balexandre
2009-09-25 09:58:08
A:
try this:
<style type="text/css">
.selectedRow{background-color:#E8E8FF;}
</style>
<table id="selectMenu">
<tr><th>Size</th><th>Pixles</th><th>File size</th><th>Credits</th></tr>
<tr><td>Small</td> <td>849 × 565 px</td> <td>555.96 KB</td> <td>20</td></tr>
<tr><td>Medium</td> <td>1698 × 1131 px</td> <td>1.89 KB</td> <td>30</td></tr>
</table>
<div style="height:50px;width:200px">
<div style="float:right;text-align:left;">
Total Credits: <span id="credits"> </span>
//YOU CAN USE ASP.net HIDDEN FIELD TO WORK ON SERVER SIDE
<input type="hidden" id="creditsValue" value=""/>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("table#selectMenu tr td").click(function(){
var row=$(this).parent();
//un-highlight any previously row
$("table#selectMenu tr").removeClass("selectedRow");
//highlight current row
$(row).addClass("selectedRow");
//get credits (from last td)
var c=$(row).children(":last").text();
//show credits required in span below table
$("span#credits").text(c);
$("#creditsValue").attr("value",c);
})
});
</script>
TheVillageIdiot
2009-09-25 10:04:53
A:
balexandre- thanks, this is close to what i want but i want to select the whole row, not only when pressing select. is that posible? thanks
alina
2009-09-25 17:14:44