+ 1
how can i do that a scroll starts at the end?
I mean to create a chat
4 Réponses
+ 1
You want to add a chat to your page. Try inserting this code:
<!-- Start HTML Code --><iframe WIDTH="200" HEIGHT="400" title="Shoutbox" src="https://shoutbox.widget.me/start.html?uid=jnq5ph8l" frameborder="0" scrolling="auto"></iframe><script src="https://shoutbox.widget.me/v1.js" type="text/javascript"></script><br><a href="http://shoutbox.widget.me" title="Shoutbox Widget">Shout</a><a href="http://shoutbox-tutorials.blogspot.com" title="Shoutbox Tutorials">bo</a><a href="http://www.youtube.com/watch?v=4IBqLxtAbs0" title="Shoutbox Video">x</a><br><!-- End HTML Code -->
It's a sample, but it could help.
0
A bit to complicated. How does youre chat work, that I can help you better?
0
with PHP, i have a db with user friend and message, so when i write any message, i introduce this information im that row, and i read this row to print the conversation.
0
You need a code which Check youre db and safe the last row, for example row 34. If anyone write something a php code have to add it to youre db and count the row one higher, for example courent row 34 + 1(New message). Then a js code which jump every second or when ever you want (1 second = 1000 units in your code), to the last row.