 |
Dynamic Content
NlsScroller Professional - Advanced HTML Scroller Control
|
|
|
Example below shows NlsScroller with dynamically loaded content.
The content is loaded using AJAX technology from server.
I can be simply a static html file, loaded from database or other resources.
|
|
Below are scripts required to initialize the scroller on the left. No complicated javascript
and the content are loaded from specified url (content.htm).
<script>
var n = new NlsScroller("scroll1");
n.width=300;
n.height=220;
n.setEffect(new NlsEffContinuous("direction=up,speed=40,step=1,delay=0"));
n.render("scrollerDiv");
//load from separated static html file
n.loadDynamicContent("content.htm");
//or load from server side script,
//content can loaded from database or other resources.
n.loadDynamicContent("contentfromdb.php");
</script>
|
|