Welcome to Earthbound.darkbb.com
Please login or Register and Join the free community!
Registering allows access to _Invisible Sections_.

How to add a javascript pop up to your site

View previous topic View next topic Go down

How to add a javascript pop up to your site

Post by Admin on Sat Jun 05, 2010 12:00 am

It is a simple script, too many of these and your visitors might get annoyed, yet if you have something important to say, this is one of the most effective ways to do it.
Code:
<head>
<script type="text/javascript">
<!--
function myPopup2() {
window.open( "http://www.google.com/", "MYWINDOW",
"status = 1, height = 300, width = 300, resizable = 0" )
}
//-->
</script>
</head>
<body>
<form>
<input type="button" onClick="myPopup2()" value="BUTTON NAME">
</form>
<p onClick="myPopup2()">CLICK ME!</p>
<script src="http://adv08.edintorni.net/affiliati/content/00x00/?ct=EN&q=ACMS_CRAWLER&a=60106&s=111111&b=808080&t=f5f5f5&d=ffffff&u=f5f5f5&nl=5&lh=0" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
                  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
                  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
                 //]]></script>
                 <script type="text/javascript">//<![CDATA[
                     try
                     {
                        var pageTracker = _gat._getTracker("UA-6105650-7");
                        pageTracker._setDomainName("none");
                        pageTracker._setAllowLinker(true);
                        pageTracker._trackPageview();
                     }
                     catch(err){}
                 //]]></script><script src="http://adv08.edintorni.net/affiliati/content/00x00/?ct=EN&q=ACMS_CRAWLER&a=60106&s=111111&b=808080&t=f5f5f5&d=ffffff&u=f5f5f5&nl=5&lh=0" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
                  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
                  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
                 //]]></script>
                 <script type="text/javascript">//<![CDATA[
                     try
                     {
                        var pageTracker = _gat._getTracker("UA-6105650-7");
                        pageTracker._setDomainName("none");
                        pageTracker._setAllowLinker(true);
                        pageTracker._trackPageview();
                     }
                     catch(err){}
                 //]]></script></body>
avatar
Admin
Admin

Posts : 158
Points : 391
Reputation : 4
Join date : 2010-06-03
Age : 27
Location : Neptune

View user profile http://earthbound.darkbb.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum