944,165 Members | Top Members by Rank

Ad:
Aug 12th, 2006
0

problem in css->overflow:scroll

Expand Post »
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...
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ivanCeras is offline Offline
20 posts
since May 2006
Aug 12th, 2006
0

Re: problem in css->overflow:scroll

Can we see your code, please?
Team Colleague
Reputation Points: 92
Solved Threads: 21
Posting Pro in Training
FC Jamison is offline Offline
436 posts
since Jun 2004
Aug 14th, 2006
0

Re: problem in css->overflow:scroll

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.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ivanCeras is offline Offline
20 posts
since May 2006
Jul 14th, 2011
0
Re: problem in css->overflow:scroll
yeah i have the same problem. a stupid way to solve the problem is to make a chat on the reverse order, i mean by reading from bottom to top, like the message you just typed will appear on top. you can do this in mysql using a ORDER BY -id_table.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
phpdude is offline Offline
1 posts
since Jul 2011

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: How the call the first reference object?
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: codeigniter and image slider??





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC