hi, i tried to put a javascript banner into my code, but it shows only error messages. the banner code: <script type="text/javascript" src="http://adhitzads.com/12345"></script> Code (markup): here my code: <?php if($view=="home"){ echo " <div class=\"w1 l\"><div class=\"box\"><h1 class=\"imem\"><img src=\"/templates/xyz/images/memicon.jpg\" alt=\"\" align=\"left\" /> Members Benefit</h1> <div class=\"text\"> <p align=\"right\"><a href=\"index.php?view=join&".$url_variables."\"><img src=\"/templates/xyz/images/clickhere.jpg\" alt=\"\" /></a></p> <b>some text</b> <ul> <li> here is some text.</li></ul> </div> </div> </div> <div class=\"w1 r\"><div class=\"box yellow1\"> <h2><img src=\"/templates/xyz/images/sabicon.jpg\" alt=\"\" align=\"left\" /> some text</h2> <div class=\"text\"> <p align=\"right\"><a href=\"index.php?view=prices&".$url_variables."\"><img src=\"/templates/xyz/images/adverties.jpg\" alt=\"\" /></a></p> <b>some text</b> <ul> <li> also some text. </li> </ul> </div> </div> HERE i want to include the banner code!!! </div>"; } ?> Code (markup):
Just insert it where you have the text "HERE i want to include the banner code!!!" But i doubt the Javascript is a banner!! No!! It Wont be a banner at all! ~Exp~ Need more? I Do paid Works !!
when i try to insert it. i will show me: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/xyz/public_html/templates/xyz/layout.php on line 189 Code (markup): the banner code is from an advertising network