Hii
I want to add a Javascript Ad Code In PHP File. How can I do it help plz
Adding Javascript Ad Code In PHP File
Moderator: General Moderators
-
zahidprimex
- Forum Newbie
- Posts: 9
- Joined: Tue Jan 29, 2008 7:44 am
Re: Adding Javascript Ad Code In PHP File
Code: Select all
<?php
$Ad = '
<script type="text/javascript">
// My Javascript Code
</script>
';
echo $Ad;
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
Re: Adding Javascript Ad Code In PHP File
Code: Select all
<?php
$foo = 1;
// here is some php
?>
<script type="text/javascript"><![CDATA[
alert('Here is JavaScript')
]]></script>
<?php
// whoops! here's PHP again-
zahidprimex
- Forum Newbie
- Posts: 9
- Joined: Tue Jan 29, 2008 7:44 am
Re: Adding Javascript Ad Code In PHP File
Dear Zoxive
Thank For your help.Your code works very well.But the position of object written with javascript is on the top of the page. How can i place it on the bottom? How can I allign it in the middle of the page? Help me plz
Thank For your help.Your code works very well.But the position of object written with javascript is on the top of the page. How can i place it on the bottom? How can I allign it in the middle of the page? Help me plz