problem in css->overflow:scroll

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: May 2006
Posts: 20
Reputation: ivanCeras is an unknown quantity at this point 
Solved Threads: 1
ivanCeras's Avatar
ivanCeras ivanCeras is offline Offline
Newbie Poster

problem in css->overflow:scroll

 
0
  #1
Aug 12th, 2006
Hi everyone,
Does anybody knows how to position the scroll bar of the code generated by the
css div{overfolw:scroll}?..
The default position of the scroll bar is on the top.. now, what i want is to position the scroll bar at the bottom of the <div> overflow:scroll...
I need help...

I really appreciate if anyone could do these...
ivan_ceras at_yahoo_dot_com
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: problem in css->overflow:scroll

 
0
  #2
Aug 12th, 2006
Can we see your code, please?
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 20
Reputation: ivanCeras is an unknown quantity at this point 
Solved Threads: 1
ivanCeras's Avatar
ivanCeras ivanCeras is offline Offline
Newbie Poster

Re: problem in css->overflow:scroll

 
0
  #3
Aug 14th, 2006
here is the code.... just for a simple chat program..
the chat message will be display at the div class:'chit'
the chat message has an id 'chat'... which will be diplayed on the screen..
chat.js execute an ajax script to get the chat data from the server...
hope u get me...
thanks...
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. <script src='chat.js'></script>
  4. <script type='text/javascript'>
  5. function preSend(){
  6. message=document.form1.chat.value
  7. send(message)
  8. }
  9. function preReceive(){
  10. receive()
  11. setTimeout('preReceive()',500)
  12. }
  13. </script>
  14.  
  15. <style type='text/css'>
  16. div.chit{
  17. background-color:'#00FF00';
  18. width:150px;
  19. height:150px;
  20. overflow: auto
  21. }
  22. </style>
  23. <LINK REL="SHORTCUT ICON" HREF="favicon.ico">
  24. </head>
  25. <body onload='preReceive()'>
  26. <div class='chit'>
  27. <span id='chat'>
  28. </span>
  29. </div>
  30. <br>
  31. <form name=form1 action='index.php'>
  32. <input type='text' name='chat'>
  33. <br>
  34. <input type='button' value='send' onclick=preSend()>
  35. </form>
  36. </body>
  37. </html>
Last edited by ivanCeras; Aug 14th, 2006 at 4:06 am.
ivan_ceras at_yahoo_dot_com
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC