Jump to content

Search the Community

Showing results for tags 'news'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH


  • Community Calendar

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Found 4 results

  1. Hello, this post will contains some suggestions which have no link between them. -Firstly, i think it could be great to have something which allows us to follow news from w3schools "easily, something like a page where we could see the last update in a single line. example : 02/03/2018 Update "How to" section 01/30/2018 Add php tutorial (server side) In fact, the website become "big", then it could be an asset. -Secondly, i see more and more websites which have a functionnality to switch the theme (to a night theme) by clicking on one button (in their navbar) and the change is done on the whole website . This featur could get its place in "the How to" section. -To finish, this last idea is probably out of the main content of w3schools, but maybe Java could get its place like Node.js in the server side section although Java does not necessarily have this main purpose. (of course this add should only approach the server side).
  2. Hello everyone Please Can u help me why the news slider here in this page cannot work ?notice:It was working before adding the Banner rotator slider .I need an urgently solution http://www.al-awtadco.com/egyadmin/awtad/index.html
  3. Hello w3s... when im running this code: <?php$news_query = "SELECT * FROM news";$news_expanded = "SELECT * FROM news WHERE added + ( 3600 *24 *45 ) >".time()." ORDER BY added DESC LIMIT 10"; $news_result = mysql_query($news_query)or die(mysql_error());if(mysql_num_rows($news_result) > 0){$id = 1;while($n_row = mysql_fetch_assoc($news_result)){$id++; echo '<div id="pic'.$id.'"><a href="javascript: klappe_news('.$id.');">'."<img src='styles/images/backgrounds/icons/minus.gif' />".'</a></div><a href="javascript: klappe_news('.$id.');">'.$n_row['n_date'].'</a><div id="k'.$id.'" style="display:none;margin-left:30px;margin-top:15px;">'.nl2br ($n_row['n_text']).'</div>'; /*echo '<a href="javascript: klappe_news('.$id.');">'.$n_row['n_date'].'</a><div id="k'.$id.'" style="display:none;margin-left:30px;margin-top:15px;">'.nl2br ($n_row['n_text']).'</div>';*/}}//If ends...else {echo "<center>There is no latest news</center>";}?> then my picture at my page here: (PICTURE ATTACHED) it wont change pictures when im trying to do so here with this java code: 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 = 'styles/images/backgrounds/icons/minus.gif';}else { klappText.style.display = 'none'; klappBild.src = 'styles/images/backgrounds/icons/plus.gif';}} ideas?...
  4. 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...