类似gmail添加附件
想做一个管理后面,想用到gmail添加附件的功能到添加产品图,找了很多源码都不合适,找到了一段,但在FF下有问题。
++++++++++++++++
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<script type="text/javascript">
/************************
* author lijun
* date 2007.5.25
*
* 无刷新上传
* IE,Firefox下和Gmail类似的附件添加方式
* 允许进一步扩展,实现附件添加后即自动上传得功能。
* 2007.5.30修正了一个bug.
************************/
/* 检测浏览器类型 */
function isIE()
{
if(document.attachEvent)
{
return true;
}
else
{
return false;
}
}
/*firefox下的附件添加提示*/
function getFirefoxTip(form)
{
var str="添加一个附件";
var cssStr="width:100px;font:12px Arial;color:#00f;text-decoration:underline";
var tipDiv=document.createElement("div");
tipDiv.style.cssText=cssStr;
tipDiv.innerHTML=str;
tipDiv.onclick=function()
{
var i=form.getAttribute("count")?form.getAttribute("count"):0;
createFirefoxInput(form,parseInt(i)+1);
};
return tipDiv;
}
++++++++++++++++
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<script type="text/javascript">
/************************
* author lijun
* date 2007.5.25
*
* 无刷新上传
* IE,Firefox下和Gmail类似的附件添加方式
* 允许进一步扩展,实现附件添加后即自动上传得功能。
* 2007.5.30修正了一个bug.
************************/
/* 检测浏览器类型 */
function isIE()
{
if(document.attachEvent)
{
return true;
}
else
{
return false;
}
}
/*firefox下的附件添加提示*/
function getFirefoxTip(form)
{
var str="添加一个附件";
var cssStr="width:100px;font:12px Arial;color:#00f;text-decoration:underline";
var tipDiv=document.createElement("div");
tipDiv.style.cssText=cssStr;
tipDiv.innerHTML=str;
tipDiv.onclick=function()
{
var i=form.getAttribute("count")?form.getAttribute("count"):0;
createFirefoxInput(form,parseInt(i)+1);
};
return tipDiv;
}
...全文
相关推荐
带附件邮件发送
邮件发送带附件 附件里面有说明文档!清楚明了!
Cisco Voicemail for Gmail-crx插件
语言:English chrome扩展程序,可以通过gmail发送录音。 此扩展程序发布在专用部分下,仅供测试
php发邮件类smtp发邮件发送文本发送附件和图片全部代码
php 封装类 可以直接拿来使用 class.phpmailer.php class.smtp.php.pop3.class
Gmail邮件通过JavaMail发送(不带附件与带一个附件)
附件是所需要的包文件 博文链接:https://xagcdx.iteye.com/blog/1039425
Gmail添加附件源码
c#编写的Gmail的附件上传功能。直接点击文件上传,不必另点按钮。


