For the life of me I can't find my typing error or programming error here...
I am calling the script like this.
in the head..
then
inline.
the global.js reads:
I keep getting Object expected line 59. Line 59 is the call to the script
I'm stumped.
thanks all.
Chris
Chris Luksha
Echo Web Services
Making Your Website Resound
I am calling the script like this.
Code:
<script type="text/javascript" src="../js/global.js"></script>
then
Code:
<script language="javascript" type="text/javascript">email_custom('emaillink','mydomain.com','','','me')</script>
the global.js reads:
Code:
function email_custom(class,domain,text,subject,to){
if (text){
text=text
}else{
text=to+"@"+domain
}
if (subject){subject="?SUBJECT="+subject};
var email="<a href='";
email += "mailto:";
email += to;
email += "@"+domain;
if(subject){email += subject;}
email += "'";
if(class){email += " class='"+class+"'"};
email += ">";
email += text;
email +="</a>";
document.write(email);
}
I keep getting Object expected line 59. Line 59 is the call to the script
Code:
<script language="javascript" type="text/javascript">email_custom('emaillink','mydomain.com','','','me')</script>
I'm stumped.
thanks all.
Chris
Chris Luksha
Echo Web Services
Making Your Website Resound