Hide Email With JS / Want Link To Be Image File?
Dec 16, 2010
I found code online to avoid the insecure mailto:email@email.com function, but what I am looking for is, instead of text link I want an image link.So, where it says Click here to email, or any other text, I want that to be my image file, which will be placed in a DIV.
View 2 Replies
ADVERTISEMENT
Mar 9, 2006
I'm hiding the email address on a website with this javascript which works fine:
---------------------------------
<p>Send your comments and questions to our
<script language=javascript>
<!--
var contact = "Newsletter Editor"
var email = "news"
var emailHost = "netmechanic.com"
document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+">" + contact + "</a>" + ".")
//-->
</script>
</p>
---------------------------------
How can I make an image instead of the text as a link to start thisscript?
View 17 Replies
View Related
Oct 9, 2011
Not sure if this relates more to PHP or Javascript/jQuery, but is there a way to attach a file to an email client (i.e Outlook), when user click on a link/button?I have a link that generates a PDF and I want it so that, when someone click on a link, it will open up their email client with the PDF already attached, and subject already fill in.I know, you can use <a href="mailto."but that only opens up the mail client. I also need to attach a file with a subject fill in.
View 5 Replies
View Related
Apr 29, 2006
Last week after much searching, I found the answer to my problem in
this newsgroup. I can't find the thread from which I got my solution,
but I wanted to report back what worked.
When the site visitor fills out the form and submits it, this calls a
rather ordinary asp script like formmail.asp that sends the emails and
displays a "thank you" web page. At the very end of my "thank you" web
page I placed the following:
<script type="text/javascript">
location.href="FileToDownload.exe"
</script>
This causes the file download to get triggered, and asks the user if
they want to save the file. In limited testing this appears to work
fine in both Firefox and IE.
View 13 Replies
View Related
Apr 14, 2009
I have a JS which I have already started to try to customise, but I am having some difficulty with it in that when I click on an image, it does not take me to my html page.with care.html. Although all files are in the same folder, I get an error indicating that the fille cannot be found (I have checked the file name spelling). I am not doing any of this online as the Web pages, when working, will be put on CDs.
View 7 Replies
View Related
Mar 14, 2011
is it possible to create a link in an email that will go to a site and run its javascript. If so how?what I trying to do is email an alert to selected users when a flash ad is ready. The email will have a link that, when clicked, goes to the home page and displays the ad. the code above takes them to the web site but doesn't run the javascript.
View 1 Replies
View Related
Jun 24, 2003
I am trying to make an image into a mailto link, where the link is formed via som JavaScript so to avoid spamming robots. Here is the code:
<script language=javascript>
<!--
var username = "hosting";
var hostname = "bluepointwebdesign.co.uk";
var linktext = username + "@" + hostname;
document.write("<a href=" + "mail" + "to:" + username +
"@" + hostname + ">" + "<img src="""/images/hosting_email.gif">" + "</a>" )
//-->
</script>
Everything works, but the image won't be displayed!
View 1 Replies
View Related
Jan 23, 2002
My company has 2 email apps. One for external (MS Outlook) and one for internal (GroupWise). On my Intranet, I need to connect the mailto tags to the internal system. Does anyone know how to do this? I can't make GroupWise everyone's default email program because many people use both frequently. I would greatly appreciate any help or direction.
View 1 Replies
View Related
Dec 7, 2010
I want to send a simple email with just email & subject only when the user clicks a link that opens a pdf. I'm thinking javascript is the best way to do this but I have no idea how. I have googled it a bunch but most information is about getting an email when someone clicks a link you send in an email. I don't want that. This is on a website. I'm not sure if php would be better to use.
View 7 Replies
View Related
Nov 9, 2011
I am having trouble with a script that works with the link invisibly which you can see the cursor change to a pointer hand when hovering next to "Email:".It would show if you placed the script in the body portion of a blank HTML page.In my website below I can't figure out why the link doesn't show and is invisible.This emailHide.html.txt file is below, to view in HTML remove the .txt extention and save and view in browser.
View 4 Replies
View Related
Oct 18, 2009
For some security reasons I would like to show an email field in a form ONLY if the 4 checkbox are checked.I don't want to use server side coding so I need to use javascript.I have this code, showing an alert if the 4 checkboxes are checked:
<html>
<head><script>
var conta=0;
function ctr(quale)
[code]...
It works but I nedd to ask for an email instead of showing an alert.
View 3 Replies
View Related
May 26, 2011
i have a file with email adresses. but not only with them, there also the forename and lastname in it. so i need to get rid of everything except the emails. i thought it could made with a regex expression, i already got one for searching all the emails. it looks like, [w.]+@[w.]+
[Code]...
View 1 Replies
View Related
Oct 2, 2008
I have a div that contains simple text data with line breaks. I want to append a mailto link to the email address but so far I have not been able to select the email.
The container looks something like this:
My first intention was to use a filter like:
But I found out that I couldn't apply it since the container had no children. So I used a function first to wrap the elements into span tags and then applied 'find':
View 8 Replies
View Related
Jun 29, 2011
I have got my ajax file calling the php file properly and executing some code in it, but nothing will get returned with json_encode().
Right now I am skipping form validation and just trying to get a response back of any sort:
Currently my site just shows the 'processing...' string but will change my css class to indicate a sucess.
Here is my ajax calling the php file:
When I change .html(data.msg) to something like html("<p>hello world</p>") I get the string back. So this line is working, but just not recieving 'data.msg' from my php file.
View 8 Replies
View Related
Aug 28, 2011
I'm attempting to display a list of email addresses from a text file (one address per line) in measured increments, such as one email address per second. sorry, I don't know where to begin on this.Basically I want to use this to "simulate" the appearance of being able to view the real-time send to a series of email addresses. I'm using the PHP mail() funtion to send to the looped list of email addresses, pulled from a text file.It would be great to view the actual realtime send to each address as it occurs in the mail loop, but this simulation will suffice.
View 7 Replies
View Related
Sep 23, 2008
How to play sound file like .wav file with javascript and/or DHTML when some one mouseover to a link. I have done this... but it only works in IE while it does not work in other browsers like firefox and chrome.
View 4 Replies
View Related
Nov 27, 2010
am very new to JQuery. I need to create a form, which will take username and email id and store it in a text/csv file.I do not want to use PHP/ASP.I am familiar with Java script.Is there a way I could do this?
View 1 Replies
View Related
Mar 26, 2004
How do I link to a Javascript script like I link to a.css file?
This is the way my code looks, (this does work):
Code:
<script language="JavaScript">function showObj(objid)
{
parent.frames['there'].document.getElementById(objid).style.display='block'
parent.frames['there'].document.getElementById(objid).style.zindex=Ƌ'
}</script>
</head>
<body onload="showObj('Pg'+parent.document.forms['chapage'].elements['pge'].value);">
I have never been able to get my Javascript into a .js file and still have it work.
View 3 Replies
View Related
Jan 17, 2009
Heres my javascript code that will verify email from email input field and check if the checkbox (I agree condition) was checked:
[Code]....
However, this will work fine when calling with a link "javascript:validate('inputForm');" but if I try to prevent users by submitting form with pressing enter I put it in form onSubmit parameter: <form .. onSubmit="javascript:validate('inputForm');"> which will check the forms and submit data (do return) no matter if it matched or no.
View 11 Replies
View Related
Jan 22, 2010
look at following html:
<div style="padding-bottom: 4px;">
<img height="10" align="absmiddle" width="10" src="images/1rightarrow.gif"> <a class="mainmenu" href="affiliate-settings.php">Inoutscripts Affiliate Id </a>
</div>
way to hide this div or link in javascript/jquery? I can't make use of class as well because there are several links as well with the same class name.
View 7 Replies
View Related
Jul 23, 2005
I have a form built and on the onclick event I validate all of the
fields and then if the form is ok, on the submit event I run a
javascript function to set a cookie and download a file from the
current window.
I have a cgi script provided by my web host to send the contents of the
form through email but they only show me how to use the cgi script to
send email through the submit event of the form.
ie. <form name="downloadform" method="post"
action="/cgi-bin/cgiemail/mailtemp.txt" onSubmit="return
Validate(this)">
Can I utilize the cgi script/link from my javascript function and still
send the contents of the form through the cgi email??
View 1 Replies
View Related
Nov 11, 2011
I'm a mediocre website designer i know html , at JS i'm to noob to actualy make something of my own :) just Edit, i'm still learning and atm i'm working on a web project and I'm struggling to find a way to Filter email addresses to redirect my New Members to their e-mail provider, for example if they would register newmmember@hotmail.com to be forwarded to www.hotmail.com so they would login and activate their account, or if they enter @yahoo.com to be forwarded there . Can you please point out a few things i'm eager to learn how to Forward User to email provider after he creates his account . Or how can i forward email to URL inside my webpage , this could help me with another ideea i have, again this would have to be filtered @yahoo.com , @hotmail.com etc , to be forwarded to a local URL inside the site depending on what Email Provider they enter .
View 5 Replies
View Related
Jul 21, 2010
I am programming a website. On there website the users will be able to click "Add as friend". I am basically wanting it so that when my users click "Add as friend" the link will dis-appear and then it will visit a page on the iframe that I have already coded with a variable (addfriend.php?pid=CODEHERE).
If there is anyone that knows how I can make the code dis-appear using Ajax.
View 2 Replies
View Related
Mar 4, 2009
I am pretty new to JS but I've managed to create a function to show and hide a div according to a link's URL, but I am gonna have lots of url's and lots of div's to show and hide, its not a problem to show and hide them, the only trouble is that they stack, if I show div 1, and then press link 2 to show div 2, Div 2 is gonna be below div 1, and what I want is that when I click link 2 to hide div 1 or any other shown divs, I am sure its possible but i don't know how to do it. I think it would be possible by storing the id of the div in a variable, but the only problem is that when I call that function, the variable always changes so it would be a matter of storing the id in a variable outside the function, but i don't know how to do that, or what are the rules?
This is my code:
JS
function showHide(product) {
var el = document.getElementById(product);
el.className = (el.className == 'hide') ? '' : 'hide';
}
HTML
<div id="1" class="hide">Content of Div 1</div>
<div id="2" class="hide">Content of Div 2</div>
<a href="javascript:showHide('1');">Show Hide 1</a>
<a href="javascript:showHide('2');">Show Hide 1</a>
CSS
.hide {
display:none;
}
I need to have the javascript function call in href because of an applet I am using. In resume, the divs are hidden at the start, when I click one link, the div shows, when I click the other link I need the previous div shown to be hidden (class="hide"), and show the new div and so on.
View 4 Replies
View Related
Dec 1, 2009
I need a javascript code that allows me to hide a link at a certain time and show the link again at a certain time. my project requirement is that i need to be able to hide the link at a certain period of time to restrict users from acessing it.only from 12pm to 2pm the link will be display, users are able to click the link. after and before that timing, the link will not be displayed[hide] or the when click on the link error message will be shown.
View 11 Replies
View Related
Mar 24, 2010
I am having trouble trying to hide a link and a div when I click on a link. Here is what I tried to do first.
I have two links and one div box. When I click the first link I want to show the div box and another link (hide) then at the same time I want to hide the link that I clicked.
Showdiv HideDiv(initially hidden)
--------------div box------
| initially hidden |
| |
[Code]....
If it is not possible to do with link (<a> tags) can I achieve this with an image? Lets say I just change the image onclick and show a div box and then click the same (now changed image) and hide the box.
View 5 Replies
View Related