我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

任何javascript jquery插件从文件夹中选择图像

I am using form ehere use has to type the image name like

images/pic1.jpg

Is there any way that user can graphically select the image and then the path automatically gets populated in that box

thanks

Doubt that is achievable in JavaScript. You may want to use

<input type="file" class="file">

Read more on here: http://www.quirksmode.org/dom/inputfile.html

You can style it with CSS.

If JavaScript is able to do a gallery of some sort using your computer's images, it's quite a security flaw isn't it?

近期文章

  • 使用__get,__ set和__unset在类中出现意外的数组内容
  • 如何让php处理不完整文件的文件下载?
  • 垂直调整多个表格单元格中的产品价格
  • 使用php和javascript验证html中的多选输入字段
  • too long
  • 如何使用带功能(邮件)的HTML发送信息协调?
  • mysql中的随机顺序依次排列
  • 间歇性SQL Server连接问题
  • CakePHP:Ajax视图问题(视图中没有显示)
  • Php sql注入保护
  • 魔术记录被删除
  • 多个民意调查与电子邮件提交功能
  • 检查水合学说结果是否为NULL
  • 来自preDispatch()的Zend_Controller_Action_Exception
  • 使用CodeIgniter的FreakAuth库“记住我”功能
  • Paypal将个人详细信息发送到结帐页面
  • IIS上的Drupal - 无法连接到数据库
  • 使用UTF-8 POST变量调用Php脚本
  • Wordpress登录和注册系统,如http://www.damnlag.com/
  • 如何实现此.NET客户端和PHP服务器同步方案?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华