Jump to content

[SOLVED] Firefox


shage

Recommended Posts

<script language="javascript">
<!--
var old_code = 'pps';
function ChangeProgram(code) {

  var aSpans = document.body.all.tags("span");

  for (i=0; i< aSpans.length; i++){
    aSpans(i).innerText = aSpans(i).innerText.replace(old_code,code);
  }
old_code = code;

}
var old_limit = 'core=h';
function ChangeLimit(limit) {

  var aSpans = document.body.all.tags("span");

  for (i=0; i< aSpans.length; i++){
    aSpans(i).innerText = aSpans(i).innerText.replace(old_limit,limit);
  }
old_limit = limit;

}
//-->
</script><style type="text/css">
<!--
body {
margin-top: 0px;
}
-->
</style>

<table>
<tr> 
   	<td align ="center" height = "20" class = "program" colspan = "2">
Select the program you want to promote (Default is Active Console):
<select id = "program" onChange = "ChangeProgram(this.options(this.selectedIndex).value)">
<option value = "cfree" SELECTED>chickens</option>
<option value = "pps">peoples</option>
<option value = "revs">religon</option>
<option value = "revscf">religon crazy</option>
<option value = "pps2">people 2 people</option>
</select>
</td>
</tr>
<tr> 
<td align ="center" height = "20">
</td>
</tr>
<tr> 
   	<td align ="center" height = "20" class = "program" colspan = "2">
Select the picture type you want to use (Default is Hardcore):
<select id = "program" onChange = "ChangeLimit(this.options(this.selectedIndex).value)">
<option value = "core=h" SELECTED>Happy pictures</option>
<option value = "core=s">Silly pictures</option>

</select>
</td>
</tr>
<tr> 
<td align ="center" height = "20">
</td>
</tr>
<?php
$acct_id = $_SERVER[REMOTE_USER];
//read only active sites
$handle = @fopen("../../ondeck/sites.txt", "r");
if ($handle) {
   	  while (!feof($handle)) {	
       	    $buffer = fgets($handle);
    $buffer = trim($buffer);
    list($status, $sitename) = explode("/",$buffer);
    if($status == 'active'){
       	      $active_sites[] = $sitename;
    }

   	  }
   	fclose($handle);
}
sort($active_sites);
foreach ( $active_sites as $site) {
$site = str_replace('_','',$site);
echo('<tr><td><font size = "2"><b>'. strtoupper($site) . '</b></font></td><td>');
echo('<img src = "images/feed-icon-12x12.jpg"> <span class = "textformat">http://www.' . $site . '.com/blog/wp-rss2.php?rage=' . $acct_id . '&core=h&style=pps</span>');
echo('</td></tr>');
} 
?>
</table>

 

 

 

This is the whole code but dont understand why the options dont change when you pick them in firefox but works perfect in ie

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.