Forum Moderators: open
Just found this place. I'm not webdude/dudette by trade, just a hobby. So, forgive me for my ignorance. Anyway, I'm running a random banner generator (java) and would like run the same script in a different local on the same page. I tried to copy the script and paste it into the page, but my original stops working. What is it that I do not know?
If your script is javascript, the best bet is to paste some code here and someone may be able to help.
<script src="jpapplet.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
jpwriteapplet('<applet code="AdvBanner.class" archive="AdvBanner.jar" WIDTH="604" HEIGHT="227" mayscript>');
</script>
<!-- Applet Properties -->
<param name="Speed" value="100">
<param name="Pause" value="8">
<param name="random" value="true">
<!-- Banners -->
<!-- repeat the bannerN and linkN parameter to add more banners -->
<div id="Layer6" style="position:absolute; width:200px; height:44px; z-index:5; left: 208px; top: 896px;"></div>
<param name="banner1" value="images/gdpros.gif">
<param name="link1" value="http://www.somesite.com,_self">
<param name="banner2" value="images/overhead.gif">
<param name="link2" value="http://www.somesite.com,_self">
<param name="banner3" value="images/everydaybad.gif">
<param name="link3" value="http://somesite.com/signsup.htm,_self">
<a href=</a>
</applet></div>
Thank you to everyone who reads this & peace, love & happiness to those answer :O)
I would look at what's in jpapplet.js. See how it writes to the document via jpwriteapplet(). It may be writing by element ID. You can only have one element with a given ID; all id'ed elements must be unique. So if it writes the same ID twice, it may be that only the first one is valid, or by writing out the document it may set a global variable that precludes writing it again.
Second there may be something in the applet itself. Refer to the creator's documentation for help on that one.