i am still not clear about the error
if ($CURUSER && $CURUSER["announce_read"] == "no" && $arr = announcement()) {
?>
<script type="text/javascript" src="scripts/announcement.js"></script>
<script type="text/javascript" src="scripts/preview.js"></script>
these the two line of index.php
.js files are in a folder named "scripts"
but whn i click to read announcement it opens "siteurl"/javascript (The requested URL /torrent/javascript was not found on this server.
but if i change
<b><a href="javascript":show_announcement()"><font color=white>New announcement! Please click here to read!</font></a></b></td></tr></table></span><br />
"javascript" to "scripts" thn i get siteurl/scripts (you dont have access the files on this server.
here is my index php code
.js files are in the /scripts folder on the root
any help would be really appropriated
if ($CURUSER && $CURUSER["announce_read"] == "no" && $arr = announcement()) {
?>
<script type="text/javascript" src="scripts/announcement.js"></script>
<script type="text/javascript" src="scripts/preview.js"></script>
these the two line of index.php
.js files are in a folder named "scripts"
but whn i click to read announcement it opens "siteurl"/javascript (The requested URL /torrent/javascript was not found on this server.
but if i change
<b><a href="javascript":show_announcement()"><font color=white>New announcement! Please click here to read!</font></a></b></td></tr></table></span><br />
"javascript" to "scripts" thn i get siteurl/scripts (you dont have access the files on this server.
here is my index php code
Quote://Announcementsif ($CURUSER && $CURUSER["announce_read"] == "no" && $arr = announcement()) {
?>
<script type="text/javascript" src="scripts/announcement.js"></script>
<script type="text/javascript" src="scripts/preview.js"></script>
<!-- annoucement start #<?=$arr[id];?> -->
<div id="dropin" style="position:absolute;visibility:hidden;left:300px;top:100px;width:500px;height
:100px">
<table border="0" cellpadding="0" cellspacing="0" width="650" class="error">
<tbody><tr><td class="none" style="padding: 2px 0 0 10px; background: red">
<font color=black><b>Title:</b> <?=$arr["subject"]?> -- <b>Created on"</b> <?=$arr["added"]?> -- <b>By:</b> <?=$arr["by"]?></b></font></td>
<td width="50" align="right" class="none" style="padding: 2px; background: red"><a href="#" onClick="dismissbox();return false"><img src="images/close.jpg" border="0"></a></td></tr>
<tr><td colspan="2" class=none width="650" style="padding: 0 0 0 10px;" bgcolor="#ffffff">
<p>
<?=format_comment($arr["message"])?>
</p>
<img id="loading" style=" visibility: hidden" src="images/load.gif">
<span style="color:red" name="preview" id="previewr" align="left">
<a href="#" onclick="javascript":clearannouncement(this.parentNode,'clear_ann.php')">Click here to mark announcement read.</a>
</span><br><br></form>
</td></tr></tbody></table>
</div>
<!-- annoucement end #<?=$arr[id];?>-->
<span id="new_ann" style="visibility: visible"><table border=0 cellspacing=0 cellpadding=10 bgcolor=red width=100% align=center><tr><td style='padding: 10px; background: red' align='center'>
<b><a href="javascript":show_announcement()"><font color=white>New announcement! Please click here to read!</font></a></b></td></tr></table></span><br />
<?php
}
.js files are in the /scripts folder on the root
any help would be really appropriated

