[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Embed js in asp

Posted on 2006-07-07
1
Medium Priority
?
581 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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
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/…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

656 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