how can i do a scrolling banner ( as announcement area ) in php scripting language by filling a forum first and then submit it , after submetting the announcement title will apear in a scrolling banner would any one know how??? ?
@NogDogMar 27.2005 — #The actual banner display would need to be done with a client-side techniques, be it JavaScript, Java, Flash, etc. If you used JavaScript, you could use PHP to define the text to be displayed. For instance, if the message text is supplied via a form field called "message": [code=php] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang='en'> <head> <title>Untitled</title> <META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'> <script language="JavaScript"> var id,pause=0,position=0,revol=9; function banner() { var msg=" " + "<?php echo htmlentities($_POST['message'], ENT_QUOTES) ?>"; var speed=10; document.thisform.thisbanner.value=msg.substring(position,position+50); if(position++==msg.length) { if (revol-- < 2) return; position=0; } id=setTimeout("banner()",1000/speed); } </script> </head> <body onload="banner()"> <form name="thisform"> <input type="text" name="thisbanner" size="40" style="font-family: 'courier new', courier, monospace"> </form> </body> </html> [/code]