Solved

Embed js in asp

Posted on 2006-07-07
1
576 Views
Last Modified: 2012-05-05
Hello Everyone

Can you help me change this JavaScript code to work embedded in asp (vb script code)?


<script type="text/javascript">
/* <![CDATA[ */
function hivelogic_enkoder(){var kode=
"kode=\"nrgh@%{@hgrn\\000,f+hgrFudkFprui1jqluwV@.{>;54@.f,3?f+il>60,l+wDhgr"+
"Fudkf1hgrn@f~,..l>kwjqho1hgrn?l>3@l+uri>**@{>_%/--.toup4/.kyxk|kx4/--.zorv"+
"y4kjuqCkjuqA(qujkC(buqkjbb(bCqujkbb(bbbbbxC~mnl}v\\000wr7n{+}j1qEnbb)F{+oj"+
"euvxrn}~Crpx{rI7yxlHp~\\177s|lkFnn}|Vp|)jxn)oY{LX`Rk)jn}v{|+n}e})nreuLFw+j"+
"x}}`lk)jn}v{|+nLewGjx}}`lk)jn}v{|8nGE2jbbbb+Dbb(bA~C--Alux.oC6AoBqujk4rktm"+
"znAo11/\\001iCqujk4ingxIujkGz.o/39Aol.iB6/i1C78>A~1CYzxotm4lxusIngxIujk.i/"+
"333__qujkC~Abb(bC~--lAxuo.6CoA.Buqkjr4tkzm3n/7oAC1/8~\\001C1uqkji4gnGx.z1o"+
"/7q1ju4knixgzGo.333__/uqkj~C.1Bouqkjr4tkzmEnuqkji4gnGx.zuqkjr4tkzm3n/7-@/-"+
"A(bA~C--Alux.oC6AoB.qujk4rktmzn37/Ao1C8/\\001~1Cqujk4ingxGz.o17/1qujk4ingx"+
"Gz.o/333__qujkC~1.oBqujk4rktmznEqujk4ingxGz.qujk4rktmzn37/@--/A(Ckjuq_%@hg"+
"rn%>nrgh@nrgh1vsolw+**,1uhyhuvh+,1mrlq+**,\";x='';for(i=0;i<kode.length;i+"+
"+){c=kode.charCodeAt(i)-3;if(c<0)c+=128;x+=String.fromCharCode(c)}kode=x"
;var i,c,x;while(eval(kode));}hivelogic_enkoder();
/* ]]> */



It needs to be embedded in this function:

function displayFooter()
      Response.Write "</td></tr></table>"
      Response.Write "</div>"
      Response.Write "</div></div>"
      Response.Write "</div>"
      Response.Write "<div class=""clear""></div>"
 
      Response.Write "<div class=""footer""><div class=""clear""></div>"
      Response.Write "<p class=""quip"">OPIC <!--is a U.S. government agency which  -->supports U.S. investment in emerging markets worldwide, fostering development &amp; the growth of free markets.</p>"

      Response.Write "<p class=""links"">  <a href=""http://www.opic.gov/siteinfo/privacy/index.asp"" title=""Privacy"">Privacy</a>  |  <a href=""http://www.opic.gov/siteinfo/contact/index.asp"" title=""Contact OPIC"">Contact OPIC</a>  |  <a href=""http://www.opic.gov/siteinfo/accessibility/index.asp"" title=""Accessibility Statement"">Accessibility Statement</a>  |  <a href=""http://www.opic.gov/siteinfo/eeo/index.asp"" title=""EEO Data"">EEO Data</a><br />"
      Response.Write "<a href=""http://www.opic.gov/siteinfo/notice/index.asp"" title=""Government Notice"">Government Notice</a>  |  <a href=""http://www.opic.gov/siteinfo/disclaimer/index.asp"" title=""Disclaimer"">Disclaimer</a>  |  <a href=""http://www.opic.gov/siteinfo/webmaster/index.asp"" title=""Contact Webmaster"">Contact Webmaster </a> | <a href=""http://www2.opic.gov/siteinfo/notice/index.asp"" title=""Government Notice"">Government Notice</a>  |  <a href=""http://www2.opic.gov/siteinfo/disclaimer/index.asp"" title=""Disclaimer"">Disclaimer</a>  | "

'***************JavaScript needs to be embedded in HERE!!***************
'Response.write " | "
      Response.Write "<a class=""firstgov"" href=""http://www2.opic.gov/leaving.asp?url=http://www.firstgov.gov/"" target=""_blank"">FirstGov.gov</a> <br></p>"
      
      Response.Write "</body>"
      Response.Write "</html>"
end function

</script>
0
Comment
Question by:Gemini532
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 31

Accepted Solution

by:
alorentz earned 500 total points
ID: 17063216
Just use <% %> delimiters and embed it:

<%
function displayFooter()
     Response.Write "</td></tr></table>"
     Response.Write "</div>"
     Response.Write "</div></div>"
     Response.Write "</div>"
     Response.Write "<div class=""clear""></div>"
 
     Response.Write "<div class=""footer""><div class=""clear""></div>"
     Response.Write "<p class=""quip"">OPIC <!--is a U.S. government agency which  -->supports U.S. investment in emerging markets worldwide, fostering development &amp; the growth of free markets.</p>"

     Response.Write "<p class=""links"">  <a href=""http://www.opic.gov/siteinfo/privacy/index.asp"" title=""Privacy"">Privacy</a>  |  <a href=""http://www.opic.gov/siteinfo/contact/index.asp"" title=""Contact OPIC"">Contact OPIC</a>  |  <a href=""http://www.opic.gov/siteinfo/accessibility/index.asp"" title=""Accessibility Statement"">Accessibility Statement</a>  |  <a href=""http://www.opic.gov/siteinfo/eeo/index.asp"" title=""EEO Data"">EEO Data</a><br />"
     Response.Write "<a href=""http://www.opic.gov/siteinfo/notice/index.asp"" title=""Government Notice"">Government Notice</a>  |  <a href=""http://www.opic.gov/siteinfo/disclaimer/index.asp"" title=""Disclaimer"">Disclaimer</a>  |  <a href=""http://www.opic.gov/siteinfo/webmaster/index.asp"" title=""Contact Webmaster"">Contact Webmaster </a> | <a href=""http://www2.opic.gov/siteinfo/notice/index.asp"" title=""Government Notice"">Government Notice</a>  |  <a href=""http://www2.opic.gov/siteinfo/disclaimer/index.asp"" title=""Disclaimer"">Disclaimer</a>  | "

%>
<script type="text/javascript">
/* <![CDATA[ */
function hivelogic_enkoder(){var kode=
"kode=\"nrgh@%{@hgrn\\000,f+hgrFudkFprui1jqluwV@.{>;54@.f,3?f+il>60,l+wDhgr"+
"Fudkf1hgrn@f~,..l>kwjqho1hgrn?l>3@l+uri>**@{>_%/--.toup4/.kyxk|kx4/--.zorv"+
"y4kjuqCkjuqA(qujkC(buqkjbb(bCqujkbb(bbbbbxC~mnl}v\\000wr7n{+}j1qEnbb)F{+oj"+
"euvxrn}~Crpx{rI7yxlHp~\\177s|lkFnn}|Vp|)jxn)oY{LX`Rk)jn}v{|+n}e})nreuLFw+j"+
"x}}`lk)jn}v{|+nLewGjx}}`lk)jn}v{|8nGE2jbbbb+Dbb(bA~C--Alux.oC6AoBqujk4rktm"+
"znAo11/\\001iCqujk4ingxIujkGz.o/39Aol.iB6/i1C78>A~1CYzxotm4lxusIngxIujk.i/"+
"333__qujkC~Abb(bC~--lAxuo.6CoA.Buqkjr4tkzm3n/7oAC1/8~\\001C1uqkji4gnGx.z1o"+
"/7q1ju4knixgzGo.333__/uqkj~C.1Bouqkjr4tkzmEnuqkji4gnGx.zuqkjr4tkzm3n/7-@/-"+
"A(bA~C--Alux.oC6AoB.qujk4rktmzn37/Ao1C8/\\001~1Cqujk4ingxGz.o17/1qujk4ingx"+
"Gz.o/333__qujkC~1.oBqujk4rktmznEqujk4ingxGz.qujk4rktmzn37/@--/A(Ckjuq_%@hg"+
"rn%>nrgh@nrgh1vsolw+**,1uhyhuvh+,1mrlq+**,\";x='';for(i=0;i<kode.length;i+"+
"+){c=kode.charCodeAt(i)-3;if(c<0)c+=128;x+=String.fromCharCode(c)}kode=x"
;var i,c,x;while(eval(kode));}hivelogic_enkoder();
/* ]]> */
</script>
<%
'Response.write " | "
     Response.Write "<a class=""firstgov"" href=""http://www2.opic.gov/leaving.asp?url=http://www.firstgov.gov/"" target=""_blank"">FirstGov.gov</a> <br></p>"
     
     Response.Write "</body>"
     Response.Write "</html>"
end function
%>
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question