Forum Moderators: open
So i was wondering is there any way to call the javascripts codes from a external file as we can do for the css files
for example i place all codes A B C in the external file J.jsp
i know some kind of javascripts can be called from external files but how these ads codes will be called,and how will i tell page to extecute this javasctipt code over this area and ..
place ad for code A here
place ads for code B here
any help in this regards with CODES will be greatly appreciated i dont know javascript so cant do it myself
thanks
placed this in header
<SCRIPT language="JavaScript" SRC="ads.js"></SCRIPT>
in ads.js i placed code given by phpadsnew as
function rectangle()
{
code given by phpads new for rectangle ad
} placed this at place where i wanted ads to display
<A HREF="javascript:rectangle()"></A>
didnt worked :(
<iframe name="" id="" src="" width="140" height="60" MARGINWIDTH="0" MARGINHEIGHT="0" HSPACE="0" VSPACE="0" FRAMEBORDER="0" SCROLLING="no" align="center" title="Advertisement"><a href="" target="_blank"><img src="" border="0" width="140" height="60" alt="Advertisement"></a></iframe>