动态图像添加 [英] dynamic image adding

查看:71
本文介绍了动态图像添加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要帮助制作珠宝购物网站。

假设我有一张图片保存在数据库中。只有一张顾客的照片。颈部,耳环和鼻环的其他3个图像。我将点击颈部,颈部将移动到客户颈部。是否可以通过jquery或C#,asp.net? ?只有3个图像。通过点击它将移动到客户照片颈部或耳环。忘记动态。仅3个图像。主要客户有1个图像和3个珠宝项目。

Hi i need help for making jewellery shooping site.
Suppose i have one image which is saved in the database.only one photo of customer. and other 3 image of neckles,ear ring and nose ring.i will click on the neckles and the neckles will move to customer neck.Is it possible through jquery or C#,asp.net? ?only 3 image.by clicking only it will move to customer photo neck or ear ring.forget Dynamically.only 3 image.main customer is having 1 image and 3 jewellery items.

推荐答案

你需要使用Adobe Air和其他Adobe和Jquery,JavaScript等。
You need to use Adobe Air and other Adobe and Jquery, JavaScript etc.


你可以在服务器端执行此操作:

- 首先你必须找到你的占位符(div,form ...)

- 你可以创建一个新的LiteralControl,例如< img>标签。

- 现在您可以在图像中添加图像。



您可以动态地将LiteralControl添加到您的网站,如下所示。< br $>


You can do this on serverside:
- First of all you have to find your placeholder (div, form...)
- You can make a new LiteralControl, for example <img> tag.
- Now you can add to your form the image.

You can add dynamically LiteralControl to your website as the follows.

Control myPlaceHolder = FindControl("form1");
 
String imageLink = "picture.jpg";
 
String yourPicture = "<img src=\"" + imagelink + "\" alt=\"pictureAlt\" />";
 
myPlaceHolder.Controls.Add(new LiteralControl(yourPicture));


这篇关于动态图像添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆