[ic] UI and display of product images in UI::item edit page
Niels Svennekjær
linux at post10.tele.dk
Fri Feb 18 10:26:49 EST 2005
>
> Hi
> I found this under Tables,Products,Select any product SKU, Standard
> View,Included Form.
> <td class=clabel> Product images </td>
> <td class=cdata>
> <script>
> function get_images (sku) {
> var path = '[var IMAGE_DIR]';
>
> var el;
> var divit = document.getElementById('images_table');
> divit.style.display= 'none';
> el = document.getElementById('thumb_img');
> el.src = path + '/thumb/' + sku + '_b.gif';
> el = document.getElementById('item_img');
> el.src = path + '/items/' + sku + '.gif';
> divit.style.display= 'block';
> }
> </script>
> <table id=images_table>
> <tr class=rmarq>
> <td>Image</td>
> <td>Thumb</td>
> </tr>
> <tr>
> <td><a href="javascript:mvpan_tripTab(2)">[image src="[var
> IMAGE_DIR]/items/[cgi item_id]\" extra=\"border=0 id=item_img\"]<a></td>
> <td><a href="javascript:mvpan_tripTab(2)">[image src="[var
> IMAGE_DIR]/thumb/[cgi item_id]_b\" extra=\"border=0
> id=thumb_img\"]</a></td>
> </tr>
> </table>
> </td>
Can anyone btw. tell why the <script> get_image... is there, I cant
find any place where the code is called from.
- niels
More information about the interchange-users
mailing list