Jump to content

rootKID

Members
  • Posts

    467
  • Joined

  • Last visited

Posts posted by rootKID

  1. 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... :).

×
×
  • Create New...