reamark
05-08-2007, 04:43 PM
hi all,
i havew a php coded page where i like to put a javascritp code. How do i do this?
Fro eg. i have the following code in php and at the end i like to add the javascript:
-----------
print "<div style=\"font-weight:normal;font-style:normal;font-size:9pt;text-decoration:none;background-color:#FFFFFF;\"><img src=\"/feedimages/trading.jpg\" style=\"float: left; margin: 5px;\" /><script type=\"text/javascript\">";
$trading_news= new newsCache("http://www.website.com/feed_basic_js.php?keywords=forex&num=4&abstract=1&code=6d3afef3", "trading_card_news");
$trading_news->showNews();
print "</script></div>
---------
and i like to add , at the end the following javascript:
---------
<script type="text/javascript" language="javascript" src="<A href="http://www.somewebsite.com"></script">http://www.somewebsite.com"></script>
---------
If i put it just afhte the </div> it does not work.
thanks for any help.
i havew a php coded page where i like to put a javascritp code. How do i do this?
Fro eg. i have the following code in php and at the end i like to add the javascript:
-----------
print "<div style=\"font-weight:normal;font-style:normal;font-size:9pt;text-decoration:none;background-color:#FFFFFF;\"><img src=\"/feedimages/trading.jpg\" style=\"float: left; margin: 5px;\" /><script type=\"text/javascript\">";
$trading_news= new newsCache("http://www.website.com/feed_basic_js.php?keywords=forex&num=4&abstract=1&code=6d3afef3", "trading_card_news");
$trading_news->showNews();
print "</script></div>
---------
and i like to add , at the end the following javascript:
---------
<script type="text/javascript" language="javascript" src="<A href="http://www.somewebsite.com"></script">http://www.somewebsite.com"></script>
---------
If i put it just afhte the </div> it does not work.
thanks for any help.
