adhere


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Neat Little PopUp Window Java Script That Doesn't Get Blocked!
Author Message
caesar Offline
VIP Status
*****

VIP Status
Posts: 579
Joined: Aug 2011
Reputation: 20
Given 32 thank(s) in 18 post(s)
Post: #1
Thread Neat Little PopUp Window Java Script That Doesn't Get Blocked!
I have found and been using a neat little Java Script that Pops up an offer or website (of your choice) when somebody clicks and Image or Text Link and it doesn't get blocked!

Here is the Code, put the first part just after the <Head> Tag in your Webpage HTML...

Code:
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>



     <!--

    /****************************************************

        Note: This has only been tested with Google Chrome and FireFox Browsers

        And can't be guaranteed to work with others.

    ****************************************************/

    var win=null;

    function NewWindow(mypage,myname,w,h,pos,infocus){if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}

    if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}

    else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}

    settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resiza​ble=no";win=window.open(mypage,myname,settings);

    win.focus();}

    // -->

    </script>

The Next parts are Image or Text Links and go just after the <Body> Tag of your Webpage HTML...

Image Link:

Code:
<a href="http://YOURDOWNLOADLINK" target="_blank"><img src="http://YOURDOWNLOADIMAGE" width="200" height="100" border="0" align="absmiddle" onclick="javascript:NewWindow('http://WEBSITEYOUWANTTOPOPUP','POPUPTITLE','560','485','center','front');"/></a>

Text Link:

Code:
Click <a href="http://YOURDOWNLOADLINK" target="_blank" onclick="javascript:NewWindow('http://WEBSITEYOUWANTTOPOPUP','POPUPTITLE','560','485','center','front');">HERE</a> To Download Now!

Example Webpage...

http://citycardriving.romancitydirect.co.uk/

I hope you enjoy using this, don't forget to say thanks Thumbsup

I am an expert at making money, don't believe me? See my website here!

[Image: CaesarBanner_New4.png]
07-03-2012 06:14 PM
Find all posts by this user Quote this message in a reply
Thanks  Thanks given by: David
Advertisement
envyus
wawangjan Offline
Bronze Member
*

Posts: 38
Joined: Aug 2011
Reputation: 0
Given 1 thank(s) in 1 post(s)
Post: #2
RE: Neat Little PopUp Window Java Script That Doesn't Get Blocked!
thanks bro....
do you have a fb pop up auto share and like?
07-19-2012 10:32 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)
Navigation
adhere
Sponsors
afil
Alexa Rank