Jump to content

rootKID

Members
  • Posts

    467
  • Joined

  • Last visited

Everything posted by rootKID

  1. hello jsg... i did as you told me to do. but im just getting the normal output as before... this is the code i putted in... <?php$news_query = "SELECT n_headline,n_text FROM news";$news_result = mysql_query($news_query)or die(mysql_error());/*while($n_row = mysql_fetch_assoc($news_result)){echo $n_row['n_headline'];echo "<br />";echo $n_row['n_text'];}*/$id = 1;while($n_row = mysql_fetch_assoc($news_result)){ echo $n_row['n_headline']; echo "<br />"; echo $n_row['n_text']; $id++;}echo '<div id="k' . $id . '">' . $n_row['n_text'] . '</div>';?> and after that then i've maked the folder (pic) with the images in it called plus.gif and minus.gif... ideas?... (Note)...i can send all the files i have over mediafire if you would like to take a look at them... .
  2. yoyo w3... im trying to build up a ''news'' box... and the messeages that comes out from my database are comming and all that... but what i wish it to do right now is to do like the picture down here: (ATTACHED... (NUMBER 1)) i wish to add a java-klappe script... i founded it here: http://www.koders.co....aspx?s=none#L6 i wish to do so i can click the news title, and then the news drop down (like the java klappe are supposed to do...). here is the original code i wish to use in this case: function klappe(id){var klappText = document.getElementById('k' + id);var klappBild = document.getElementById('pic' + id); if (klappText.style.display == 'none') { klappText.style.display = 'block'; // klappBild.src = 'images/blank.gif';}else { klappText.style.display = 'none'; // klappBild.src = 'images/blank.gif';}} function klappe_news(id){var klappText = document.getElementById('k' + id);var klappBild = document.getElementById('pic' + id); if (klappText.style.display == 'none') { klappText.style.display = 'block'; klappBild.src = 'pic/minus.gif';}else { klappText.style.display = 'none'; klappBild.src = 'pic/plus.gif';}} its just how to add it into the word... i mean,... how to insert it so it works with the code i have gathered/coded... here is what i've coded so far in the news box...: <?php$news_query = "SELECT n_headline,n_text FROM news";$news_result = mysql_query($news_query)or die(mysql_error());while($n_row = mysql_fetch_assoc($news_result)){echo $n_row['n_headline'];echo "<br />";echo $n_row['n_text'];}?> so... hoping someone can help me integrade this code so it will work ... thanks... .
  3. I HATE PICTURES RIGHT NOW!

×
×
  • Create New...