dongyan1974 2014-09-01 12:51
浏览 12

选择图像并提交

I am developing a gallery for instagram, and I have the users pic displayed on an html page, what I want is for the user to be able to select some of the pics and by clicking a button the picture urls will be sended to my email. Thanks in advance,

Here is the code where images are displayed:

$<?php
$popular = $instagram->getUserMedia($data->user->id);

Display results
foreach ($popular->data as $data) {
  echo "<img src=\"{$data->images->thumbnail->url}\">";

}

?>

Preview: image

I want something similar to this: http://rvera.github.io/image-picker/

The part where it says selects multiple, but whith a button that will send the urls of all the selected pics.

  • 写回答

1条回答 默认 最新

  • dongxi0605 2014-09-01 13:02
    关注

    Why don't you use http://rvera.github.io/image-picker/. It seems good

    <select id="myId">
    <?php foreach ($popular->data as $data): ?>
        <option data-img-src='<?php echo $data->images->thumbnail->url ?>' value='<?php echo $data->images->thumbnail->url ?>'>blah blah</option>
    <?php endforeach; ?>
    </select>
    
    
    <script type="text/javascript">
        $(function() { // code required jquery and image picker. Add those in head section
            $("#myId").imagepicker(); // you can pass param too customize it in your manner
        })
    </script>
    
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度