+ 1

how can i do that a scroll starts at the end?

I mean to create a chat

5th Dec 2016, 4:01 PM
Diego Serra
Diego Serra - avatar
4 ответов
+ 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.
7th Dec 2016, 5:17 PM
Evaristo Rivero
Evaristo Rivero - avatar
0
A bit to complicated. How does youre chat work, that I can help you better?
5th Dec 2016, 4:12 PM
pasgy g
pasgy g - avatar
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.
5th Dec 2016, 8:47 PM
Diego Serra
Diego Serra - avatar
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.
7th Dec 2016, 9:17 PM
pasgy g
pasgy g - avatar